Skip to content
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

btn-default contrast ratio #420

Open
jeffrey-devries opened this issue Oct 30, 2023 · 2 comments
Open

btn-default contrast ratio #420

jeffrey-devries opened this issue Oct 30, 2023 · 2 comments

Comments

@jeffrey-devries
Copy link

The default versus focus state of the btn-default class that we use in 'expandable/collapsable' (details/summary) accordion element and buttons is not meeting the minimum 3:1 contrast ratio expectation based on the WCAG 2.1 S.C. 1.4.11 requirements. The settings in the WET only produce a 1.3:1 ratio.

.btn-default{color:#335075;background-color:#eaebed;border-color:#dcdee1}
.btn-default.focus,.btn-default:focus{color:#335075;background-color:#cfd1d5;border-color:#989da6}
.btn-default:hover{color:#335075;background-color:#cfd1d5;border-color:#bbbfc5}
.btn-default.active,.btn-default:active,.open>.btn-default.dropdown-toggle{color:#335075;background-color:#cfd1d5;background-image:none;border-color:#bbbfc5}

I have a solution to suggest that will produce 3.8:1 ratio. Please note I've applied this in the iService.prv CSS to override the template until this can be looked at.
.btn-default.focus,.btn-default:focus{color:#ffffff;background-color:#777777;border-color:#333333}
.btn-default:hover{color:#ffffff;background-color:#777777;border-color:#333333}
.btn-default.active,.btn-default:active,.open>.btn-default.dropdown-toggle{color:#ffffff;background-color:#777777;background-image:none;border-color:#333333}

Thank you for your consideration.

@ghost
Copy link

ghost commented Oct 31, 2023

I would post your concerns at https://github.com/wet-boew/wet-boew as this repo is not maintained.

I am just a volunteer on this GitHub project.

@ghost ghost added the Work: Accessibility label Oct 31, 2023
@jeffrey-devries
Copy link
Author

OK. Thanks, I'll do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant