Colours: white on the dark theme's primary buttons is 2.5:1, and field borders and the 'captured before' tag fall short #23
Labels
No labels
bug
documentation
enhancement
performance
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo-chromium#23
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found on 2026-09-29 in a read-only review of postulo-chromium at
7998de372, computing the contrast of every colour pair insrc/style.csswith the WCAG relative-luminance formula.The extension follows the system's colour scheme, and in the dark scheme
--brandbecomes#60a5fawhile the primary buttons and the unsent count keep white text: 2.54:1, against the 4.5:1 that SC 1.4.3 asks for 14 px text. These are the main actions of every page. Separately, text fields, selects and the description box are outlined only by--line, at 1.24:1 in light and 1.72:1 in dark against the 3:1 of SC 1.4.11, and the 11 px "captured before" tag is below 4.5:1 in both themes. Postulo promises WCAG 2.2 AA in both themes; the core fixed its own field border in postulo/postulo#274.src/style.css:13-24: the dark scheme sets--brand: #60a5fa,--brand-dark: #3b82f6,--line: #374151,--paper: #111827.src/style.css:140-150,button.primary, .button.primary:background: var(--brand),color: #fff; on hovervar(--brand-dark). Used by Capture this posting and both Send for review buttons (src/popup.html:22,33,49), Review in Postulo (:57), Send everything not sent (src/captures.html:23) and Save (src/options.html:24).src/style.css:352-362,.count(the unsent count beside "Captures in this browser"):background: var(--brand),color: #fff, 11 px.src/style.css:99-109,input, select, textarea:border: 1px solid var(--line)with--line#e5e7eb(light) or#374151(dark), on--paper.src/style.css:336-345,.tag(drawn bysrc/popup.js:274):background: var(--line),color: var(--muted), 11 px.#60a5fa2.54:1, on#3b82f6(hover) 3.68:1;#e5e7ebborder on white 1.24:1;#374151border on#1118271.72:1; tag text#6b7280on#e5e7eb3.90:1 (light) and#9ca3afon#3741514.06:1 (dark). The light theme's primary buttons (white on#2563eb, 5.17:1) pass.button.primary,.button.primaryand.counta dark foreground, for examplevar(--paper)(#111827on#60a5fais 6.98:1), or keep white text on a darker fill of at least 4.5:1 for both the resting and hover states. Giveinput,selectandtextareaa border token of its own of at least 3:1 against--paperin both themes;#6b7280is 4.83:1 on white and 3.67:1 on#111827. Draw the tag's text in--ink, or lighten its background, so it reaches 4.5:1.Done when
test/reads the custom properties of both schemes fromsrc/style.cssand checks each foreground/background pair used above against 4.5:1 for text and 3:1 for field borders; it fails on today's values.