Skip to content

Commit 4ebdd4d

Browse files
committed
fix(@clayui.css): LPD-44793 toggle-switch-sm label text breaks to new line too early
1 parent 533fe1f commit 4ebdd4d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/clay-css/src/scss/cadmin/variables/_toggle-switch.scss

+2-3
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ $cadmin-toggle-switch-sizes: map-deep-merge(
479479
toggle-switch-sm: (
480480
simple-toggle-switch: (
481481
toggle-switch-label: (
482-
max-width: calc(100% - 38px),
482+
max-width: calc(100% - 34px),
483483
),
484484
),
485485
toggle-switch-check: (
@@ -500,9 +500,8 @@ $cadmin-toggle-switch-sizes: map-deep-merge(
500500
),
501501
toggle-switch-handle: (
502502
min-width: 30px,
503-
max-width: 30px,
504503
after: (
505-
margin-left: 38px,
504+
margin-left: 34px,
506505
),
507506
),
508507
toggle-switch-icon: (

packages/clay-css/src/scss/variables/_toggle-switch.scss

+2-3
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ $toggle-switch-sizes: map-deep-merge(
497497
toggle-switch-sm: (
498498
simple-toggle-switch: (
499499
toggle-switch-label: (
500-
max-width: calc(100% - 38px),
500+
max-width: calc(100% - 34px),
501501
),
502502
),
503503
toggle-switch-check: (
@@ -515,9 +515,8 @@ $toggle-switch-sizes: map-deep-merge(
515515
),
516516
toggle-switch-handle: (
517517
min-width: 30px,
518-
max-width: 30px,
519518
after: (
520-
margin-left: 38px,
519+
margin-left: 34px,
521520
),
522521
),
523522
toggle-switch-icon: (

0 commit comments

Comments
 (0)