Skip to content

Commit

Permalink
Fix toggle help indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Jul 24, 2024
1 parent 6128cea commit e216ada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions packages/components/src/toggle-control/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,7 @@ export function ToggleControl(
return (
<BaseControl
id={ id }
help={
helpLabel && (
<span className="components-toggle-control__help">
{ helpLabel }
</span>
)
}
help={ helpLabel }
className={ classes }
__nextHasNoMarginBottom
>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/toggle-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
}
}

.components-toggle-control__help {
.components-base-control__help {
margin-left: $toggle-width + $grid-unit-10;
}

0 comments on commit e216ada

Please sign in to comment.