Skip to content

Commit

Permalink
fix(tag): set max-length to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
gfellerph committed Aug 12, 2024
1 parent 1d2650e commit 0ef318d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/some-people-say.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Set the `max-width` constraint of the tag component to 100% for improved accessibility. Try to keep tag text as short as possible though.
2 changes: 1 addition & 1 deletion packages/styles/src/variables/components/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
$tag-gap: spacing.$size-micro;
$tag-padding-y: 0;
$tag-padding-x: spacing.$size-mini;
$tag-max-width: sizing.px-to-rem(296);
$tag-max-width: 100%;
$tag-border-width: spacing.$size-hair;
$tag-border-radius: spacing.$size-micro;
$tag-font-size: type.$font-size-16;
Expand Down

0 comments on commit 0ef318d

Please sign in to comment.