Skip to content
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

Accessibility issues with handbook layout #368

Closed
6 tasks done
adamwoodnz opened this issue Nov 14, 2023 · 13 comments · Fixed by #389
Closed
6 tasks done

Accessibility issues with handbook layout #368

adamwoodnz opened this issue Nov 14, 2023 · 13 comments · Fixed by #389
Assignees
Labels
Accessibility Issues related to keyboard navigation, screen readers, etc layout priority: high Redesign
Milestone

Comments

@adamwoodnz
Copy link
Contributor

adamwoodnz commented Nov 14, 2023

From Alex Stine on Slack:

Here is a quick list:

  • The Improve it on GitHub link is not descriptive enough.
  • Same for See list of changes link.
  • The link NextGetting Started has no spacing and is announced as 2 words instead of 3.
  • The handbook chapters heading 2 is the first heading on the page. This design needs to be reworked, no questions asked.
  • The skip to main content link does not land you in the main content, it lands you in all the items before the main heading 1.
  • The main landmark should not wrap navigational elements such as the Chapters heading 2 or the search form above it.
@adamwoodnz adamwoodnz added layout Accessibility Issues related to keyboard navigation, screen readers, etc Redesign priority: high labels Nov 14, 2023
@adamwoodnz adamwoodnz added this to the MVP milestone Nov 14, 2023
@adamwoodnz
Copy link
Contributor Author

cc @fcoveram @ndiego, not sure how hard this will be to fix yet

@adamwoodnz adamwoodnz self-assigned this Nov 14, 2023
@ndiego
Copy link
Member

ndiego commented Nov 14, 2023

  • The handbook chapters heading 2 is the first heading on the page. This design needs to be reworked, no questions asked.
  • The skip to main content link does not land you in the main content, it lands you in all the items before the main heading 1.
  • The main landmark should not wrap navigational elements such as the Chapters heading 2 or the search form above it.

Are these three items due to the fact that the Chapters list is inside <main> and not wrapped in an <aside> tag? I was comparing the current layout with other sites like Mozilla and the React docs. In both cases, they have a heading that is not an H1 that is the first on the page, but, it's not in <main> and is wrapped in an <aside>.

cc @alexstine

@alexstine
Copy link

@ndiego It would be more valid if it were wrapped in an <aside> tag but it would be even better if the heading 1 came first. Headings should represent importance on a page so I always have argued that the <aside> should appear directly after <main> in the DOM.

@adamwoodnz
Copy link
Contributor Author

Pretty sure I'll be able to reorder the content and keep the visual layout. It's next on my list after the ToC styling.

@adamwoodnz
Copy link
Contributor Author

adamwoodnz commented Nov 14, 2023

Should the Table of Contents also be an aside?

Something like

<header { including breadcrumbs and search } >
<main>
<aside class="chapter-list">
<aside class="table-of-contents">
<footer>

The visual layout will be tough to achieve if so. It would help greatly if it was immediately after the h1 within main.

@alexstine
Copy link

@adamwoodnz I think they are both wrapped in <nav> by default? If this is the case, they don't need their own <aside>. There should really only ever be one <aside> on a page if possible.

@adamwoodnz
Copy link
Contributor Author

  • The link NextGetting Started has no spacing and is announced as 2 words instead of 3.

Are the 'Previous' and 'Next' bits actually useful with a screen reader? I notice there is a rel="next" attribute on the anchor too.

Trying to decide whether to add punctuation (the design has a middot, but it's not implemented as text), or make the link content only the page title for screen readers.

@alexstine
Copy link

Next and previous are useful labels if it conveys specific actions. For example, Next section: section name or Next chapter: chapter name.

@adamwoodnz
Copy link
Contributor Author

adamwoodnz commented Nov 16, 2023

  • The Improve it on GitHub link is not descriptive enough.
  • Same for See list of changes link.

What would you suggest for these?

Help improve this document
See the history of this document

Visual for designers:

Screenshot 2023-11-16 at 3 26 27 PM

@alexstine
Copy link

@adamwoodnz

The Improve it on GitHub link is not descriptive enough.

Improve on GitHub: doc title here

Same for See list of changes link.

Document revisions: doc title here

It needs to convey current context.

@adamwoodnz
Copy link
Contributor Author

The layout updates have just been deployed, GitHub links and pagination to follow.

@alexstine
Copy link

@adamwoodnz Would it be possible to also move the meta information inside the complementary landmark? It would likely be more discoverable just above the Chapters heading. Other than that, really much improved. Thanks.

@adamwoodnz
Copy link
Contributor Author

adamwoodnz commented Nov 21, 2023

Would it be possible to also move the meta information inside the complementary landmark?

This will be difficult to achieve as visually the complementary landmark sits to the left of main in a sidebar. It will take quite a refactor, but could be possible.

Issue created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility Issues related to keyboard navigation, screen readers, etc layout priority: high Redesign
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants