Skip to content

Commit

Permalink
add skip to main content button
Browse files Browse the repository at this point in the history
  • Loading branch information
oadetayo committed Jan 2, 2025
1 parent b211236 commit 7aaa1b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/ui_panels/example_tab_1.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ example_tab_1_panel <- function() {
gov_row(
column(
width = 12,
id = "main_col",
h1("Overall content title for this dashboard page"),
),
# Expandable section --------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ ui <- function(input, output, session) {
name = "Department for Education (DfE) Shiny Template"
),

# Skip_to_main -------------------------------------------------------------
# Add a 'Skip to main content' link for keyboard users to bypass navigation.
# It stays hidden unless focused via tabbing.
shinyGovstyle::skip_to_main(),

# Google analytics --------------------------------------------------------
tags$head(includeHTML(("google-analytics.html"))),
tags$head(
Expand Down

0 comments on commit 7aaa1b7

Please sign in to comment.