Skip to content

Commit

Permalink
fix: avoid text overflowing button that is too small
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Dec 26, 2024
1 parent 70ae416 commit 943889e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/popular-singers-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@utrecht/button-css": patch
"@utrecht/button-react": patch
---

Fix Button to avoid text overflowing button that is too small.
4 changes: 2 additions & 2 deletions components/button/src/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@
justify-content: center;
line-height: var(--_utrecht-button-line-height);
max-inline-size: var(--utrecht-button-max-inline-size, fit-content);
min-block-size: var(--utrecht-button-min-block-size, 44px);
min-inline-size: var(--utrecht-button-min-inline-size, 44px);
min-block-size: max(var(--utrecht-button-min-block-size, 44px), fit-content);
min-inline-size: max(var(--utrecht-button-min-inline-size, 44px), fit-content);
padding-block-end: var(--utrecht-button-padding-block-end);
padding-block-start: var(--utrecht-button-padding-block-start);
padding-inline-end: var(--utrecht-button-padding-inline-end);
Expand Down

0 comments on commit 943889e

Please sign in to comment.