@skeletonlabs/skeleton 2.7.1-dev.158d9733 → 2.7.1-dev.979e08b0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,6 +28,7 @@ export let rounded = "rounded-container-token";
|
|
|
28
28
|
export let regionChipWrapper = "";
|
|
29
29
|
export let regionChipList = "";
|
|
30
30
|
export let regionInput = "";
|
|
31
|
+
export let label = "Chips select";
|
|
31
32
|
export let transitions = !$prefersReducedMotionStore;
|
|
32
33
|
export let listTransitionIn = fly;
|
|
33
34
|
export let listTransitionInParams = { duration: 150, opacity: 0, y: -20 };
|
|
@@ -124,7 +125,7 @@ $:
|
|
|
124
125
|
<div class="input-chip {classesBase}" class:opacity-50={$$restProps.disabled}>
|
|
125
126
|
<!-- NOTE: Don't use `hidden` as it prevents `required` from operating -->
|
|
126
127
|
<div class="h-0 overflow-hidden">
|
|
127
|
-
<select bind:this={selectElement} bind:value {name} multiple {required} tabindex="-1">
|
|
128
|
+
<select bind:this={selectElement} bind:value {name} multiple {required} aria-label={label} tabindex="-1">
|
|
128
129
|
<!-- NOTE: options are required! -->
|
|
129
130
|
{#each value as option}<option value={option}>{option}</option>{/each}
|
|
130
131
|
</select>
|
|
@@ -44,6 +44,8 @@ declare class __sveltets_Render<ListTransitionIn extends Transition = FlyTransit
|
|
|
44
44
|
regionChipList?: string | undefined;
|
|
45
45
|
/** Provide arbitrary classes to style the input field region.*/
|
|
46
46
|
regionInput?: string | undefined;
|
|
47
|
+
/** Provide the ARIA label for the select input.*/
|
|
48
|
+
label?: string | undefined;
|
|
47
49
|
/** Enable/Disable transitions*/
|
|
48
50
|
transitions?: boolean | undefined;
|
|
49
51
|
/** Provide the transition used in list on entry.*/
|
|
@@ -60,7 +60,7 @@ $:
|
|
|
60
60
|
<!-- Language -->
|
|
61
61
|
<span class="codeblock-language">{languageFormatter(language)}</span>
|
|
62
62
|
<!-- Copy Button -->
|
|
63
|
-
<button class="codeblock-btn {button}" on:click={onCopyClick} use:clipboard={code}>
|
|
63
|
+
<button type="button" class="codeblock-btn {button}" on:click={onCopyClick} use:clipboard={code}>
|
|
64
64
|
{!copyState ? buttonLabel : buttonCopied}
|
|
65
65
|
</button>
|
|
66
66
|
</header>
|