fix(list-box): list box item should have a role and aria-selected attribute

This commit is contained in:
Eric Liu 2022-06-01 18:50:34 -07:00
commit 319eb9827b

View file

@ -12,9 +12,11 @@
</script>
<div
role="option"
class:bx--list-box__menu-item="{true}"
class:bx--list-box__menu-item--active="{active}"
class:bx--list-box__menu-item--highlighted="{highlighted}"
aria-selected="{active}"
{...$$restProps}
on:click
on:mouseenter