fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

ColorPicker A11y Pass

Open awalia13 opened this issue 7 years ago • 8 comments

Tracking all of the issues brought up with the 3/25 accessibility pass on ColorPicker control Details on individual bugs can be found on Sharepoint

  • ~~[ ] Bug1: [Accessibility][Programmatic access ]: Label should be defined for the sliders available for changing the colors.~~ Doesn't block essential functionality (see below); will be fixed if we do feature #8012.
  • ~~[ ] Bug2: [Accessibility][Usable]: In scan mode backward navigation focus is going on selected color panel but screen reader is providing details about table. And forward navigation focus does not go to the selected colors quare panel, sliders, and the color picker.~~ can't reproduce/not a bug (see below)

awalia13 avatar Mar 25 '19 21:03 awalia13

@micahgodbolt - We found two more issues in ColorPicker but these issues were already logged as per below. Please suggest if we need to log below bugs also in "ColorPicker A11y Pass #8463" https://github.com/OfficeDev/office-ui-fabric-react/pull/8429 https://github.com/OfficeDev/office-ui-fabric-react/issues/8012

awalia13 avatar Mar 25 '19 21:03 awalia13

#8429 is a completed pull request, not an issue--meaning it's already been fixed.

For #8012 about slider keyboard accessibility, here's what I said on that bug:

Even without this, the ColorPicker is still somewhat accessible (the user can type in the text fields) but that's probably not ideal. The main functional difference is that the sliders allow specific adjustment in terms of of hue, saturation, and value, whereas the text fields only allow RGBA (and hex) adjustment.

Not sure who decides how essential this is to fix?

ecraig12345 avatar Mar 25 '19 21:03 ecraig12345

@ecraig12345 bug1 seems straightforward, correct me if I'm wrong. Bug2 sounds like it could be a Narrator issue? Is this something we need to escalate?

dzearing avatar Mar 26 '19 03:03 dzearing

Thinking about it more, fixing bug 1 may only make sense if we fix #8012--correct me if I'm wrong, but I'm not sure how useful it is to read the sliders if the user can't interact with them. Otherwise we should just make the sliders hidden from the screen reader (aria-hidden and/or role=presentation?).

I also question how important it is to fix #8012, at least for screen reader users (sighted power users might appreciate fine-grained keyboard adjustment with visual feedback). The text fields by themselves allow selecting a full range of possible colors; the sliders and rectangle just provide a different perspective. And even if we do make them keyboard accessible, the values may not be very meaningful to users--for example, the hue slider has range 0-359, but the average person won't know which color a hue value maps to. Saturation and value numbers (the rectangle) aren't all that meaningful either.

For bug 2, I don't know enough about scan mode to evaluate.

ecraig12345 avatar Mar 26 '19 04:03 ecraig12345

Bug2 had 2 parts, neither of which really requires any action.

  • "Forward navigation focus does not go to the selected colors quare panel, sliders, and the color picker" -- This is by design, since those elements aren't keyboard-accessible
  • "In scan mode backward navigation focus is going on selected color panel but screen reader is providing details about table." -- I can't reproduce this. The only info read is the table with the text fields.

To ensure that screen reader users don't somehow encounter the slider/rectangle elements and get confused, I'm going to make a PR adding aria-hidden to those elements, then close out this issue. (Reiterating, the full range of colors can be entered using the text fields, so while it would be nice to have keyboard-accessible sliders/rectangle, it's not a high priority, especially given the amount of work required.)

ecraig12345 avatar Oct 04 '19 22:10 ecraig12345

Possibly going back on the aria-hidden thing now and adding full keyboard support instead...

ecraig12345 avatar Oct 17 '19 18:10 ecraig12345

Closing in favor of #8012.

ecraig12345 avatar Oct 29 '19 18:10 ecraig12345

:tada:This issue was addressed in #10882, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Nov 04 '19 12:11 msft-github-bot