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:
Kristiyan Kostadinov
2018-11-28 17:00:28 +01:00
committed by Jeremy Elbourn
parent 42de6a2c98
commit 47e7aac6da
+2
View File
@@ -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">&nbsp;</span>
<ng-content></ng-content>
</span>
</label>