mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 11:11:25 +00:00
Minor fixes to align with v10.26 (#490)
* fix(data-table): remove aria-hidden prop from ToolbarSearch * fix(ui-shell): deprecate ariaLabel prop in HeaderNav - remove menubar role from HeaderNav - obtain "aria-label" and "aria-labelledby" from $$props * fix(slider): add label id
This commit is contained in:
parent
74e883a47c
commit
48012b9ca0
3 changed files with 11 additions and 7 deletions
|
@ -1,17 +1,19 @@
|
|||
<script>
|
||||
/**
|
||||
* Specify the ARIA label for the nav
|
||||
* @deprecated use "aria-label" instead
|
||||
* @type {string}
|
||||
*/
|
||||
export let ariaLabel = undefined;
|
||||
|
||||
$: props = {
|
||||
"aria-label": ariaLabel || $$props["aria-label"],
|
||||
"aria-labelledby": $$props["aria-labelledby"],
|
||||
};
|
||||
</script>
|
||||
|
||||
<nav aria-label="{ariaLabel}" class:bx--header__nav="{true}" {...$$restProps}>
|
||||
<ul
|
||||
role="menubar"
|
||||
aria-label="{ariaLabel}"
|
||||
class:bx--header__menu-bar="{true}"
|
||||
>
|
||||
<nav {...props} class:bx--header__nav="{true}" {...$$restProps}>
|
||||
<ul {...props} class:bx--header__menu-bar="{true}">
|
||||
<slot />
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue