Skip to content

fix(VTooltip, VSnackbar): increasecontrast on dark theme #21184

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

Merged
merged 1 commit into from
Apr 13, 2025

Conversation

J-Sek
Copy link
Contributor

@J-Sek J-Sek commented Mar 30, 2025

I can barely see the text. It is fine with light theme.

Current APCA score is 41.8 - not enough for any text

Dropped text color to pure black to make minimal adjustment to surface-variant. Otherwise it would need to change to #e0e0e0 and it would be more drastic change for other places (e.g. VSlider, VCarousel)

Black on #c8c8c8 gets 74.3 which is still below the threshold, but good enough and I'd rather not reach some arbitrary number and have the text readable than wait for inverse-surface to be adopted.


Before:

image

image

After:

image

image

@J-Sek J-Sek added a11y Accessibility issue C: VTooltip C: VSnackbar T: bug Functionality that does not work as intended/expected labels Mar 30, 2025
@J-Sek J-Sek self-assigned this Mar 30, 2025
@J-Sek
Copy link
Contributor Author

J-Sek commented Mar 30, 2025

Colors from MD3 spec get 82.4 for dark theme colors

@J-Sek J-Sek requested a review from johnleider March 30, 2025 03:40
@J-Sek J-Sek force-pushed the fix/dark-tooltip-contrast branch from 4159814 to 27d81bf Compare March 30, 2025 03:42
@J-Sek J-Sek force-pushed the fix/dark-tooltip-contrast branch from 27d81bf to 0c20616 Compare March 30, 2025 03:59
@johnleider johnleider added this to the v3.7.x milestone Mar 31, 2025
@KaelWD KaelWD modified the milestones: v3.7.x, v3.8.x Apr 1, 2025
@johnleider johnleider merged commit f2231c0 into vuetifyjs:master Apr 13, 2025
10 checks passed
@J-Sek J-Sek deleted the fix/dark-tooltip-contrast branch April 14, 2025 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility issue C: VSnackbar C: VTooltip T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants