Skip to content

Commit 3257054

Browse files
committed
Add accessible name to content pane div
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.
1 parent fb9e60c commit 3257054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/source/layouts/core.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</div>
5454
<% end %>
5555

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

0 commit comments

Comments
 (0)