mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11: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}
|
||||
</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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue