While using the Switch Component from Kendo UI for Angular, I ran into an issue. The default labels "On" and "Off" were missing on my switch component even though they appeared in the documentation default switch. Upon further investigation, I found the "offLabel" and "onLabel" properties. I implemented them in my code but still couldn't see the labels.
This is what my component.html looks like:
<kendo-switch name="isActive" onLabel="Yes" offLabel="No" class="switch" [(ngModel)]="inspectionPlan.isActive"></kendo-switch>
Upon inspecting with Browser DevTools, I noticed this:
<span class="k-switch-label-on" aria-hidden="true"gt; Yes </span>
<span class="k-switch-label-off" aria-hidden="true"> No </span>
I suspect that the labels are not visible due to the aria-hidden property, but I am unsure why it is set to hidden by default. Does anyone have a solution to remove this property?