mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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.
This commit is contained in:
committed by
Jeremy Elbourn
parent
42de6a2c98
commit
47e7aac6da
@@ -38,6 +38,8 @@
|
||||
</div>
|
||||
|
||||
<span class="mat-slide-toggle-content" #labelContent (cdkObserveContent)="_onLabelTextChange()">
|
||||
<!-- Add an invisible span so JAWS can read the label -->
|
||||
<span style="display:none"> </span>
|
||||
<ng-content></ng-content>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user