@nyt87/ui 0.2.6 → 0.2.7
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/dist/styles.css +7 -2
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
.ds-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
|
|
313
313
|
.ds-chip { --ds-chip-dot: var(--fg-muted); display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); max-width: 100%; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); background: var(--bg-raised); color: var(--fg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); font-size: var(--text-sm); box-sizing: border-box; }
|
|
314
314
|
.ds-chip:not(:has(.ds-chip__action)) { padding-right: var(--space-3); }
|
|
315
|
-
.ds-chip__dot { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--ds-chip-dot); }
|
|
315
|
+
.ds-chip__dot { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--ds-chip-dot); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 20%, transparent); }
|
|
316
316
|
.ds-chip__main { display: grid; min-width: 0; line-height: var(--leading-tight); }
|
|
317
317
|
.ds-chip__label { font-weight: 600; overflow-wrap: anywhere; }
|
|
318
318
|
.ds-chip__note { color: var(--fg-muted); font-size: var(--text-xs); overflow-wrap: anywhere; }
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
.ds-list__link { padding: var(--space-2) var(--space-1); }
|
|
330
330
|
.ds-list__link:hover { background: var(--bg-sunken); }
|
|
331
331
|
.ds-list__lead { flex: none; display: inline-flex; color: var(--fg-muted); }
|
|
332
|
-
.ds-list__dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--ds-list-dot, var(--fg-muted)); }
|
|
332
|
+
.ds-list__dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--ds-list-dot, var(--fg-muted)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 20%, transparent); }
|
|
333
333
|
.ds-list__main { display: grid; flex: 1; min-width: 0; gap: 0.1rem; }
|
|
334
334
|
.ds-list__title { font-weight: 600; overflow-wrap: anywhere; }
|
|
335
335
|
.ds-list__meta { color: var(--fg-muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
|
|
@@ -376,6 +376,11 @@
|
|
|
376
376
|
.ds-swatch__dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ds-swatch); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 20%, transparent); }
|
|
377
377
|
.ds-swatch input:checked + .ds-swatch__dot { outline: 2px solid var(--fg); outline-offset: 2px; }
|
|
378
378
|
.ds-swatch input:focus-visible + .ds-swatch__dot { outline: 2px solid var(--ring); outline-offset: 4px; }
|
|
379
|
+
/* Or <button aria-pressed> swatches, when a choice acts at once: arrow keys then only move focus. */
|
|
380
|
+
button.ds-swatch { padding: 0; background: none; border: 0; color: inherit; font: inherit; }
|
|
381
|
+
.ds-swatch[aria-pressed="true"] .ds-swatch__dot { outline: 2px solid var(--fg); outline-offset: 2px; }
|
|
382
|
+
button.ds-swatch:focus-visible { outline: none; }
|
|
383
|
+
button.ds-swatch:focus-visible .ds-swatch__dot { outline: 2px solid var(--ring); outline-offset: 4px; }
|
|
379
384
|
|
|
380
385
|
/* ---------- Dashboard kit ---------- */
|
|
381
386
|
|
package/package.json
CHANGED