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

fix: switch wcag compliant #8060

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

CalleEklund
Copy link
Contributor

@CalleEklund CalleEklund commented Oct 9, 2023

Closes #8020

📝 Description

This PR updates the base track style for the switch component to make it WCAG 2.1 AA compliant.

⛳️ Current behavior (updates)

Currently the contrast ratio is 1.48:1 (unchecked) and 3.24:1 (checked)

🚀 New behavior

Now it has the contrast ratio 7.52:1 (unchecked) and 4.54:1 (checked)

💣 Is this a breaking change (Yes/No):

No

📝 Additional Information

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2023

🦋 Changeset detected

Latest commit: 53322d2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@chakra-ui/theme Patch
@chakra-ui/react Patch
@chakra-ui/toast Patch
@chakra-ui/system Patch
@chakra-ui/theme-utils Patch
@chakra-ui/test-utils Patch
@chakra-ui/provider Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chakra-ui-storybook ✅ Ready (Inspect) Visit Preview Nov 22, 2023 7:27am

@CalleEklund CalleEklund changed the title Fix/switch wcag compliant fix: switch wcag compliant Oct 11, 2023
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.

Accessibility: switch control fails colour contrast: WCAG 1.4.3
1 participant