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

WCAG Level AAA: Contrast (Enhanced) - Button #136

Open
Tracked by #141
Sparrow0hawk opened this issue Jul 31, 2024 · 0 comments
Open
Tracked by #141

WCAG Level AAA: Contrast (Enhanced) - Button #136

Sparrow0hawk opened this issue Jul 31, 2024 · 0 comments
Labels
accessibility Improves accessibility

Comments

@Sparrow0hawk
Copy link
Contributor

Sparrow0hawk commented Jul 31, 2024

Low Priority WCAG Level AAA

Contrast (Enhanced)

Colours used failed to meet the required contrast ratios to meet the WCAG 2.2 enhanced success criteria.

WCAG Reference:

1.4.6 Contrast (Enhanced) (Level AAA)
Understanding Contrast (Enhanced) | How to Meet Contrast (Enhanced)

Issue ID: DAC_Contrast_Enhanced_02

URL: https://test.update-your-capital-schemes.activetravelengland.gov.uk/schemes/64
Page title: 'Update your capital schemes - Active Travel England - GOV.UK'
H1 heading: 'BO-ATF-001 Manchester Road Corridor Phase 1' (scheme overview page)
Journey: 1.2a

Screenshot:
constrast2

On the scheme overview page, as this is the default GOV.UK Design System button style, there are buttons that have insufficient contrast to meet WCAG 2.2 Contrast (Enhanced) requirements.

This can affect low vision users, who require higher levels of contrast to be able to comfortably read text.

Contrast values:

Background colour: #00703C
Text colour: #FFFFFF
Font size: 1rem / 16px (mobile), 1.1875rem / 19px (desktop)
Contrast ratio: 6.21:1

Current code ref(s):

#main-content > div > div > section > form > button

<button type="submit" class="govuk-button" data-module="govuk-button">
   Confirm
</button>

CSS:

.govuk-button
{
   […]
   font-weight: 400;
   font-size: 16px;
   font-size: 1rem;
   […]
   color: #fff;
   background-color: #00703c;
   […]
}

CSS:

@media (min-width: 40.0625em)
.govuk-button
{
   font-size: 19px;
   font-size: 1.1875rem;
   […]
}

Examples of additional instances:

Additional instances of this issue may exist on other pages throughout the website; wherever this issue occurs, they too will need to be resolved.

Solution:

Ensure that all text and any elements that provide information to the user pass colour contrast (enhanced).

For sites to meet AAA, they must comply with WCAG 2.2 checkpoint 1.4.6 for colour contrast.

As far as contrast ratio is concerned, it must at least be:

  1. if text is not bold and its size is less than 18pt/24px/1.5em/150%: 7:1 for AAA level
  2. if text is not bold and its size is at least 18pt/24px/1.5em/150%: 4.5:1 for AAA level
  3. if text is bold and its size is less than 14pt/19px/1.2em/118%: 7:1 for AAA level
  4. if text is bold and its size is at least 14pt/19px/1.2em/118%: 4.5:1 for AAA level
@Sparrow0hawk Sparrow0hawk added the accessibility Improves accessibility label Jul 31, 2024
@markhobson markhobson changed the title WCAG Level AAA: Contrast (Enhanced) - govuk-button WCAG Level AAA: Contrast (Enhanced) - Buttons Aug 2, 2024
@markhobson markhobson changed the title WCAG Level AAA: Contrast (Enhanced) - Buttons WCAG Level AAA: Contrast (Enhanced) - Button Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Improves accessibility
Projects
None yet
Development

No branches or pull requests

1 participant