Repository navigation
fix(layout): an Edge sheet's kicker reads on its paper - #3303
jgregoriorincon merged 1 commit into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI found no bugs, security issues or AGENTS.md breaks in this change. I checked the sRGB-to-WCAG math by hand: the default accent Bugs: none found. Confidence in the logic: high. Security: none found. Performance: none found. Quality
AGENTS.md: no breaks found. The change touches no saved fields, so the schema and command-surface files need no update. It is engine-only with no Surfaces and twins: the only accent text on a dark paper is the edge kicker, because Two inline comments are buffered and will post when the session completes. Both are quality items. Change sizeCompared with the base branch (merge base c5e1119 to PR head e0e97b7), covering the whole PR.
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Summary
On an Edge publication sheet the kicker was drawn in the accent whatever the paper, so on a dark paper the default brick red
#B4432Ecame out at 2.8:1 against#1B2430.The kicker now takes the accent as given where it reaches 4.5:1 against the paper, and otherwise the accent mixed toward that paper's text colour, in twentieths, until it does (
#C77665for the default accent on#1B2430). A paper on which no mix reaches it, such as a mid grey, gives the text colour, as the title has. It is decided whenlayout.publicationmakes the sheet; changing the page colour afterwards leaves the texts as made, as before.The title, subtitle, headline figures and footer already used the paper's text colour, and other styles are unchanged.
The change is inside
layout.publication, so it reaches every surface that runs the command (desktop and web wizard, command line, scripts, Assistant) with no new parameter, command or UI string. The wizard's style thumbnail draws a bar in the accent, not text, and is unchanged.Testing
crates/engine/src/tests/layout_edge.rs: the default accent on a dark paper, an accent that doesn't read on a dark and on a light paper, one that reads, and a mid grey paper. Three of them failed before the change.cargo nextest run -p rustgis-engine -E 'test(/layout_edge/) | test(/publication/)': 116 passed.cargo fmt --all --check,cargo clippy -p rustgis-engine,cargo nextest run(10701 passed, 29 skipped, the two DuckDB tests left out locally), doctests, layer check andcargo xtask schema --check: all passed.ui_shot: the sheet exported before and after (crop below).UI evidence
An Edge sheet on
"paper": "#1B2430"with the default accent, before (top) and after (bottom):Related issue
Closes #3301.
Summary by CodeRabbit