mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +00:00
fix(list-box): list box item should have a role and aria-selected
attribute
This commit is contained in:
parent
068e4913e0
commit
319eb9827b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue