Skip to content

fix(toggle-group): added forced colors selected borders - #7848

Merged
mcoker merged 2 commits into
patternfly:mainfrom
mcoker:issue-7837
Sep 23, 2025
Merged

mcoker merged 2 commits into
patternfly:mainfrom
mcoker:issue-7837

Conversation

@mcoker

@mcoker mcoker commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

fixes #7837

@lboehling needs some design feedback on this one. Updated selected toggles to have an additional border. It isn't very visible IMO:

Screenshot 2025-09-18 at 5 51 52 PM

We could add a hover border-width change of 1px and increase the selected state to 2px? Here's what that would look like with "option 1" on the third row hovered

Screenshot 2025-09-18 at 6 01 18 PM

The only thing that looks bad with that is the compact variant, feels kinda squished, but maybe it's ok?

Screenshot 2025-09-18 at 6 01 29 PM

Also updated the border between 2 selected toggles to use the border--color--alt token (like we updated with primary split toggles), and the border between 2 disabled toggles to use the disabled border color. The disabled border has less contrast than the regular border, but seems like the more correct use of the token? That border matches the other borders around the disabled toggles in a toggle group when it didn't before. Curious what you think of those changes

This is before the change in HC:
Screenshot 2025-09-18 at 4 57 57 PM

This is after the change:
Screenshot 2025-09-18 at 4 58 13 PM

@patternfly-build

patternfly-build commented Sep 18, 2025 •

Copy link
Copy Markdown
Collaborator

@lboehling

Copy link
Copy Markdown

I'm good with all of the above changes @mcoker! adjusting the border thickness is clever! The pros outweight the cons in the compact version -- it's not covering the text.

@mcoker

mcoker commented Sep 23, 2025

Copy link
Copy Markdown
Contributor Author

@lboehling roger that, thanks! Updated the PR to thicken the borders in forced colors mode - https://pf-pr-7848.surge.sh/components/toggle-group

@srambach srambach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

L 🤲🏻 TM

@mcoker
mcoker merged commit 263b58d into patternfly:main Sep 23, 2025
4 checks passed
@mcoker
mcoker deleted the issue-7837 branch September 23, 2025 20:46
@patternfly-build

Copy link
Copy Markdown
Collaborator

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

The release is available on:

Your semantic-release bot 📦🚀

edonehoo pushed a commit to edonehoo/patternfly that referenced this pull request Nov 11, 2025
)

* fix(toggle-group): added forced colors selected borders

* chore(toggle-group): use 1px on hover, 2px on selected, add inset
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.

Toggle group - update for forced colors mode

4 participants