Windows Narrator says that the Checkbox selection state has changed when visually the checkbox state doesn't change - should use <input> with type=checkbox
Bug Report Package version(s): 6.21.0 Browser and OS versions: Windows server 2016: Version 1607 OS Build 1493.2339 Internet Explorer 11: Version 11.2239.14393.0
Priorities and help requested:
Are you willing to submit a PR to fix? Yes
Requested priority: High
Describe the issue: Windows narrator will not say whether or not the color is selected when selecting the color.
Reproduction steps:
- Open I.E 11
- Navigate to: a. https://developer.microsoft.com/en-us/fabric#/components/checkbox
- Turn on windows narrator a. https://support.microsoft.com/en-us/help/22817
- Tab until you have a checkbox example selected
- Press 'caps' + 'enter'
Actual behavior: Checkbox does not visibly change state while narrator says the state has changed. E.g.
- Checkbox shows as checked.
- Press 'caps' + 'enter'
- Narrator says "unchecked"
- Checkbox shows as checked.
Expected behavior: Checkbox shows what narrator says the state is "checked" or "unchecked" and checkbox shows as checked or unchecked the same as narrator says it is.
This was previously reported in https://github.com/OfficeDev/office-ui-fabric-react/issues/5425, but nothing was done. The problem is due to a combination of the fact that the Fabric control uses
Can the Fabric control use <input> with type="checkbox"instead of a
The suggestion from @petewu100 is to change the implementation of Checkbox to utilize HTML input instead of a button.
Hi @petewu100, I'm not sure when or why Fabric started to use <button> instead of using <input>, but from what I gathered, there are significant challenges to using <input> and making it look correct.
Roughly:
- Styling options are supposedly really limited on input
- Styling focus border to look right when it is an input, and ensuring it is correct in high contrast mode as well.
I've opened #6872 to track a feature work to convert but this is not likely something to be tackled by the core team in short order.
Pull requests are welcome however - we have visual regression tests to help ensure all the visual requirements are not regressed on.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!
:tada:This issue was addressed in #7521, which has now been successfully released as [email protected].:tada:
Handy links: