@godxjp/ui 18.12.8 → 18.12.12
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/shell-layout.css +16 -2
- package/package.json +2 -2
|
@@ -1271,7 +1271,15 @@
|
|
|
1271
1271
|
align-items: center;
|
|
1272
1272
|
gap: var(--topbar-gap);
|
|
1273
1273
|
padding-inline: var(--topbar-inset);
|
|
1274
|
-
|
|
1274
|
+
/* Horizontal-only clip (gh#291). `hidden` clipped BOTH axes with no clip-margin,
|
|
1275
|
+
* cutting the focus ring of slot controls flat at top/bottom — the bar's content
|
|
1276
|
+
* box hugs --control-height exactly, and the rails' overflow-clip-margin below
|
|
1277
|
+
* cannot help when the parent already swallowed the ring. `clip` (not `hidden`)
|
|
1278
|
+
* is what lets overflow-y stay `visible` — a `hidden`/`visible` pair computes to
|
|
1279
|
+
* `auto` and still clips. Vertically the ring paints into the shell bar's box,
|
|
1280
|
+
* which has headroom; the horizontal shrink/truncation contract is unchanged. */
|
|
1281
|
+
overflow-x: clip;
|
|
1282
|
+
overflow-y: visible;
|
|
1275
1283
|
}
|
|
1276
1284
|
.ui-topbar-start,
|
|
1277
1285
|
.ui-topbar-center,
|
|
@@ -1280,7 +1288,13 @@
|
|
|
1280
1288
|
min-width: 0;
|
|
1281
1289
|
align-items: center;
|
|
1282
1290
|
gap: var(--topbar-gap);
|
|
1283
|
-
|
|
1291
|
+
/* Clip horizontally only (gh#291): the rails hug --control-height, so a
|
|
1292
|
+
* vertical clip eats the focus ring even WITH the clip-margin — the margin
|
|
1293
|
+
* is 2px while e.g. the toggle ring paints 3px, and Safari does not
|
|
1294
|
+
* implement overflow-clip-margin at all. The margin still buys horizontal
|
|
1295
|
+
* ring headroom where supported. */
|
|
1296
|
+
overflow-x: clip;
|
|
1297
|
+
overflow-y: visible;
|
|
1284
1298
|
overflow-clip-margin: var(--focus-ring-width);
|
|
1285
1299
|
}
|
|
1286
1300
|
.ui-topbar-start {
|