Skip to content

Commit 47e7aac

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

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
@@ -38,6 +38,8 @@
3838
</div>
3939

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

0 commit comments

Comments
 (0)