From e216ada7cb1aaeb0f9226c6fd0021d7e033fd7e2 Mon Sep 17 00:00:00 2001 From: James Koster Date: Wed, 24 Jul 2024 13:40:43 +0100 Subject: [PATCH] Fix toggle help indentation --- packages/components/src/toggle-control/index.tsx | 8 +------- packages/components/src/toggle-control/style.scss | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/components/src/toggle-control/index.tsx b/packages/components/src/toggle-control/index.tsx index 89ef34f6d6e5e6..c84ad90f12d09a 100644 --- a/packages/components/src/toggle-control/index.tsx +++ b/packages/components/src/toggle-control/index.tsx @@ -88,13 +88,7 @@ export function ToggleControl( return ( - { helpLabel } - - ) - } + help={ helpLabel } className={ classes } __nextHasNoMarginBottom > diff --git a/packages/components/src/toggle-control/style.scss b/packages/components/src/toggle-control/style.scss index 263a372b00fe84..be7966611fdd21 100644 --- a/packages/components/src/toggle-control/style.scss +++ b/packages/components/src/toggle-control/style.scss @@ -6,6 +6,6 @@ } } -.components-toggle-control__help { +.components-base-control__help { margin-left: $toggle-width + $grid-unit-10; }