mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(toggle): override margin top if hideLabel
is true (#1417)
Fixes #1413
This commit is contained in:
parent
de5b482b0c
commit
8a40191c76
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@
|
||||||
{labelText}
|
{labelText}
|
||||||
</slot>
|
</slot>
|
||||||
</span>
|
</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}">
|
<span aria-hidden="true" class:bx--toggle__text--off="{true}">
|
||||||
<slot name="labelA">
|
<slot name="labelA">
|
||||||
{labelA}
|
{labelA}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue