New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods a11y: multiple H1's on single page #447
Comments
This is 90% complete. Working on an issue with passing a parameter to multi level templates. Once that is done, the PR will be ready for review. |
I ran into an issue of the hard coded headings in the MD files. I believe this can be handled using macros. I need to look into it further but, at first glance, it appears that this will work. I will post an update when I know more. |
Still looking into using macros to handle this issue. The updates work on all HTML headings but do not extend to headings created in the MD files using the hash syntax (# = h1, ## = h2, ...). |
It looks like the only H1 that should be on the pages should be the category (for example, Discover or Validate). The other headings can be bumped down one level. This change doesn't require any logic to change the H1 to H2 when multiple cards are present. Just an rewrite of the HTML elements. I have a PR open with the changes to the html templates and the markdown files in #473. @jasnakai If there are other related issues, please open a separate ticket. |
Copying some important comments here from the #473 ticket. from @jasnakai
from @cannandev
I'm going to close this issue and copy your comment into the original #447 ticket. Thanks! |
A description of the work
This issue pertains to the Methods site views with the method cards.
Each method card has 3 h1's. Although it is technically allowable to have multiple h1's on the same view for better UX and accessibility, we should keep it to one per view.
W3C Headings guidance: https://www.w3.org/WAI/tutorials/page-structure/headings/
Point of contact on this issue
Jason Nakai: @jasnakai
Acceptance Criteria
No response
The text was updated successfully, but these errors were encountered: