@smilodon/core 1.17.0 → 1.18.0
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 +10 -2
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
> **Verification status:** `EnhancedSelect`'s public `virtualize` setting chunks large-list rendering but does not bound the final option DOM. Viewport-windowed rendering remains behind a private test seam and is not production-activated. ARIA and keyboard behaviors have automated coverage in progress; WCAG conformance and manual assistive-technology review have not been certified. See [known limitations](../../docs/KNOWN-LIMITATIONS.md#viewport-virtualization-status) and the [Phase 4 certification record](../../docs/architecture/PHASE-4-CERTIFICATION.md).
|
|
14
14
|
|
|
15
|
-
> **Issue #100
|
|
15
|
+
> **Issue #100:** `multiSelectDisplay.scrollToLatestChip` is available in `@smilodon/core@1.17.0`. See [Multi-Select Display Modes](#multi-select-display-modes) and the [release verification](../../docs/releases/WEB-1.17.0-REGISTRY-VERIFICATION.json).
|
|
16
16
|
|
|
17
17
|
## Custom busy bucket (Core 1.13.0)
|
|
18
18
|
|
|
@@ -215,7 +215,15 @@ The default chevron remains in place unless a light-DOM child is assigned to the
|
|
|
215
215
|
</enhanced-select>
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
The custom node is decorative and Core keeps ownership of the arrow click behavior. The built-in arrow rotates with the popup; a custom node does not rotate unless the consumer styles it using the host's `data-open="true"` state.
|
|
218
|
+
The custom node is decorative and Core keeps ownership of the arrow click behavior. The built-in arrow rotates with the popup; a custom node does not rotate unless the consumer styles it using the host's `data-open="true"` state. Set the public `--select-arrow-hover-bg` token on the host to control the arrow container's hover background for either the built-in or a custom slotted arrow. For custom arrows, the background remains transparent when the token is unset:
|
|
219
|
+
|
|
220
|
+
```css
|
|
221
|
+
enhanced-select {
|
|
222
|
+
--select-arrow-hover-bg: #eef2ff;
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
This token changes the container background; it does not change the assigned icon's color or geometry. This correction is included in Core 1.18.0 (Issue #104).
|
|
219
227
|
|
|
220
228
|
### Custom empty-state content (unreleased)
|
|
221
229
|
|
package/dist/index.cjs
CHANGED
|
@@ -5536,7 +5536,9 @@ class EnhancedSelect extends HTMLElement {
|
|
|
5536
5536
|
`;
|
|
5537
5537
|
const slot = container.querySelector('slot[name="arrow"]');
|
|
5538
5538
|
slot?.addEventListener('slotchange', () => {
|
|
5539
|
-
|
|
5539
|
+
// Do not flatten: flattening can expose the built-in SVG fallback
|
|
5540
|
+
// as an assigned element after the last custom arrow is removed.
|
|
5541
|
+
if (slot.assignedElements().length > 0) {
|
|
5540
5542
|
this.setAttribute('data-custom-arrow', 'true');
|
|
5541
5543
|
}
|
|
5542
5544
|
else {
|
|
@@ -6265,7 +6267,7 @@ class EnhancedSelect extends HTMLElement {
|
|
|
6265
6267
|
}
|
|
6266
6268
|
|
|
6267
6269
|
:host([data-custom-arrow="true"]) .dropdown-arrow-container:hover {
|
|
6268
|
-
background-color: transparent;
|
|
6270
|
+
background-color: var(--select-arrow-hover-bg, transparent);
|
|
6269
6271
|
}
|
|
6270
6272
|
|
|
6271
6273
|
.dropdown-arrow {
|