@godxjp/ui 18.12.13 → 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.
|
@@ -1282,8 +1282,8 @@
|
|
|
1282
1282
|
overflow-y: visible;
|
|
1283
1283
|
/* Ring headroom on the clipped axis: the end rail sits flush against this
|
|
1284
1284
|
* box, so without a margin the LAST control's ring loses its outer edge.
|
|
1285
|
-
*
|
|
1286
|
-
overflow-clip-margin:
|
|
1285
|
+
* Bare var() only — Chromium drops any calc() in overflow-clip-margin. */
|
|
1286
|
+
overflow-clip-margin: var(--focus-ring-clip-margin);
|
|
1287
1287
|
}
|
|
1288
1288
|
.ui-topbar-start,
|
|
1289
1289
|
.ui-topbar-center,
|
|
@@ -1299,10 +1299,11 @@
|
|
|
1299
1299
|
* ring headroom where supported. */
|
|
1300
1300
|
overflow-x: clip;
|
|
1301
1301
|
overflow-y: visible;
|
|
1302
|
-
/*
|
|
1303
|
-
*
|
|
1304
|
-
* child of `end`)
|
|
1305
|
-
|
|
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);
|
|
1306
1307
|
}
|
|
1307
1308
|
.ui-topbar-start {
|
|
1308
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`
|