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

Autocomplete: Bad colour contrast for search icon in High Contrast mode #4016

Closed
Tracked by #3967
selfthinker opened this issue Aug 8, 2024 · 0 comments · Fixed by #4037
Closed
Tracked by #3967

Autocomplete: Bad colour contrast for search icon in High Contrast mode #4016

selfthinker opened this issue Aug 8, 2024 · 0 comments · Fixed by #4037
Assignees
Labels
accessibility audit july 2024 Issues from July 2024 external accessibility audit against WCAG 2.2 criteria

Comments

@selfthinker
Copy link
Contributor

This issue is from the accessibility audit of the Design System website by DAC in July 2024.

DAC's description

When viewing the site within an inverted colour scheme, low vision users might have difficulty identifying the purpose of the search field due to the way the visible magnifying icon contrasts.

Screenshot of the search box in High Contrast mode

DAC's proposed solution

We suggest applying the CSS property ‘forced-color-adjust: auto’ on the SVG to ensure that it is displayed correctly within in High Contrast Mode.

Other potential solutions

There might be other solutions.
It's probably best to use the same solution we use in other places.

Additional instances

This component appears on every page but is a single component, therefore only needs to be fixed once.
It uses the accessible autocomplete component.
But this particular issues seems to be specific to the Design System website and is not part of the component by default.

Needed roles

Frontend developer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility audit july 2024 Issues from July 2024 external accessibility audit against WCAG 2.2 criteria
Projects
Status: Done 🏁
Development

Successfully merging a pull request may close this issue.

2 participants