Skip to content

Update non-text contrast for caret styling #4524

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

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

Conversation

fstrr
Copy link
Contributor

@fstrr fstrr commented Aug 8, 2025

Some of the new custom caret CSS properties are starting to land in browsers. Non-Text Contrast has an example where a text input's border color fails contrast, but still passes the SC due to the presence of the caret / cursor when the input has focus.

This update adds a failure example for a failing border color and a caret with a contrast lower than 3:1.

Copy link

netlify bot commented Aug 8, 2025

Deploy Preview for wcag2 ready!

Name Link
🔨 Latest commit fb1d973
🔍 Latest deploy log https://app.netlify.com/projects/wcag2/deploys/68966046426aa900085562e5
😎 Deploy Preview https://deploy-preview-4524--wcag2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bruce-usab
Copy link
Contributor

bruce-usab commented Aug 11, 2025

@fstrr addition is bottom row of second table (failings) of User Interface Component Examples

@fstrr
Copy link
Contributor Author

fstrr commented Aug 11, 2025

also the addition of "user agent's default" in the related passing example

@fstrr fstrr self-assigned this Aug 11, 2025
@bruce-usab
Copy link
Contributor

Discussed on backlog call. Images being small can be a separate PR. Moved to ready for approval.

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

Successfully merging this pull request may close these issues.

3 participants