So I have been trying to add proper aria tagging and html to some custom checkboxes and toggles, but found that they are not being read properly in JAWS on IE but they read fine on JAWS with chrome.
Has anyone else experienced these issues and know the cause?
Issue 1: This should read as a switch, but on IE it reads as a button, chrome it reads switch.
Code 1:
<div class="field">
<input class="toggle-input" id="styleguide-toggle-demo" type="checkbox" name="Option Demo" value="option Demo" role="switch">
<label class="toggle-label" for="styleguide-toggle-demo">
<span class="toggle-message">Demo</span>
<span class="toggle">
<span class="knob"></span>
</span>
</label>
</div>
Issue 2: The checkbox should read the label. Currently in IE it only reads the checked state of the checkbox, while in chrome it reads the label and the checked state.
Code 2:
<label for="styleguide-checkbox-A">
<input id="styleguide-checkbox-A" class="input-checkbox" type="checkbox" name="styleguide-checkbox-A" value="styleguide-checkbox-option-A">
<span>Option A</span>
</label>