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

Color contrast in immersive mode #26

Open
JayPanoz opened this issue Nov 18, 2024 · 2 comments
Open

Color contrast in immersive mode #26

JayPanoz opened this issue Nov 18, 2024 · 2 comments
Assignees
Labels

Comments

@JayPanoz
Copy link
Contributor

JayPanoz commented Nov 18, 2024

Right now our primary color is #4d4d4d. To have a contrast that passes WCAG AA for graphical objects and UI Components, it needs to be at least 60% opacity, which makes the difference between normal and immersive modes kinda difficult to notice.

@HadrienGardeur
Copy link
Contributor

I guess that the implementation of themes could also affect this value. Is there any way to dynamically calculate this contrast ratio as well?

@JayPanoz
Copy link
Contributor Author

I know they have had issues specc’ing this in CSS as it’s a pretty popular issue but that means lots of options exist in JS/TS-land. Even React actually – with an explainer in the ReadMe.

I guess the main challenge may be building upon the known solutions to find the nearest match with good enough contrast in a dynamic manner, and reliably. But in theory it should be feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Draft
Development

No branches or pull requests

2 participants