Skip to content

Commit b7b1b6e

Browse files
authored
Prevent label from overflowing on buttons
1 parent 223b88d commit b7b1b6e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

button/internal/_shared.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
gap: 8px;
2424
// min-height instead of height so that label can wrap and expand height
2525
min-height: var(--_container-height);
26+
// max-width set to 100% to prevent label from overflowing
27+
max-width: 100%;
2628
outline: none;
2729
// Add extra space between label and the edge for if the label text wraps.
2830
// The padding added should be relative to the height of the container and

0 commit comments

Comments
 (0)