You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change card Decline reads as disabled in dark themes #47665
The change card's Decline button (website/src/cards/ChangeCard.tsx, data-testid="change-card-cancel") is drawn in text-muted, with no border. In the dark Kiro theme it can read as disabled beside the filled primary button. The UX review of #47125 said so ("almost looks disabled").
Measured from styles/theme-palettes.css (kiro-dark):
Pair
Contrast
--muted #938f9b on --card #211d25
5.24:1
--text #dcdadf on --card #211d25
11.95:1
5.24:1 passes WCAG AA for text, so this is a clarity problem, not an accessibility failure. Every card kind shares this button, so any fix belongs in the shared card, not in one kind.
Task: decide whether Decline should use text-text (or a ghost-button style that reads as live) in dark themes. Then check every card kind in both themes.
[operator: bolichen97] Maintainer decision: Decline, and Dismiss beside it on a failed or expired card, drop their own styling and use the shared button's standard secondary style: a transparent button with a border and a label in the normal text colour, the same as the card's other secondary buttons. The guide offer card's Dismiss gets the same change, because that card is built on the change card's button row so the two look like one kind of object in the chat. The accept and Start buttons do not change.
Reason: the override removes the border and mutes the label, which is the look the shared button's own test treats as disabled, and on an expired card it made the whole footer look disabled. With the standard style, an enabled button and a disabled one differ the same way they do everywhere else in the app. A text colour change alone was not chosen, because the outline would then show only on hover, and in a few themes (Solarized, for example) the normal text colour is no brighter than the muted one. I am building it now with a test for each card, and screenshots of every card kind in the dark and light Kiro themes plus two other dark themes. It will be reproduced and smoke-tested on Linux before the PR opens.
[operator: bolichen97] Reproduced and fixed on Linux (Ubuntu 24.04, x86_64). On main, a pending card's Decline and a failed or expired card's Dismiss carried the muted, borderless override; the two new tests (change card, guide offer card) fail there and pass on the fix, 3 of 3 runs each. Smoke test on the same machine: the real dashboard of an isolated gateway, kiro-dark and kiro-light, and every card kind in kiro-dark, kiro-light, solarized-dark and amoled-dark. Decline and Dismiss now have the shared button's border and body-text label, the accept and Start buttons are unchanged, and no pixel changed outside the Decline and Dismiss buttons. PR: #47775
Activity
bolichen97 commentedon Dec 5, 2026
[operator: bolichen97] Picking this up since it has been quiet for a while; @tim-finnigan shout here if you are still on it.
bolichen97 commentedon Dec 5, 2026
[operator: bolichen97] Maintainer decision: Decline, and Dismiss beside it on a failed or expired card, drop their own styling and use the shared button's standard secondary style: a transparent button with a border and a label in the normal text colour, the same as the card's other secondary buttons. The guide offer card's Dismiss gets the same change, because that card is built on the change card's button row so the two look like one kind of object in the chat. The accept and Start buttons do not change.
Reason: the override removes the border and mutes the label, which is the look the shared button's own test treats as disabled, and on an expired card it made the whole footer look disabled. With the standard style, an enabled button and a disabled one differ the same way they do everywhere else in the app. A text colour change alone was not chosen, because the outline would then show only on hover, and in a few themes (Solarized, for example) the normal text colour is no brighter than the muted one. I am building it now with a test for each card, and screenshots of every card kind in the dark and light Kiro themes plus two other dark themes. It will be reproduced and smoke-tested on Linux before the PR opens.
bolichen97 commentedon Dec 5, 2026
[operator: bolichen97] Reproduced and fixed on Linux (Ubuntu 24.04, x86_64). On main, a pending card's Decline and a failed or expired card's Dismiss carried the muted, borderless override; the two new tests (change card, guide offer card) fail there and pass on the fix, 3 of 3 runs each. Smoke test on the same machine: the real dashboard of an isolated gateway, kiro-dark and kiro-light, and every card kind in kiro-dark, kiro-light, solarized-dark and amoled-dark. Decline and Dismiss now have the shared button's border and body-text label, the accept and Start buttons are unchanged, and no pixel changed outside the Decline and Dismiss buttons. PR: #47775