MDL-68444 calendar: Improve how screenreaders say week titles

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.
This commit is contained in:
Shamim Rezaie
2020-07-14 22:12:59 +10:00
parent 0368c8e2a8
commit 5d9fb70f70
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -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>
+3 -2
View File
@@ -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>