fix(toggle): override margin top if hideLabel is true

Fixes #1413
This commit is contained in:
metonym 2022-07-26 08:16:39 -07:00
commit b3bfcd124e

View file

@ -85,7 +85,10 @@
{labelText}
</slot>
</span>
<span class:bx--toggle__switch="{true}">
<span
class:bx--toggle__switch="{true}"
style="{hideLabel && 'margin-top: 0'}"
>
<span aria-hidden="true" class:bx--toggle__text--off="{true}">
<slot name="labelA">
{labelA}