mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(dropdown): remove redundant role/id (#1327)
* fix(list-box): list box item should have a role and `aria-selected` attribute * fix(dropdown): remove redundant role/id
This commit is contained in:
parent
068e4913e0
commit
66c96612bf
2 changed files with 3 additions and 1 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