From 4ebdd4da99ecd6d54e5aef8c047a85855fdb7e12 Mon Sep 17 00:00:00 2001 From: Patrick Yeo Date: Fri, 20 Dec 2024 12:38:08 -0800 Subject: [PATCH] fix(@clayui.css): LPD-44793 toggle-switch-sm label text breaks to new line too early --- .../clay-css/src/scss/cadmin/variables/_toggle-switch.scss | 5 ++--- packages/clay-css/src/scss/variables/_toggle-switch.scss | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/clay-css/src/scss/cadmin/variables/_toggle-switch.scss b/packages/clay-css/src/scss/cadmin/variables/_toggle-switch.scss index f2f9df3ef6..4c1bd42f74 100644 --- a/packages/clay-css/src/scss/cadmin/variables/_toggle-switch.scss +++ b/packages/clay-css/src/scss/cadmin/variables/_toggle-switch.scss @@ -479,7 +479,7 @@ $cadmin-toggle-switch-sizes: map-deep-merge( toggle-switch-sm: ( simple-toggle-switch: ( toggle-switch-label: ( - max-width: calc(100% - 38px), + max-width: calc(100% - 34px), ), ), toggle-switch-check: ( @@ -500,9 +500,8 @@ $cadmin-toggle-switch-sizes: map-deep-merge( ), toggle-switch-handle: ( min-width: 30px, - max-width: 30px, after: ( - margin-left: 38px, + margin-left: 34px, ), ), toggle-switch-icon: ( diff --git a/packages/clay-css/src/scss/variables/_toggle-switch.scss b/packages/clay-css/src/scss/variables/_toggle-switch.scss index 4c3fd4336c..9f5a77aa60 100644 --- a/packages/clay-css/src/scss/variables/_toggle-switch.scss +++ b/packages/clay-css/src/scss/variables/_toggle-switch.scss @@ -497,7 +497,7 @@ $toggle-switch-sizes: map-deep-merge( toggle-switch-sm: ( simple-toggle-switch: ( toggle-switch-label: ( - max-width: calc(100% - 38px), + max-width: calc(100% - 34px), ), ), toggle-switch-check: ( @@ -515,9 +515,8 @@ $toggle-switch-sizes: map-deep-merge( ), toggle-switch-handle: ( min-width: 30px, - max-width: 30px, after: ( - margin-left: 38px, + margin-left: 34px, ), ), toggle-switch-icon: (