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(styles): HCM on segmented buttons #4311

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip
  • Loading branch information
leagrdv committed Dec 17, 2024
commit cdb47f7bb95c148bfc4f324dc6bfcfd98eea3983
2 changes: 1 addition & 1 deletion packages/styles/src/components/card-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ fieldset {
&:where(:has(input:checked), .checked) {
--post-card-control-border-color: FieldText;
--post-card-control-bg: SelectedItem;
--post-card-control-color: FieldText;
--post-card-control-color: SelectedItemText;
--post-card-control-input-border-color: FieldText;

input.form-check-input[type] {
Expand Down
4 changes: 4 additions & 0 deletions packages/styles/src/components/segmented-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ $post-segmented-button-max-count: 8;
tokens.get('button-segmented-selected-border');
border-radius: inherit;
transition: transform 0.4s cubic-bezier(0.25, 1.4, 0.5, 0.9);

@include utilities.high-contrast-mode() {
background-color: SelectedItem;
}
}
}

Expand Down
Loading