-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: sd badge a11y #1563
fix: sd badge a11y #1563
Conversation
🚀 Storybook has been deployed for branch |
I think it's incoherent to describe the different colour variants as "not having a semantic meaning" while also naming them "default", "success" and "error". Whether the variant is defined semantically in Storybook/Figma or not, the use of certain colours (green and red) does impact how the user perceives the urgency of a badge, especially if several variants are used within the same context. Therefore, I suggest acknowledging colour interpretations or otherwise neutral colour names or brand-related terms. Some examples:
|
As far as I understand it the variant name is the issue and not the token name right? sd-badge is the only component where this issue occurs ... changing the token name is rather hectic and I’m wondering if we could solve it pragmatically by just naming the color variants to "blue", "red", "green". |
The token name wouldn't be the issue (from my perspective). Naming the variants by the colour names is a good solution if we don't want to define connotations there. I would warn about colour interpretation in the documentation. |
We can change the variants name although this is a breaking change, therefore would need to tackle in a separate branch (FYI @mariohamann). @miguelxnxn can you then provide me a text to include in the variants description? |
Since there is no particular desire to encourage the use of the blue one and therefore set it as "default", I think "blue", "red" and "green" are the best options to avoid connotations. @smfonseca |
Seems that the line-height was messing up the alignment in Safari. Should be fixed now, please check again 🔎@MartaPintoTeixeira. |
Please change this copy on the 2nd template: |
In figma we link to 4 Related Templates. Please double check. |
In figma we have "sd-status-badge" on the related components. Can you add it? |
The sd-status-badge doesn't exist in code yet. It's planned for iteration 18 |
The |
Updated |
# [@solid-design-system/components-v3.20.5](components/3.20.4...components/3.20.5) (2024-10-31) ### Bug Fixes * sd badge a11y ([#1563](#1563)) ([762656f](762656f))
Description:
Addresses the following tickets:
Definition of Reviewable: