mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(kit): show the panel rails as labelled pills until a panel opens
UiRail takes `collapsible`: while no panel on its side is open, each item shows its icon and label as a pill, and once one opens the labels fold away to the icon rail, making room for the panel. The tip is not shown while the label is on screen; the button keeps its accessible name and the visible label is hidden from assistive technology. The side panel rails turn it on. Each rail is now placed by its screen-side edge, at the rail clearance, so a rail that widens grows toward the middle of the screen; collapsed, it sits 6px outside its stack as before.
This commit is contained in:
1 parent
6acaa01ca8
commit
d546d65380
7 files changed
+195
-9
No files matched your search
@@ -66,13 +66,19 @@ test('the Cyber cockpit keeps Data Layers on the left edge in every language', (
|
||||
|
||||
test('the panel rails stay on the outer side of their stacks in right-to-left', () => {
|
||||
const layers = sheet('layers.css');
|
||||
// Each rail is placed against its stack's outer edge; a physical side
|
||||
// would put it over the panels once the stacks swap sides.
|
||||
// Each rail is placed by its screen-side edge; a physical side would put
|
||||
// it over the panels once the stacks swap sides.
|
||||
const left = ruleBody(layers, '.gev-panel-rail--left');
|
||||
assert.match(left, /inset-inline-end: calc\(100% \+ 6px\);/);
|
||||
assert.match(
|
||||
left,
|
||||
/inset-inline-start: calc\(-1 \* var\(--panel-rail-clearance\)\);/,
|
||||
);
|
||||
assert.doesNotMatch(left, /(?:^|\s)(?:left|right):/);
|
||||
const right = ruleBody(layers, '.gev-panel-rail--right');
|
||||
assert.match(right, /inset-inline-start: calc\(100% \+ 6px\);/);
|
||||
assert.match(
|
||||
right,
|
||||
/inset-inline-end: calc\(-1 \* var\(--panel-rail-clearance\)\);/,
|
||||
);
|
||||
assert.doesNotMatch(right, /(?:^|\s)(?:left|right):/);
|
||||
// Their tips open toward the middle of the screen.
|
||||
const kit = sheet('kit.css');
|
||||
|
||||
Reference in new issue
Block a user