GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — fix(app): fix clipped and misleading focus rings in the timeline and settings by usrnk1 · Pull Request #65215 · anomalyco/opencode Conversation
|
| [data-slot="collapsible-content"] | ||
| :is([data-slot="collapsible-trigger"], [data-slot="timeline-event-item"]):focus-visible { | ||
| position: relative; | ||
| z-index: 22; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The group's sticky header is z-index: 21 (message-part.css), so this lifts a focused row above it all the time, not only when the row sits right under it. Tab to a nested row, then wheel-scroll: the row stays :focus-visible and its label and ring draw over the sticky "Explored …" header as it passes underneath. The same happens with the nested sticky file headers (z-index 10/11). An inset ring for these nested rows (negative outline-offset, as sticky-accordion-header does for its trigger) would keep the ring clear of the header without changing the stacking order.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in f2a86b1. You were right: with the row at z-index 22 above the header's 21, a focused row drew over the sticky "Explored …" header while it scrolled under it. I reproduced it in the Tool group story: the ring and the label painted across the header.
I removed the z-index rule instead of going inset, because an inset ring would sit on the row's text. The open group header now has clip-path that leaves its last 4px unpainted (the width of a ring outside its row; min(4px, var(--tool-content-gap)), so notices-only groups are unchanged). The first row's ring shows in that strip at rest, and rows scroll under the header again. The nested file headers (z-index 10/11) are lower than the group header again, so they go back to passing under it too. The only trace is a 4px sliver of the ring in the strip while the row scrolls out.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The fix works as far as I can tell from the CSS. I checked the geometry by reading the code at pr/head; I didn't render the story.
16 + 6 + 16 = 38px tall, and its ring sits on the inner tool-trigger with 2px outline plus 2px offset. So the ring's bottom edge is about 12px above the box bottom, well clear of the clipped 4px. The -8px insets on top and sides cover the 4px the ring extends on those sides.margin-block: -6px and padding-block: 6px put the row's line right at the header's box bottom. Its ring extends 4px above that, exactly into the unpainted strip.--tool-content-gap: 0px makes the clip min(4px, 0) = 0.clip-path. It creates a stacking context, but the header already has one (position: sticky with z-index: 21). Clicks in the strip now reach the row underneath, and that strip is the row's own padding anyway.top + 28px + gap = 44px, while the timeline-next group header is 38px tall. So there was already a 6px see-through band below the header, and any row scrolling under it showed there, not just a focused one. This change widens that band to 10px. That's not a regression, just context for the sliver. The 28px is the default header height, which doesn't match timeline-next's 22px line-plus-padding. If you want the band gone, set --sticky-accordion-top in timeline-next from its own header height. That would be a separate change.I made no changes: repo/ is still detached at d96edf805 with a clean tree, and I read the new commit through git show.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Re the review summary: the one open point (a focused nested row staying above the group's sticky header) is fixed in f2a86b1; see the reply on the inline thread. The settings-page note needed no change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The new commits look sound, from a code reading only: this sandbox has no browser and these are web-app views, so the screenshots in the description are the visual evidence.
The earlier point about focused rows drawing over the sticky group header is fixed. The header is now clipped 4px short of its bottom edge instead of raising the row, and the header's own inner ring still fits inside the clip. Moving the pages onto SettingsPanel and adding the About version ring both look fine.
Public API: unchanged (plugin settings pages render through SettingsPanel, but the plugin page API is the same).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.