@godxjp/ui 18.12.12 → 18.12.14
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.
|
@@ -1280,6 +1280,10 @@
|
|
|
1280
1280
|
* which has headroom; the horizontal shrink/truncation contract is unchanged. */
|
|
1281
1281
|
overflow-x: clip;
|
|
1282
1282
|
overflow-y: visible;
|
|
1283
|
+
/* Ring headroom on the clipped axis: the end rail sits flush against this
|
|
1284
|
+
* box, so without a margin the LAST control's ring loses its outer edge.
|
|
1285
|
+
* Bare var() only — Chromium drops any calc() in overflow-clip-margin. */
|
|
1286
|
+
overflow-clip-margin: var(--focus-ring-clip-margin);
|
|
1283
1287
|
}
|
|
1284
1288
|
.ui-topbar-start,
|
|
1285
1289
|
.ui-topbar-center,
|
|
@@ -1295,7 +1299,11 @@
|
|
|
1295
1299
|
* ring headroom where supported. */
|
|
1296
1300
|
overflow-x: clip;
|
|
1297
1301
|
overflow-y: visible;
|
|
1298
|
-
|
|
1302
|
+
/* 4px headroom, NOT the 2px ring token: focus/open rings paint up to 3px,
|
|
1303
|
+
* so 1x shaved a flush-edge control's ring (the locale picker is the first
|
|
1304
|
+
* child of `end`). Bare var() only — Chromium drops any calc() in
|
|
1305
|
+
* overflow-clip-margin at parse time, degrading the margin to 0. */
|
|
1306
|
+
overflow-clip-margin: var(--focus-ring-clip-margin);
|
|
1299
1307
|
}
|
|
1300
1308
|
.ui-topbar-start {
|
|
1301
1309
|
flex: 0 1 auto;
|
|
@@ -153,6 +153,11 @@
|
|
|
153
153
|
* default re-resolves at the element that paints the ring while an explicit override still wins. */
|
|
154
154
|
--focus-ring-color: initial; /* default = the live --ring role */
|
|
155
155
|
--focus-ring-width: 2px;
|
|
156
|
+
/* Ring headroom for clipped chrome (`overflow-clip-margin` on the topbar family, gh#291).
|
|
157
|
+
* MUST stay a plain length consumed via a bare var(): Chromium rejects any calc() in
|
|
158
|
+
* overflow-clip-margin at parse time (even calc(2 * 2px)), silently dropping the
|
|
159
|
+
* declaration to 0. Value = max ring paint (3px open/focus) + 1px breathing. */
|
|
160
|
+
--focus-ring-clip-margin: 4px;
|
|
156
161
|
/* REGION focus ring — the keyboard-scroll affordance on large scroll REGIONS (`.app-main`,
|
|
157
162
|
* gh#271/gh#276), separate from the control ring above. A control-strength 2px brand frame
|
|
158
163
|
* around the entire content area reads as a glitch to mouse-first users (`:focus-visible`
|