@alacris/ui 0.8.0 → 0.8.2

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 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.0/src/index.js",
51
- "@alacris/ui/theme": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.0/src/theme/index.js",
52
- "@alacris/ui/components/": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.0/src/components/"
50
+ "@alacris/ui": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.2/src/index.js",
51
+ "@alacris/ui/theme": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.2/src/theme/index.js",
52
+ "@alacris/ui/components/": "https://cdn.jsdelivr.net/npm/@alacris/ui@0.8.2/src/components/"
53
53
  }
54
54
  }
55
55
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alacris/ui",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Themeable design system for Alacris — Material defaults, sixty-nine custom elements, ESM-only, no build step.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -104,7 +104,16 @@ const styles = css`
104
104
  border-start-start-radius: ${t.radius};
105
105
  border-end-start-radius: ${t.radius};
106
106
  }
107
- .std .inner { padding: ${t.pad}; inline-size: ${t.width}; }
107
+ /* Fill the drawer's height and scroll when the content is taller (like the
108
+ modal surface), so slotted content can also size itself to 100%. */
109
+ .std .inner {
110
+ box-sizing: border-box;
111
+ padding: ${t.pad};
112
+ inline-size: ${t.width};
113
+ block-size: 100%;
114
+ overflow-y: auto;
115
+ overscroll-behavior: contain;
116
+ }
108
117
  `;
109
118
 
110
119
  define('ui-drawer', {
@@ -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() || slotted() ? 'true' : null)}
291
+ aria-haspopup=${() => (isView() ? 'dialog' : slotted() ? 'listbox' : null)}
291
292
  ?disabled=${disabled}
292
293
  @input=${onInput} @change=${commit} @keydown=${onKeydown}
293
294
  @focus=${onFocus}>