Skip to content

Commit 013213a

Browse files
crisbetojelbourn
authored andcommitted
fix(slide-toggle): label not being read out by JAWS
Along the same lines as #4610. Adds an extra element to allow for JAWS to pick up the label.
1 parent b02a72e commit 013213a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/slide-toggle/slide-toggle.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
</div>
4040

4141
<span class="mat-slide-toggle-content" #labelContent (cdkObserveContent)="_onLabelTextChange()">
42+
<!-- Add an invisible span so JAWS can read the label -->
43+
<span style="display:none">&nbsp;</span>
4244
<ng-content></ng-content>
4345
</span>
4446
</label>

0 commit comments

Comments
 (0)