MDL-77651 calendar: Hide left/right arrow characters

* Hide the arrow characters for the calendar templates so they won't be
read out by screen readers and avoid confusion for screen reader users.
This commit is contained in:
Jun Pataleta 2023-09-11 13:58:56 +08:00
parent cc9a537bd2
commit 11e0579540
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@
}} data-month="{{previousperiod.mon}}"{{! }} data-month="{{previousperiod.mon}}"{{!
}} data-day="{{previousperiod.mday}}"{{! }} data-day="{{previousperiod.mday}}"{{!
}}> }}>
<span class="arrow">{{{larrow}}}</span> <span class="arrow" aria-hidden="true">{{{larrow}}}</span>
&nbsp; &nbsp;
<span class="arrow_text">{{previousperiodname}}</span> <span class="arrow_text">{{previousperiodname}}</span>
</a> </a>
@ -58,7 +58,7 @@
}}> }}>
<span class="arrow_text">{{nextperiodname}}</span> <span class="arrow_text">{{nextperiodname}}</span>
&nbsp; &nbsp;
<span class="arrow">{{{rarrow}}}</span> <span class="arrow" aria-hidden="true">{{{rarrow}}}</span>
</a> </a>
</div> </div>
</div> </div>

View File

@ -41,7 +41,7 @@
}} data-month="{{previousperiod.mon}}"{{! }} data-month="{{previousperiod.mon}}"{{!
}} data-drop-zone="nav-link" {{! }} data-drop-zone="nav-link" {{!
}}> }}>
<span class="arrow">{{{larrow}}}</span> <span class="arrow" aria-hidden="true">{{{larrow}}}</span>
&nbsp; &nbsp;
<span class="arrow_text">{{previousperiodname}}</span> <span class="arrow_text">{{previousperiodname}}</span>
</a> </a>
@ -63,7 +63,7 @@
}}> }}>
<span class="arrow_text">{{nextperiodname}}</span> <span class="arrow_text">{{nextperiodname}}</span>
&nbsp; &nbsp;
<span class="arrow">{{{rarrow}}}</span> <span class="arrow" aria-hidden="true">{{{rarrow}}}</span>
</a> </a>
</div> </div>
</div> </div>