-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A11y: Labels and Contrast on Search and Message fields #28426
Comments
Nothing to do right now - @gaelledel please note that this is a requirement on the room list designs :)
@americanrefugee please update this in Figma so that the Compound tokens are correct (as discussed in the room) :)
@americanrefugee please update this in Figma so that the Compound tokens are correct (as discussed in the room) :)
@t3chguy reports this is already secondary so this should be covered, can we confirm?
Needs action
Needs action
Needs action
Needs action |
This explicitly currently uses tertiary content, will update to
This uses
Ditto
This currently specifies no colour so the browser chooses |
In general: We should not use --cpd-color-text-placeholder anymore. Instead, we should always use --cpd-color-text-secondary
Lemme know if you have any questions or concerns. |
Why is that? Where does it say that? That goes against tokens being semantic. The token should be removed outright if it is not to be used, or at least be explicitly marked as deprecated otherwise it'll continue to be used. Even Compound is still using it for its placeholders. |
Because that color token fails all the accessibility tests. I've replaced all the instances of text-color-placeholder in the Compound files with text-color-secondary (I think). But perhaps we should discuss further before I actually remove text-color-placeholder from the Compound Styles doc? I don't wanna mess anything up... |
Great, if we can remove it and remove the confusion and just use secondary then that's fine too. |
As per element-hq/element-web#28426 (comment), the color/text/placeholder token is being removed from the design system as it does not generally result in accessible contrast levels. It should be replaced with color/text/secondary. Note that update to the token data was performed manually as Aaron and I need to take a look at what's happened with the Tokens Studio setup (and I'm incidentally interested in switching our export format to the new W3C DTCG standard).
As per element-hq/element-web#28426 (comment), the color/text/placeholder token is being removed from the design system as it does not generally result in accessible contrast levels. It should be replaced with color/text/secondary. Note that update to the token data was performed manually as Aaron and I need to take a look at what's happened with the Tokens Studio setup (and I'm incidentally interested in switching our export format to the new W3C DTCG standard).
As per element-hq/element-web#28426 (comment), the color/text/placeholder token is being removed from the design system as it does not generally result in accessible contrast levels. It should be replaced with color/text/secondary. Note that this update to the token data was performed manually as Aaron and I need to take a look at what's happened with the Tokens Studio setup (and I'm incidentally interested in switching our export format to the new W3C DTCG standard).
Your use case
What would you like to do?
A11y guidelines say that you need to have a label on all fields. Our designs do not have labels on some input fields (mostly Search and Send Message areas).
Why would you like to do it?
For better accessibility of our web products
How would you like to achieve it?
Update each field in the web app that does not have a label
Tasks
The text was updated successfully, but these errors were encountered: