renames to ariaLabel

This commit is contained in:
MinamiFunakoshiTR 2025-03-13 13:17:45 -07:00
parent b56fc64b96
commit 442b00989e
Failed to extract signature

View file

@ -61,8 +61,8 @@
* Optional snippet for a custom caption.
*/
caption?: Snippet;
/** Custom ARIA label language to label the slider. */
sliderAriaLabel?: string;
/** Custom ARIA label language to label the component. */
ariaLabel?: string;
}
let {
@ -83,7 +83,7 @@
beforeOverlay,
afterOverlay,
caption,
sliderAriaLabel = 'Stacked before and after images with an adjustable slider',
ariaLabel = 'Stacked before and after images with an adjustable slider',
}: 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.
@ -206,7 +206,7 @@
ontouchstart={start}
onmousedown={start}
bind:this={figure}
aria-label={sliderAriaLabel}
aria-label={ariaLabel}
>
<img
bind:this={img}