inspector/clients/web/src/theme
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall 04b5e70a53 fix(a11y): make the form error color meet WCAG AA in both schemes
Mantine's `--mantine-color-error` defaults to `red-6` in light and `red-8` in
dark. Both fail the 4.5:1 AA threshold that applies at the 12px size it renders
input error text: 4.48:1 on white, and 1.93:1 on our charcoal body. Override to
`red-7` (5.72:1) and `red-4` (6.44:1) — the latter matching the one-to-two-step
lift App.css already applies to the semantic status/log reds for dark.

Surfaced by the JsonObjectInput stories, which are the first in the repo to
render an input error state and so the first to put this in front of the
Storybook a11y gate. It is app-wide, not specific to that component — every
form error in the Inspector was affected.

It has to go through `cssVariablesResolver`: MantineProvider injects these
variables into a `<style>` block appended after the stylesheet imports, so a
`:root` rule in App.css loses to it on source order at equal specificity.

That resolver was duplicated in main.tsx and .storybook/preview.tsx and missing
from renderWithMantine, so the three could drift on any token they set. Extract
one `theme/cssVariables.ts` and use it at all three sites.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177mPHAdECD18nLLCTwR5rh
Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-23 12:56:13 -04:00
..
assets refine UI layout, theming, and component consistency across screens 2026-03-23 16:56:53 -04:00
Accordion.ts refactor(web): rename "History" tab/feature to "Protocol" (#1623) 2026-07-09 19:04:54 -04:00
ActionIcon.ts web: Accessibility — accessible palette + WCAG AA contrast, labels, names, roles (#1679) 2026-07-13 18:20:55 -04:00
Alert.ts web: Accessibility — accessible palette + WCAG AA contrast, labels, names, roles (#1679) 2026-07-13 18:20:55 -04:00
AppShell.ts fix(web): hide resource subscription UI when server lacks subscribe capability (#1479) 2026-06-14 12:54:19 -04:00
Autocomplete.ts fix(web): section-header hover outline + clear buttons out of tab order (#1487) (#1488) 2026-06-14 22:27:46 -04:00
Badge.ts web: Accessibility — accessible palette + WCAG AA contrast, labels, names, roles (#1679) 2026-07-13 18:20:55 -04:00
Button.ts formatting 2026-03-17 16:43:27 -04:00
Card.ts web: Accessibility — accessible palette + WCAG AA contrast, labels, names, roles (#1679) 2026-07-13 18:20:55 -04:00
Code.ts web: Accessibility — accessible palette + WCAG AA contrast, labels, names, roles (#1679) 2026-07-13 18:20:55 -04:00
cssVariables.ts fix(a11y): make the form error color meet WCAG AA in both schemes 2026-08-23 12:56:13 -04:00
Flex.ts Add new components, typography, badge contrast, and screen layout refactors 2026-03-28 20:38:04 -04:00
Group.ts fix(auth): address Copilot review round 2 on the secret-store PR 2026-08-22 12:51:14 -04:00
index.ts fix(a11y): make the form error color meet WCAG AA in both schemes 2026-08-23 12:56:13 -04:00
Input.ts Phase 1: Style refinements and component tweaks from Storybook review 2026-04-17 19:26:21 -04:00
Modal.ts web: pin Server/Client Settings modal header while body scrolls (#1753) 2026-07-23 19:57:03 -04:00
Paper.test.tsx chore: close a batch of quality-gate & tidy gaps (#1785 #1787 #1789 #1790 #1767) (#1792) 2026-07-26 10:43:11 -04:00
Paper.ts Add new components, typography, badge contrast, and screen layout refactors 2026-03-28 20:38:04 -04:00
ScrollArea.ts web: Accessibility — accessible palette + WCAG AA contrast, labels, names, roles (#1679) 2026-07-13 18:20:55 -04:00
Select.ts formatting 2026-03-17 16:43:27 -04:00
Switch.ts formatting 2026-03-17 16:43:27 -04:00
Text.ts web: server-screen, footer, monitoring-sidebar, and responsive-header polish (#1683) 2026-07-14 08:55:39 -04:00
TextInput.ts formatting 2026-03-17 16:43:27 -04:00
theme.ts web: pin Server/Client Settings modal header while body scrolls (#1753) 2026-07-23 19:57:03 -04:00
Title.ts feat(connection-info): wire Connection Info modal to the connection handshake (#1377) 2026-05-30 16:42:37 -04:00
UnstyledButton.ts fix(web): filter toggle hover as border, not background (#1460) (#1461) 2026-06-13 19:52:27 -04:00