ui: Nav.js off Semantic UI onto the token-driven component library

Replaces semantic-ui-react's Menu/Dropdown/Icon/Popup with plain flexbox
elements plus the Mantine-based Menu (for the mobile hamburger and desktop
"More" overflow), Tooltip, and Icon from ./ui. Nav color and the
warning-icon contrast swap keep their exact logic, now resolved through
CSS custom properties (var(--{navColor}), var(--btn-text)) instead of
Semantic color props. Adds accessible labels to previously-unlabelled
warning icons while preserving their data-testid hooks and threshold/
priority logic. New nav CSS lives in App.css (wrolpi-navbar*).
This commit is contained in:
Roland 2026-07-30 13:15:43 -06:00
parent fa1715523e
commit c8b27b625d
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 152 additions and 70 deletions

View file

@ -1,3 +1,40 @@
/* Nav bar: a hand-rolled flexbox bar (was a Semantic Menu). The user-chosen
background color and the `--btn-text` foreground are set inline per theme;
this stylesheet only supplies structure and hover affordances. */
.wrolpi-navbar {
display: flex;
align-items: stretch;
flex-wrap: nowrap;
min-height: 3.4em;
padding: 0 0.25em;
}
.wrolpi-navbar-right {
display: flex;
align-items: center;
margin-left: auto;
gap: 0.2em;
}
.wrolpi-navbar-link,
.wrolpi-navbar-link-button {
display: flex;
align-items: center;
padding: 0 1.1em;
color: inherit;
text-decoration: none;
white-space: nowrap;
background: none;
border: none;
font: inherit;
cursor: pointer;
}
.wrolpi-navbar-link:hover,
.wrolpi-navbar-link-button:hover {
background: rgba(0, 0, 0, 0.08);
}
.channel-edit {
border-radius: 3px;
padding: 0.75em;