Skip to content

Commit

Permalink
MDL-68444 calendar: Improve how screenreaders say week titles
Browse files Browse the repository at this point in the history
Also removed the scope attribute from the mini-calendar table
because according to https://www.w3.org/TR/WCAG20-TECHS/H63.html
it was not needed:
  Note 1: For simple tables that have the headers in the first row
  or column then it is sufficient to simply use the TH elements without
  scope.
  • Loading branch information
rezaies committed Jul 14, 2020
1 parent 7328144 commit 216c392
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions calendar/templates/month_detailed.mustache
Expand Up @@ -46,8 +46,9 @@
<thead>
<tr>
{{# daynames }}
<th class="header text-xs-center" aria-label="{{fullname}}">
{{shortname}}
<th class="header text-xs-center">
<span class="sr-only">{{fullname}}</span>
<span aria-hidden="true">{{shortname}}</span>
</th>
{{/ daynames }}
</tr>
Expand Down
5 changes: 3 additions & 2 deletions calendar/templates/month_mini.mustache
Expand Up @@ -78,8 +78,9 @@
<thead>
<tr>
{{# daynames }}
<th class="header text-xs-center" scope="col" aria-label="{{fullname}}">
{{shortname}}
<th class="header text-xs-center">
<span class="sr-only">{{fullname}}</span>
<span aria-hidden="true">{{shortname}}</span>
</th>
{{/ daynames }}
</tr>
Expand Down

0 comments on commit 216c392

Please sign in to comment.