Skip to content

Commit

Permalink
Add accessible name to content pane div
Browse files Browse the repository at this point in the history
When tabbing into the content pane with a screenreader we want
screenreaders that announce this to give a useful message to the user.

On VoiceOver and Chrome without this commit the announcement is
'and two items, group', after this commit the announcement is
'Content, group'. With NVDA and Firefox tabbing into the div is not
announced.
  • Loading branch information
lfdebrux committed Aug 26, 2022
1 parent f530551 commit 0817f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/source/layouts/core.erb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</div>
<% end %>

<div class="app-pane__content toc-open-disabled" tabindex="0">
<div class="app-pane__content toc-open-disabled" aria-label="Content" tabindex="0">
<main id="content" class="technical-documentation" data-module="anchored-headings">
<%= yield %>
<%= partial "layouts/page_review" %>
Expand Down

0 comments on commit 0817f47

Please sign in to comment.