Skip to content

Updates to accessibility panel (shinyGovstyle)#132

Open
DYING-478 wants to merge 7 commits into
mainfrom
accessibility_panel_update
Open

Updates to accessibility panel (shinyGovstyle)#132
DYING-478 wants to merge 7 commits into
mainfrom
accessibility_panel_update

Conversation

@DYING-478
Copy link
Copy Markdown
Contributor

The R code for the accessibility panel within the 'dfeshiny' repository is going through an update similar to the support panel, where the new shinyGovstyle format is being used to replace the original version. There are currently updates to the header, text, bullets and numbering being entered. This is however subject to ensuring that all UI tests pass. More commits to follow.

@DYING-478 DYING-478 requested a review from rmbielby April 24, 2026 16:14
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

❌ Patch coverage is 96.39640% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.02%. Comparing base (5e8c889) to head (b60c648).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   63.72%   65.02%   +1.29%     
==========================================
  Files          15       15              
  Lines        1293     1341      +48     
==========================================
+ Hits          824      872      +48     
  Misses        469      469              

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e8c889...b60c648. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

expect_equal(
paste(output$children[[1]]),
"<h1>Accessibility statement for DfE Shiny template</h1>"
"<h1 class=\"govuk-heading-xl\" id=\"accessibility_statement_for_dfe_shiny_template\">Accessibility statement for DfE Shiny template</h1>"
expect_equal(
paste(output$children[[3]]),
"<h2>How you should be able to use this website</h2>"
"<h2 class=\"govuk-heading-l\" id=\"how_you_should_be_able_to_use_this_website\">How you should be able to use this website</h2>"
expect_equal(
paste(output$children[[8]]),
"<h2>How accessible this website is</h2>"
"<h2 class=\"govuk-heading-l\" id=\"how_accessible_this_website_is\">How accessible this website is</h2>"
expect_equal(
paste(output$children[[10]]),
"<h2>Feedback and contact information</h2>"
"<h2 class=\"govuk-heading-l\" id=\"feedback_and_contact_information\">Feedback and contact information</h2>"
expect_equal(
paste(output$children[[17]]),
"<h2>Technical information about this website's accessibility</h2>"
"<h2 class=\"govuk-heading-l\" id=\"technical_information_about_this_websites_accessibility\">Technical information about this website's accessibility</h2>"
expect_equal(
paste(output$children[[23]]),
"<h2>How we tested this website</h2>"
"<h2 class=\"govuk-heading-l\" id=\"how_we_tested_this_website\">How we tested this website</h2>"
expect_equal(
paste(output$children[[28]]),
"<h2>What we're doing to improve accessibility</h2>"
"<h2 class=\"govuk-heading-l\" id=\"what_were_doing_to_improve_accessibility\">What we're doing to improve accessibility</h2>"
expect_equal(
paste(output$children[[31]]),
"<h2>Preparation of this accessibility statement</h2>"
"<h2 class=\"govuk-heading-l\" id=\"preparation_of_this_accessibility_statement\">Preparation of this accessibility statement</h2>"
Copy link
Copy Markdown
Contributor

@rmbielby rmbielby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few small suggestions

Comment thread R/a11y_panel.R Outdated
"We know some parts of this website are not fully accessible:"
),
shiny::tags$div(tags$ol(
tagList(lapply(non_accessible_components, shiny::tags$li))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please can you switch this to use gov_list(..., style = "number"). It should be a simplification of the code as gov_list() just takes a vector anyway, so you can remove the lapply() bit.

Comment thread R/a11y_panel.R Outdated
href = "mailto:explore.statistics@education.gov.uk",
"explore.statistics@education.gov.uk"
shinyGovstyle::gov_list(
list(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem to remember this should be c() rather mthan list()?

Comment thread R/a11y_panel.R Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, please can you switch this to use gov_list(..., style = "number"). It should be a simplification of the code as gov_list() just takes a vector anyway, so you can remove the lapply() bit.

Comment thread R/a11y_panel.R Outdated
shiny::tags$p(
shiny::tags$div(
shinyGovstyle::gov_list(
list(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, think this should be c(...) rather than list()? Doesn't look like it's displaying it properly when I run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants