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

Fixes #1413
This commit is contained in:
metonym 2022-07-26 08:19:49 -07:00 committed by GitHub
commit 8a40191c76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}