Skip to content

Fix poor color contrast for cancel icon hover state in light mode#606

Open
kamalakiruthi8 wants to merge 1 commit intowagtail:mainfrom
kamalakiruthi8:patch-1
Open

Fix poor color contrast for cancel icon hover state in light mode#606
kamalakiruthi8 wants to merge 1 commit intowagtail:mainfrom
kamalakiruthi8:patch-1

Conversation

@kamalakiruthi8
Copy link
Copy Markdown

Fixes #433

Description

In light mode, the close button icon in the search modal had a
custom hover/focus color that only applied to the dark theme,
causing a contrast ratio of 1.06:1 on hover — violating WCAG
2.1 Success Criterion 1.4.3 (Contrast Minimum).

Fixed by removing the .theme-dark wrapper so the teal hover
color applies in both light and dark mode, ensuring sufficient
contrast on hover/focus.

AI usage

Used Claude to help identify the fix. Changes reviewed and
applied manually.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Poor color contrast in light mode for cancel icon in search modal

1 participant