Skip to content

bslib::page() and shiny::bootstrapPage() can't handle class attribute #803

@gadenbuie

Description

@gadenbuie

When page_navbar() is used with fillable = FALSE and sidebar = NULL, we internally call bslib::page() which in turn calls shiny::bootstrapPage().

These functions cannot handle the class = "bslib-page-navbar" and instead add the text "bslib-page-navbar" directly into the page.

bslib/R/page.R

Lines 207 to 211 in 07a2d6a

page_func(
title = infer_window_title(title, window_title),
theme = theme,
lang = lang,
class = "bslib-page-navbar",

page(class = "bslib-page-navbar") |> print(browse = FALSE)
#> bslib-page-navbar

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions