refactor: use style directive where applicable (#1760)

Closes #1604
This commit is contained in:
Eric Liu 2023-07-23 12:26:46 -07:00 committed by GitHub
commit bc7f5821b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 26 additions and 25 deletions

View file

@ -47,8 +47,8 @@
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class:bx--form-item="{true}"
style:user-select="none"
{...$$restProps}
style="{$$restProps['style']}; user-select: none"
on:click
on:mouseover
on:mouseenter
@ -90,7 +90,7 @@
</span>
<span
class:bx--toggle__switch="{true}"
style="{hideLabel && 'margin-top: 0'}"
style:margin-top="{hideLabel ? 0 : undefined}"
>
<span aria-hidden="true" class:bx--toggle__text--off="{true}">
<slot name="labelA">