@apliteni/apliteni-ui 0.36.0 → 0.37.1

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.
@@ -172,7 +172,7 @@
172
172
  --disabled-ink-bare: #a39eb7;
173
173
 
174
174
  /* Lifted from #9b5dff, which cleared the flat surfaces and failed on its own wash over
175
- a card; the value was already in the ramp. --ring is var(--accent) and follows by
175
+ a card; the value was already in the ramp. --ring-color is var(--accent) and follows by
176
176
  reference. Held by stories/accent-contrast.test.js. #157.
177
177
  why: docs/specification.md#colour-and-contrast */
178
178
  --accent: #b479ff;
@@ -229,12 +229,12 @@
229
229
  --shadow-lg: 0 0 #0000;
230
230
  --shadow-seg: 0 0 #0000;
231
231
  --shadow-card: 0 0 #0000;
232
- /* THE ONLY --ring in the kit — light and every data-accent sub-theme declare an
233
- --accent and inherit this line. Opaque because a translucent ring is a glow, and the
234
- eight rgba() literals it replaced all missed WCAG 1.4.11's 3:1 (#218). Held by
235
- stories/guidelines/accessibility-floor.test.js.
236
- why: docs/specification.md#the-focus-ring */
237
- --ring: 0 0 0 3px var(--accent);
232
+ /* G2: the band carries contrast; the halo decorates it. why: docs/specification.md#the-focus-ring */
233
+ --ring-width: 2px;
234
+ --ring-color: var(--accent);
235
+ --ring-gap-width: 1px;
236
+ --ring-gap: var(--bg);
237
+ --ring: 0 0 0 var(--ring-gap-width) var(--ring-gap), 0 0 0 calc(var(--ring-gap-width) + var(--ring-width)) var(--ring-color), 0 0 12px 2px color-mix(in srgb, var(--ring-color) 45%, transparent);
238
238
 
239
239
  /* The ink a cast shadow is made of, and the specular white that reads as gloss on a
240
240
  raised surface. Effects mix these instead of writing rgba(). */
@@ -405,3 +405,45 @@
405
405
  --prose-body: 62ch;
406
406
  --prose-dense: 72ch;
407
407
  }
408
+
409
+ /* Recompose only at painted containers; controls inherit the outside gap.
410
+ * One recipe keeps surface propagation cheap and consistent.
411
+ * why: docs/specification.md#the-focus-ring */
412
+ .amenu,
413
+ .dtsw,
414
+ .rx-modal,
415
+ .ui-app__rail,
416
+ .ui-auth__card,
417
+ .ui-callout,
418
+ .ui-card,
419
+ .ui-card--accent,
420
+ .ui-card--live,
421
+ .ui-cmdk__panel,
422
+ .ui-code,
423
+ .ui-confirm__panel,
424
+ .ui-drawer__footer,
425
+ .ui-drawer__panel,
426
+ .ui-dropdown__panel,
427
+ .ui-fbcomposer,
428
+ .ui-footer--app,
429
+ .ui-seg,
430
+ .ui-snippet,
431
+ .ui-snippet--reveal,
432
+ .ui-sx,
433
+ .ui-table--hover:not(.ui-table--zebra) tbody tr:hover td,
434
+ .ui-table--zebra tbody tr:nth-child(even) td,
435
+ .ui-table--zebra tbody tr:hover td,
436
+ .ui-table--zebra.ui-table--hover tbody tr:hover td,
437
+ .ui-toast--outline,
438
+ .ui-toast--solid,
439
+ .vsw__menu {
440
+ --ring: 0 0 0 var(--ring-gap-width) var(--ring-gap), 0 0 0 calc(var(--ring-gap-width) + var(--ring-width)) var(--ring-color), 0 0 12px 2px color-mix(in srgb, var(--ring-color) 45%, transparent);
441
+ }
442
+
443
+ /* A container focused itself paints outside its own surface; descendants only
444
+ * inherit its inside gap again after focus moves to them. */
445
+ .ui-card:focus-visible,
446
+ .ui-cmdk__panel:focus-visible,
447
+ .ui-confirm__panel:focus-visible,
448
+ .ui-drawer__panel:focus-visible,
449
+ .rx-modal:focus-visible { --ring-gap: inherit; }