Poster wall: 'Show on map' says when it is on (aria-pressed), since a second press turns it off
The button is a toggle (a second press clears the map selection) but carried no pressed state, so a second press was indistinguishable from a first to a screen reader. Reported by regions from rega's re-shoot of the show-on-map fix.
This commit is contained in:
parent
9918cc5bb8
commit
31ed8968d5
1 changed files with 3 additions and 1 deletions
|
|
@ -980,7 +980,9 @@ useShadowStyles(
|
|||
<div v-for="item in sec.items" :key="item.id" class="card"
|
||||
:class="{ 'is-last': lastShown === item.id }" :data-list-id="item.id">
|
||||
|
||||
<button type="button" class="tape tape-h"
|
||||
<!-- A TOGGLE (showOnMap clears the selection on a second press), so it says whether it is on:
|
||||
without aria-pressed a second press sounded identical to the first to a screen reader. -->
|
||||
<button type="button" class="tape tape-h" :aria-pressed="lastShown === item.id ? 'true' : 'false'"
|
||||
:aria-label="t('buttons.showOnMapAria', { label: item.label })" @click="showOnMap(item)">
|
||||
<span class="hcount">{{ item.count }} {{ unit }}</span>
|
||||
<span class="hsep">·</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue