mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
fix(overflow-menu): update semantic attributes in OverflowMenuItem
This commit is contained in:
parent
ac4dff0453
commit
af1caf97bf
1 changed files with 3 additions and 2 deletions
|
@ -43,16 +43,17 @@
|
|||
|
||||
$: primaryFocus = $focusedId === id;
|
||||
$: buttonProps = {
|
||||
role: "menuitem",
|
||||
tabindex: "-1",
|
||||
title: requireTitle ? text : undefined,
|
||||
class: "bx--overflow-menu-options__btn",
|
||||
disabled: href ? undefined : disabled,
|
||||
href: href ? href : undefined,
|
||||
title: requireTitle ? text : undefined,
|
||||
};
|
||||
</script>
|
||||
|
||||
<li
|
||||
role="menuitem"
|
||||
role="none"
|
||||
id="{id}"
|
||||
class:bx--overflow-menu-options__option="{true}"
|
||||
class:bx--overflow-menu--divider="{hasDivider}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue