-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fixed contrast problems for disabled elements #1921
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not agree with these changes. aria-disabled
should be placed on the operable element that can be disabled (or on the container of all the operable elements). RadioGroupContainer
is not the case because not all of its descendants are focusable (label and helper text are only visual).
I understand why you make this change but I do not know for sure if it is a good use of aria-disabled
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have yet to validate some of these changes with the Design team.
Currently facing a strange problem. test-storybook is targetting .test.js files for some reason when it should be targetting only the stories.tsx ones (according to the config file inside .storybook/main.ts). However this problem only occurs in the GitHub flow, I can't replicate it in local. EDIT: It was a confusion caused by a problem in my end when loading the storybook, after refreshing there is no longer differences in the execution between localhost and CI/CD. Sorry about that. |
Lara thinks that it is not appropiate to make these changes to meet contrast rules until the new core tokens are defined, I think that totally makes sense as we would have to do the work twice. I will keep this closed for now. |
Checklist
/lib
directory./website
as needed.Description
WCAG AA indicates that contrast should be at least 4.5:1 EXCEPT FOR:
There were some disabled content that was not tagged with aria-disabled={true}, that's the reason why it was being registered as a color-contrast issue in the accessibility automatic testing.
Now it is fixed, leaving only the following contrast issues to be solved:
Those are pending to be solved by the designers.
Related to #1899.