mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 04:46:18 -05:00
ui: Nav off Semantic, and the memory warning starts working
The navigation bar was the last visibly-Semantic surface, so this finishes the visual migration. Its two fragile features survive intact: the navbar colour still comes from the user's `nav_color` setting, now as `var(--<name>)` since our token tables define all fourteen Semantic colour names, with text taking `--btn-text` so every theme stays legible; and the warning-icon contrast swap is unchanged, including the case where `lowWarningColor` is null and must mean "no override" rather than `var(--null)`. Fixed a pre-existing bug the migration exposed: the memory indicator passed its colour to `Link`, which ignores it, so that icon never changed colour -- 81% and 95% RAM looked identical. Every sibling indicator colours the Icon; now this one does too. The agent that migrated this file also gave names to the warning indicators, which were unlabelled icons inside links, so a screen reader now announces what each one is. The three data-testid hooks are unchanged. Baseline 15 -> 2. Only ControllerPage and Theme.tsx remain; Theme.tsx is last by design, since it can only go once nothing imports its Semantic wrappers.
This commit is contained in:
parent
3fda201f41
commit
6dbc906bb5
2 changed files with 8 additions and 11 deletions
|
|
@ -1,13 +1,4 @@
|
|||
[
|
||||
"src/components/Archive.js",
|
||||
"src/components/Channels.js",
|
||||
"src/components/Docs.js",
|
||||
"src/components/FileBrowser.js",
|
||||
"src/components/FilePreview.js",
|
||||
"src/components/Nav.js",
|
||||
"src/components/Playlists.js",
|
||||
"src/components/Theme.tsx",
|
||||
"src/components/VideoPlayer.js",
|
||||
"src/components/Zim.js",
|
||||
"src/components/admin/ControllerPage.js"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue