@apliteni/apliteni-ui 0.58.1 → 0.58.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/package.json +1 -1
- package/src/styles/dropdown.css +10 -10
package/package.json
CHANGED
package/src/styles/dropdown.css
CHANGED
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
.ui-dropdown__tick { margin-left: auto; flex: none; display: none; color: var(--accent); }
|
|
165
165
|
.ui-dropdown__tick svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
|
|
166
166
|
.ui-dropdown__item.is-selected .ui-dropdown__tick { display: inline-flex; } /* motion: still — a mark inside a row whose highlight already transitions; picking it closes the panel, which fades out over --dur-med */
|
|
167
|
-
.ui-dropdown__item.is-selected .ui-dropdown__label { color: var(--
|
|
167
|
+
.ui-dropdown__item.is-selected .ui-dropdown__label { color: var(--text); }
|
|
168
168
|
|
|
169
169
|
/* When a row has both a badge and a tick, keep the badge from eating the margin */
|
|
170
170
|
.ui-dropdown__badge + .ui-dropdown__tick { margin-left: 8px; }
|
|
@@ -174,20 +174,17 @@
|
|
|
174
174
|
/* rank: chip */
|
|
175
175
|
font-size: var(--text-xs);
|
|
176
176
|
font-weight: var(--weight-semibold);
|
|
177
|
-
padding:
|
|
177
|
+
padding: 3px 9px;
|
|
178
178
|
border-radius: var(--radius-pill);
|
|
179
179
|
margin-left: auto;
|
|
180
180
|
flex: none;
|
|
181
181
|
color: var(--text);
|
|
182
|
-
|
|
183
|
-
background: var(--surface); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */
|
|
182
|
+
background: color-mix(in srgb, var(--muted) 12%, transparent); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */
|
|
184
183
|
}
|
|
185
184
|
.ui-dropdown__badge.is-live { color: var(--chip-success-ink); background: var(--chip-success-fill); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */ }
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
raised one. why: docs/specification.md#elevation */
|
|
190
|
-
.ui-dropdown__badge.is-accent { color: var(--accent); background: var(--surface); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */ }
|
|
185
|
+
:root[data-theme="light"] .ui-dropdown__badge:not(.is-live) {
|
|
186
|
+
background: color-mix(in srgb, var(--muted) 15%, transparent); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */
|
|
187
|
+
}
|
|
191
188
|
|
|
192
189
|
/* Disabled + danger rows */
|
|
193
190
|
.ui-dropdown__item.is-disabled { /* muted-ink: state — unavailable control */ color: var(--disabled-ink); cursor: not-allowed; pointer-events: none; }
|
|
@@ -291,4 +288,7 @@
|
|
|
291
288
|
.ui-dropdown__none-title { font-size: calc(var(--text-sm) - 0.5px); font-weight: 600; color: var(--strong); }
|
|
292
289
|
.ui-dropdown__none-hint { font-size: var(--text-xs); color: var(--text); line-height: 1.35; }
|
|
293
290
|
|
|
294
|
-
.ui-dropdown__badge.is-state {
|
|
291
|
+
.ui-dropdown__badge.is-state {
|
|
292
|
+
/* muted-ink: state — off, unset, disabled or archived badge */
|
|
293
|
+
color: var(--muted);
|
|
294
|
+
}
|