mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36: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;
|
$: primaryFocus = $focusedId === id;
|
||||||
$: buttonProps = {
|
$: buttonProps = {
|
||||||
|
role: "menuitem",
|
||||||
tabindex: "-1",
|
tabindex: "-1",
|
||||||
title: requireTitle ? text : undefined,
|
|
||||||
class: "bx--overflow-menu-options__btn",
|
class: "bx--overflow-menu-options__btn",
|
||||||
disabled: href ? undefined : disabled,
|
disabled: href ? undefined : disabled,
|
||||||
href: href ? href : undefined,
|
href: href ? href : undefined,
|
||||||
|
title: requireTitle ? text : undefined,
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<li
|
<li
|
||||||
role="menuitem"
|
role="none"
|
||||||
id="{id}"
|
id="{id}"
|
||||||
class:bx--overflow-menu-options__option="{true}"
|
class:bx--overflow-menu-options__option="{true}"
|
||||||
class:bx--overflow-menu--divider="{hasDivider}"
|
class:bx--overflow-menu--divider="{hasDivider}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue