renames to ariaLabel
This commit is contained in:
parent
b56fc64b96
commit
442b00989e
1 changed files with 4 additions and 4 deletions
|
|
@ -61,8 +61,8 @@
|
||||||
* Optional snippet for a custom caption.
|
* Optional snippet for a custom caption.
|
||||||
*/
|
*/
|
||||||
caption?: Snippet;
|
caption?: Snippet;
|
||||||
/** Custom ARIA label language to label the slider. */
|
/** Custom ARIA label language to label the component. */
|
||||||
sliderAriaLabel?: string;
|
ariaLabel?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
beforeOverlay,
|
beforeOverlay,
|
||||||
afterOverlay,
|
afterOverlay,
|
||||||
caption,
|
caption,
|
||||||
sliderAriaLabel = 'Stacked before and after images with an adjustable slider',
|
ariaLabel = 'Stacked before and after images with an adjustable slider',
|
||||||
}: Props = $props();
|
}: Props = $props();
|
||||||
|
|
||||||
/** DOM nodes are undefined until the component is mounted — in other words, you should read it inside an effect or an event handler, but not during component initialisation.
|
/** DOM nodes are undefined until the component is mounted — in other words, you should read it inside an effect or an event handler, but not during component initialisation.
|
||||||
|
|
@ -206,7 +206,7 @@
|
||||||
ontouchstart={start}
|
ontouchstart={start}
|
||||||
onmousedown={start}
|
onmousedown={start}
|
||||||
bind:this={figure}
|
bind:this={figure}
|
||||||
aria-label={sliderAriaLabel}
|
aria-label={ariaLabel}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
bind:this={img}
|
bind:this={img}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue