@alacris/ui 0.8.0 → 0.8.1
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.
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/components/ui-search.js +2 -1
package/README.md
CHANGED
|
@@ -47,9 +47,9 @@ The published package is plain ESM. Point an import map at a pinned CDN build of
|
|
|
47
47
|
{
|
|
48
48
|
"imports": {
|
|
49
49
|
"@alacris/core": "https://cdn.jsdelivr.net/npm/@alacris/core@0.11.5/dist/alacris.js",
|
|
50
|
-
"@alacris/ui": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.
|
|
51
|
-
"@alacris/ui/theme": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.
|
|
52
|
-
"@alacris/ui/components/": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.
|
|
50
|
+
"@alacris/ui": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.1/src/index.js",
|
|
51
|
+
"@alacris/ui/theme": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.1/src/theme/index.js",
|
|
52
|
+
"@alacris/ui/components/": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.1/src/components/"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
</script>
|
package/package.json
CHANGED
|
@@ -283,11 +283,12 @@ define('ui-search', {
|
|
|
283
283
|
<input part="input" ref=${(el) => (input = el)}
|
|
284
284
|
.value=${() => value() ?? ''}
|
|
285
285
|
placeholder=${ph}
|
|
286
|
+
role="combobox"
|
|
286
287
|
aria-label=${() => label() || 'Search'}
|
|
287
288
|
aria-expanded=${() => String(open())}
|
|
288
289
|
aria-controls=${() => (showPanel() ? 'suggestions' : null)}
|
|
289
290
|
aria-autocomplete="list"
|
|
290
|
-
aria-haspopup=${() => (isView()
|
|
291
|
+
aria-haspopup=${() => (isView() ? 'dialog' : slotted() ? 'listbox' : null)}
|
|
291
292
|
?disabled=${disabled}
|
|
292
293
|
@input=${onInput} @change=${commit} @keydown=${onKeydown}
|
|
293
294
|
@focus=${onFocus}>
|