Skip to content

Commit

Permalink
fix border width of segmented button in hcm
Browse files Browse the repository at this point in the history
  • Loading branch information
leagrdv committed Dec 19, 2024
1 parent 52fddc6 commit 1001a2d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-months-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed segmented button style in HCM.
8 changes: 8 additions & 0 deletions packages/styles/src/components/segmented-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ $post-segmented-button-max-count: 8;
transform: translateX(calc($i * -100% - $i * tokens.get('button-segmented-gap-inline')));
}
}

&:last-child():has(input:checked) ~ label:hover {
z-index: 3;
}
}
}

Expand Down Expand Up @@ -177,6 +181,10 @@ $post-segmented-button-max-count: 8;
&:hover {
input {
border-color: tokens.get('button-segmented-hover-border');

@include utilities.high-contrast-mode() {
border-color: Highlight;
}
}
}

Expand Down

0 comments on commit 1001a2d

Please sign in to comment.