Skip to content

fix(switch): adds borders to make visible in forced colors - #7847

Merged
mcoker merged 1 commit into
patternfly:mainfrom
srambach:7834-switch-forced-color
Sep 23, 2025
Merged

mcoker merged 1 commit into
patternfly:mainfrom
srambach:7834-switch-forced-color

Conversation

@srambach

Copy link
Copy Markdown
Member

Fixes #7834

Also adds a border around disabled switches in high-contrast mode. (previously they only showed up on switches that were turned off.)

Note that disabled switches are currently not really distinguishable in forced-colors: active but I don't know another solution. For now it will have to rely on behavior (cursor etc)

@lboehling please take a look!

@patternfly-build

patternfly-build commented Sep 18, 2025 •

Copy link
Copy Markdown
Collaborator

@lboehling lboehling left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@mcoker mcoker left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ it. Disabled switches are disabled, so you can't focus them, and they're read as disabled to assistive tech. Also we have the "not allowed" cursor on hover when they're disabled, though it would be great to have an alternate display so it's more visible that they're disabled. We can address that if/when we go for full support in forced-colors mode.

@mcoker
mcoker merged commit f517ea3 into patternfly:main Sep 23, 2025
4 of 5 checks passed
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.3.0-prerelease.76 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

Switch - add borders for forced colors

4 participants