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

improve contrast of non-text component styling #508

Open
anandamaryon1 opened this issue Feb 29, 2024 · 0 comments
Open

improve contrast of non-text component styling #508

anandamaryon1 opened this issue Feb 29, 2024 · 0 comments
Assignees
Labels
accessibility Makes our products and services more accessible type: enhancement 💡

Comments

@anandamaryon1
Copy link
Collaborator

anandamaryon1 commented Feb 29, 2024

What

We've received the following feedback from an accessibility audit (nhsuk/nhsuk-frontend#927):

Bug Report

What is the issue?

An accessibility audit of our site has flagged the following non-compliance with WCAG Level AA: 1.4.11 Non-text Contrast. The contrast ratio of the dashes / bullet points in a contents list (https://service-manual.nhs.uk/design-system/components/contents-list) is 1.83:1

WCAG Success Criterion Success Criterion 1.4.11 Non-text Contrast (Level AA): The visual presentation of the following have a contrast ratio of at least 3:1 against adjacent color(s): User Interface Components: Visual information required to identify user interface components and states, except for inactive components or where the appearance of the component is determined by the user agent and not modified by the author; Graphical Objects: Parts of graphics required to understand the content, except when a particular presentation of graphics is essential to the information being conveyed.

WCAG Sufficient technique G207: Ensuring that a contrast ratio of 3:1 is provided for icons

What steps are required to reproduce the issue?

Go to any site that contents lists, e.g.: https://service-manual.nhs.uk/design-system/components/contents-list

What was the environment where this issue occurred?

Can be observed on all desktop devices including macOS Sonoma and Windows 11.

Is there anything else you think would be useful in recreating the issue?

This is a core NHS style component; flagging this issue for your consideration

This issue should look at improving the contrast of the contents list dashed but also consider other similar components. For example the breadcrumbs and table components.

Why

Improving the contrast will enhance the readability and therefore usability of some of our components that contain non-text elements with low contrast. Particularly for users with low vision.

Other information to support your proposal

Related to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Makes our products and services more accessible type: enhancement 💡
Projects
Development

No branches or pull requests

1 participant