ui: the Or breaks the rule, it is not enclosed by one

Two fixes to the divider from review.

No disc.  The rule runs down, stops at the word, and picks up below it -- the
break made by painting the word with `--panel` rather than by drawing a shape
around it.  So the label carries no border and no radius, only enough padding to
open the gap.

And a stray 1px line down the word's own left edge.  The label is a third child
of the grid -- absolutely positioned, so it takes no column -- but `> * + *`
still matched it and gave it a border of its own, beside the one running behind
it.  Both the divider rules exclude it now.

The test that was meant to catch that read `borderTopWidth` and nothing else, so
a rule on the left survived an assertion named "no outline around the word".  It
reads all four sides, and fails on the Left edge against the old selector.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Roland 2026-08-05 17:45:43 -06:00
parent aa44bcd1c1
commit 872fd5f92c
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 47 additions and 20 deletions

View file

@ -378,9 +378,10 @@ export function ThemeSamplePage() {
</div>
</Panel>
<p style={{fontSize: '0.75rem', color: 'var(--muted)'}}>
The disc masks the rule behind it and is painted with <code>--panel</code>, so it
only disappears into the surface on a Panel — on any other ground it reads as a
chip. Below the tablet breakpoint the halves stack and the rule turns horizontal.
The rule runs down, stops at the word, and picks up below it. That break is made
by painting the word with <code>--panel</code>, so it only disappears into the
surface on a Panel — on any other ground the paint reads as a chip. Below the
tablet breakpoint the halves stack and the rule turns horizontal.
</p>
</Section>