wrolpi/app/src/components/ui
Roland 149b40acbd ui: the corner icons opt out of the bar's foreground, so make them stop
Measuring the foreground against the bar is worth nothing if the icons ignore
it, and two of them did -- the search glyph and the hamburger came out blue on
every bar in every theme while the rest of the bar was correct.

Neither inherits.  An anchor takes `a {color: var(--blue)}` from tokens.css,
which outranks an inherited value however the bar sets it; the search glyph is
an anchor.  A Mantine ActionIcon paints `--ai-color`, its own themed blue, and
Mantine writes that variable INLINE on the element, so a stylesheet declaring it
loses every time -- the painted property has to be set instead.  The status
icons that link to /admin are anchors too, and only looked right because they
carry an inline colour of their own, which still wins and is meant to.

The test that claimed to cover this read `querySelector('...svg')`: one element,
the first, which was a plain inheriting Icon.  It asserted every icon and
measured the only one that was never broken.  It now reads querySelectorAll,
asserts the count, and checks all four -- and reddens in all four themes with
the rule removed, naming --blue as the value it found.

The gallery sample was wrong in the same direction: it used an IconButton for
the search icon, so it showed the ActionIcon fault twice and hid the anchor
fault entirely.  It now carries all three shapes the real bar puts in that
corner.

1115 jest / 62 suites, 177 in ui-layout.cy.js, clean npm run build.
2026-08-02 14:59:22 -06:00
..
Button.tsx ui: an icon button is the same height as the button beside it 2026-08-02 11:52:59 -06:00
DataTable.tsx ui: give tables a real header, drop the column grid, quiet the row rules 2026-08-01 17:10:03 -06:00
Feedback.tsx ui: semantic roles, so night and amber can tell severity apart at all 2026-08-01 17:54:22 -06:00
Icon.tsx ui: map the twelve icon names that were rendering as question marks 2026-08-01 16:30:20 -06:00
index.ts ui: nine leaf files off Semantic, and the components they needed 2026-07-30 11:55:39 -06:00
Inputs.tsx fix: break the import cycle that put useCalculators in the TDZ 2026-08-02 12:41:23 -06:00
Navigation.tsx ui: nine leaf files off Semantic, and the components they needed 2026-07-30 11:55:39 -06:00
Overlays.tsx ui: migrate the extension pages and Configs; five components they needed 2026-07-30 09:15:04 -06:00
SearchBox.tsx ui: fix the cypress failures, and two real defects behind them 2026-07-30 12:54:24 -06:00
Surfaces.tsx ui: cards get legible titles, contained posters, and meta beside the title 2026-08-02 11:52:59 -06:00
ThemePicker.tsx ui: media filtering is a per-theme setting, not a night-mode hardcode 2026-07-30 09:15:04 -06:00
toast.test.js ui: semantic roles, so night and amber can tell severity apart at all 2026-08-01 17:54:22 -06:00
toast.ts ui: semantic roles, so night and amber can tell severity apart at all 2026-08-01 17:54:22 -06:00
ui-layout.cy.js ui: the corner icons opt out of the bar's foreground, so make them stop 2026-08-02 14:59:22 -06:00
ui.css ui: centre the pagination strip 2026-08-02 13:11:31 -06:00
ui.test.js ui: cards get legible titles, contained posters, and meta beside the title 2026-08-02 11:52:59 -06:00