File tree 2 files changed +10
-1
lines changed
packages/skeleton/src/lib/components/InputChip
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @skeletonlabs/skeleton " : patch
3
+ ---
4
+
5
+ bugfix: added ` label ` prop to provide aria-label on inputChip.
Original file line number Diff line number Diff line change 86
86
/** Provide arbitrary classes to style the input field region. */
87
87
export let regionInput: CssClasses = ' ' ;
88
88
89
+ // Props (A11y)
90
+ /** Provide the ARIA label for the select input. */
91
+ export let label = ' Chips select' ;
92
+
89
93
// Props (transition)
90
94
/**
91
95
* Enable/Disable transitions
241
245
<div class="input-chip {classesBase}" class:opacity-50={$$restProps.disabled}>
242
246
<!-- NOTE: Don't use ` hidden` as it prevents ` required` from operating -->
243
247
<div class="h-0 overflow-hidden">
244
- <select bind:this={selectElement} bind:value {name} multiple {required} tabindex="-1">
248
+ <select bind:this={selectElement} bind:value {name} multiple {required} aria-label={label} tabindex="-1">
245
249
<!-- NOTE: options are required! -->
246
250
{#each value as option}<option value={option}>{option}</option>{/each}
247
251
</select>
You can’t perform that action at this time.
0 commit comments