@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/dist/index.js
CHANGED
|
@@ -5534,7 +5534,9 @@ class EnhancedSelect extends HTMLElement {
|
|
|
5534
5534
|
`;
|
|
5535
5535
|
const slot = container.querySelector('slot[name="arrow"]');
|
|
5536
5536
|
slot?.addEventListener('slotchange', () => {
|
|
5537
|
-
|
|
5537
|
+
// Do not flatten: flattening can expose the built-in SVG fallback
|
|
5538
|
+
// as an assigned element after the last custom arrow is removed.
|
|
5539
|
+
if (slot.assignedElements().length > 0) {
|
|
5538
5540
|
this.setAttribute('data-custom-arrow', 'true');
|
|
5539
5541
|
}
|
|
5540
5542
|
else {
|
|
@@ -6263,7 +6265,7 @@ class EnhancedSelect extends HTMLElement {
|
|
|
6263
6265
|
}
|
|
6264
6266
|
|
|
6265
6267
|
:host([data-custom-arrow="true"]) .dropdown-arrow-container:hover {
|
|
6266
|
-
background-color: transparent;
|
|
6268
|
+
background-color: var(--select-arrow-hover-bg, transparent);
|
|
6267
6269
|
}
|
|
6268
6270
|
|
|
6269
6271
|
.dropdown-arrow {
|