Skip to content

Commit

Permalink
chore(styles): cherry pick of #3753 for v7
Browse files Browse the repository at this point in the history
  • Loading branch information
schaertim committed Nov 12, 2024
1 parent d19012f commit 36277c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-fans-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed issue where the focus ring was not appearing on inactive chips.
11 changes: 5 additions & 6 deletions packages/styles/src/components/chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
.chip-filter {
display: inline-block;

@include utilities.focus-style() {
border-radius: chip.$chip-border-radius;
width: fit-content;
}

&-label {
@include chip-mx.chip-styles();
cursor: pointer;
Expand Down Expand Up @@ -101,12 +106,6 @@
text-decoration-color: initial;
}
}

@include utilities.focus-style('+ .chip-filter-label') {
> .chip-text {
text-decoration-color: transparent;
}
}
}
}

Expand Down

0 comments on commit 36277c6

Please sign in to comment.