refactor: use style directive where applicable

Closes #1604
This commit is contained in:
Eric Liu 2023-07-04 09:47:21 -07:00
commit 8cc5398145
16 changed files with 26 additions and 25 deletions

View file

@ -164,8 +164,9 @@
class:bx--menu--open="{open}"
class:bx--menu--invisible="{open && x === 0 && y === 0}"
class:bx--menu--root="{level === 1}"
style:left="{x}px"
style:top="{y}px"
{...$$restProps}
style="left: {x}px; top: {y}px; {$$restProps.style}"
on:click
on:click="{({ target }) => {
const closestOption = target.closest('[tabindex]');