Repository navigation
feat(web): focus ring, state colours, full-width code pages and signed-out Appearance - #360
Merged
Merged
Conversation
…d-out Appearance The light focus ring moves to forge-700 (a --focus token, 3:1 or more on every surface, now in the contrast test). Issue and pull request states get their own --state-* tokens (open green, merged and completed violet, closed red, draft and not planned grey) instead of the trust colours. Blob, blame and commit pages drop the rail and lead with the collapsed Verification card, so code gets the full width. Settings shows a new Appearance section (theme and diff choices) signed out too; the merge identity stays under Merge commits. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 21 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (27)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…nd settings The contrast test now resolves hyphenated theme fills (bg-state-*) behind white text instead of skipping them. The PR close/reopen toggle and the duplicate and not-planned icons use the state tokens. A legacy close event, which cannot say whether it closed an issue or a PR, gets a neutral icon. The commit page's Verification card attests the commit shown, compare shares the same card component, and one table gives a PR's state label and icon. Settings calls the browser commit identity what it is: it applies to every browser commit, not just merges. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Owner
Author
|
Review record: a high-effort code review of this PR found ten items, all fixed in e88665e before merge.
🤖 Posted autonomously by Claude on behalf of pasta. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The P0 visual fixes from the theming review (E8, quick win 6, and the Appearance half of quick win 14):
--focustoken (forge-700 light, forge-400 dark). The contrast test now checks the ring against every surface in both themes at 3:1 (WCAG 1.4.11).--state-*tokens instead of the trust colours: open green, merged and completed violet, closed PR red, draft and not planned grey. One table (lib/design/state.ts) feeds the PR and issue badges, both lists, the timeline, linked PRs and the close button. The fills are tested behind white text (4.5:1+) and the text tokens on every surface, in both themes. A draft PR in the linked-PRs list now gets the draft icon.Why
The light focus ring failed WCAG non-text contrast; state badges spent the "verified" green, the identity blue and the primary-button orange on "open", "merged" and "closed"; code pages carried an empty rail; and diff colours (including the colour-blind palette) were only reachable after sign-in although reading needs no identity.
The new colours are CSS variables exposed to Tailwind as
rgb(var(--x) / <alpha-value>), so each class serves both themes with nodark:twin. That is the shape the semantic-token work will extend.How tested
tsc,eslint --max-warnings 0, fullvitest(5,676 tests). Under load, 4 crypto-heavy auth tests timed out; re-run alone, they pass (40/40).lib/design/contrast.test.ts(focus ring, state text, state fills) andcomponents/appearance-panel.test.tsx, which covers the radios, the stored diff choices and rendering before the sign-in check.dash-forge-qa/evidence/p0/e8/before/(live site) anddash-forge-qa/evidence/p0/e8/after-pr1/.Limits
🤖 Generated with Claude Code