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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user