Skip to content

Commit ec1f019

Browse files
author
Salma Alam-Naylor
committed
Accessibility fixes for scale info toggle
1 parent 5e6e438 commit ec1f019

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

apps/fretonator-web/src/app/common/fretonator/scale-map/scale-map.component.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ <h4 class="scaleMap__title">Degrees</h4>
1111
</div>
1212
<button class="scaleDegrees__toggle"
1313
aria-label="Scale Degrees Info Toggle"
14-
aria-controls="scaleMapInfo"
1514
type="button"
16-
[attr.aria-expanded]="showScaleMapInfo"
1715
(click)="toggleScaleMapInfo()">{{scaleDegreesToggleText}}
1816
</button>
1917
</div>
@@ -32,12 +30,11 @@ <h5 class="scaleDisplay__note">
3230
</div>
3331

3432
<div class="scaleMapInfo"
35-
id="scaleMapInfo"
33+
[attr.aria-expanded]="showScaleMapInfo"
3634
*ngIf="showScaleMapInfo">
3735
<h2 class="scaleMapInfo__title">About Scale Degrees
3836
<button class="scaleMapInfo__close"
39-
aria-label="Scale Degrees Info Toggle"
40-
aria-controls="scaleMapInfo"
37+
aria-label="Scale Degrees Info Close"
4138
type="button"
4239
(click)="toggleScaleMapInfo()">
4340
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14">

0 commit comments

Comments
 (0)