Skip to content

Commit

Permalink
Prevent label from overflowing on buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij authored Dec 11, 2024
1 parent 223b88d commit b7b1b6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions button/internal/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
gap: 8px;
// min-height instead of height so that label can wrap and expand height
min-height: var(--_container-height);
// max-width set to 100% to prevent label from overflowing
max-width: 100%;
outline: none;
// Add extra space between label and the edge for if the label text wraps.
// The padding added should be relative to the height of the container and
Expand Down

0 comments on commit b7b1b6e

Please sign in to comment.