Skip to content

Commit

Permalink
fix(311-sidebar-toggle): Set tabindex=0 on ui output parent element
Browse files Browse the repository at this point in the history
`uiOutput()` elements now get `display:contents`,
which means they can't receive tab focus. The tabindex
is used in 311 to test correct tab order, not for any real
functionality in the app.
  • Loading branch information
gadenbuie committed Jan 2, 2024
1 parent 79245ef commit 22c29eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/apps/311-bslib-sidebar-toggle-methods/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ui <- page_fixed(
border = FALSE,
border_radius = FALSE,
h2("Sidebar Layout"),
uiOutput("ui_content", tabindex = 0),
div(uiOutput("ui_content"), tabindex = 0),
)
)
),
Expand Down

0 comments on commit 22c29eb

Please sign in to comment.