Repository navigation
Conversation
On /payments the invoice icon buttons were painted accent blue on hover by the global button hover rule (it overrides their inline `background: none`), and the blue-tinted icon on top almost vanished. In dark mode, white text and icons sat on the accent blue (#669cfe, 2.7:1) for active/hovered filters, the Clear/Filters buttons, button chips and table pagination. - Add `--on-accent-color` (#231f20, 6.0:1 on the accent) and `--hover-accent-bg-color` (#4f8bfb, 5.0:1) for both themes. - Global button hover, Button component hover, back button, table chips and pagination hover use them. - Payments/dashboard filter buttons: dark text and an un-inverted icon on the accent background. - Invoice icon buttons stay transparent on hover; only the icon is tinted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019G564i2sNiHJYQR95m8zGq
Contributor
|
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 51 minutes. View limit details
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. |
This branch has not been deployed
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.
Related to #1133
Description
I couldn't open the issue's screenshot from my environment. Two contrast problems on
/paymentsmatch its description (a small crop of an icon on a button):background: noneinline. The globalbutton:enabled:hoverrule uses!important, so it overrides that and paints them accent blue on hover. The hover filter that tints the icon blue then puts a blue icon on a blue background, and it nearly disappears. For example, "+" becomes a blue circle with an almost invisible blue plus.#669cfewith white text is 2.7:1, which fails WCAG AA. The hover colour#417dedwith white is 3.9:1, which also fails. This affected:ButtonhoversChanges:
styles/variables.css: new tokens for both themes:--on-accent-color: #231f20: text and icons on the accent background, 6.0:1--hover-accent-bg-color: #4f8bfb: hover background, 5.0:1 with that textMenuItemalready does this for its active item.styles/global.css: the global button hover, back button, table button chips and pagination hover use the new tokens.components/Button/button.module.css: hover uses the new hover background.pages/payments/payments.module.css:pages/dashboard/dashboard.module.css: the same filter-button fix, and the period toggle hover uses--on-accent-color(it was#fff).--accent-colorand--hover-accent-colorare unchanged, so the landing page, which uses--hover-accent-colorwith white text, looks the same.Test plan
variables.css,global.css,payments.module.cssandbutton.module.cssfrommasterand from this branch in a static harness with Playwright/Chromium. I took screenshots in light and dark themes, at rest and while hovering Filters, aButton(default and small) and the invoice icons.#669cfe.#231f20on#669cfeis 6.0:1, and on#4f8bfbit is 5.0:1. Before, white on#669cfewas 2.7:1 and white on#417dedwas 3.9:1./payments(filters, invoice column),/dashboard(filters, period toggles) and a few forms in both themes.Remarks
button { color: var(--primary-text-color) }default is unchanged. Many buttons override the background without setting a text colour, so changing it globally could make text unreadable elsewhere. Only hover and accent states use the new tokens.Generated by Claude Code