Skip to content

Commit

Permalink
use shinygovstyle dropdowns for accessibility and styling requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
chfoster committed Sep 18, 2024
1 parent a4d84c9 commit 774811c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
13 changes: 8 additions & 5 deletions R/ui_panels/example_tab_1.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,20 @@ example_tab_1_panel <- function() {
gov_row(
column(
width = 6,
selectizeInput("selectPhase",
"Select a school phase",
choices = choices_phase
shinyGovstyle::select_Input(
inputId = "selectPhase",
label = "Select a school phase",
select_text = choices_phase,
select_value = choices_phase
)
),
column(
width = 6,
selectizeInput(
shinyGovstyle::select_Input(
inputId = "selectArea",
label = "Choose an area:",
choices = choices_areas$area_name
select_text = choices_areas$area_name,
select_value = choices_areas$area_name
)
),
# Download button -------------------------------------------
Expand Down
10 changes: 10 additions & 0 deletions www/dfe_shiny_gov_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,16 @@ html {
text-decoration: none;
}

/* GOV.UK select component ------------------------------------------------- */

.govuk-select {
color: black;
}

.govuk-label {
color: white !important;
}

/* Left nav tabs styling --------------------------------------------------- */

.nav-stacked>li>a {
Expand Down

0 comments on commit 774811c

Please sign in to comment.