Skip to content

Commit 9918cc3

Browse files
JesmoDeviOvergaard
authored andcommitted
prevent the slider from shrinking when label contains a long string
1 parent 0e63e0b commit 9918cc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/uui-toggle/lib/uui-toggle.element.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export class UUIToggleElement extends UUIBooleanInputElement {
6060
display: flex;
6161
align-items: center;
6262
63+
flex-shrink: 0;
64+
6365
width: var(--uui-toggle-switch-width);
6466
height: var(--uui-toggle-size);
6567
border-radius: 100px;

0 commit comments

Comments
 (0)