Skip to content

Conversation

@gadenbuie
Copy link
Member

@gadenbuie gadenbuie commented May 15, 2023

Fixes #579

This PR improves the accessibility of the sidebar markup in three ways:

  • Removes role="main' from the sidebar .main area. This is a WCAG violation, because there should only be one main landmark on the page.
  • Uses <aside> for the sidebar, rather than role="complimentary". These are functionally equivalent.
  • Uses <header> for the sidebar title.

@gadenbuie gadenbuie changed the title Use semantice elements in sidebar Use semantic elements in sidebar May 15, 2023
@gadenbuie gadenbuie marked this pull request as ready for review October 6, 2023 16:12
@gadenbuie gadenbuie requested a review from cpsievert October 6, 2023 16:19
@gadenbuie gadenbuie merged commit 11a8281 into main Oct 10, 2023
@gadenbuie gadenbuie deleted the sidebar/header branch October 10, 2023 20:09
schloerke added a commit to posit-dev/py-shiny that referenced this pull request Oct 25, 2023
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.

Use semantic tag elements wherever possible

3 participants