mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +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
|
@ -95,6 +95,7 @@
|
|||
value = nextValue;
|
||||
}
|
||||
|
||||
$: labelId = `label-${id}`;
|
||||
$: range = max - min;
|
||||
$: left = ((value - min) / range) * 100;
|
||||
$: {
|
||||
|
@ -132,6 +133,7 @@
|
|||
>
|
||||
<label
|
||||
for="{id}"
|
||||
id="{labelId}"
|
||||
class:bx--label="{true}"
|
||||
class:bx--label--disabled="{disabled}"
|
||||
>
|
||||
|
@ -160,6 +162,7 @@
|
|||
tabindex="0"
|
||||
class:bx--slider__thumb="{true}"
|
||||
style="left: {left}%"
|
||||
aria-labelledby="{labelId}"
|
||||
aria-valuemax="{max}"
|
||||
aria-valuemin="{min}"
|
||||
aria-valuenow="{value}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue