Implement an accessible color picker for user-selected colors #15179
Labels
area: accessibility
issues that need accessibility improvements (a11y)
changelog: rollup
Items that will be communicated in our monthly rollup changelogs
internal team only
internal tasks only for Forem team members
tech: frontend
changes will primarily involve frontend technologies
type: refactoring
code refactors
We have quite a few color pickers in the app:
(there may be others I've missed)
Unfortunately, inputs with type "color" are not very accessible. In Safari for example, you can't even keyboard focus them.
We get around this in most places by also providing a plain text field where a user can insert the desired hex code (in the tag edit page we don't have this functionality), but it's not an equal experience for users who rely on the keyboard alone, or other assistive technologies. One set of users have to somehow "just know" the hex code they want to use, whereas others have the richer experience of the picker guiding them to make their choice. The disparity in the UX is going to become more pronounced as Forems begin to be used by more people without the technical background to know about hex colors.
A quick search on npm shows quite a few options for accessible color pickers we could potentially use. Implementing one of these would also give us the freedom to remove the plain text fields for hex codes, if we choose to.
The text was updated successfully, but these errors were encountered: