fix(po): make cancel buttons red & visible #59
No reviewers
Labels
No labels
bug
claude-failed
claude-pr
claude-queue
claude-working
feature
interactive
portal
triaged
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shad0w/pelagia-portal#59
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/cancel-button-red"
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?
Follow-up to #56. The cancel buttons used Tailwind shades the theme doesn't define.
Problem
The theme (
app/globals.css) defines onlydanger,danger-50,danger-100,danger-700. I'd usedbg-danger-600/danger-500/danger-200, which generate no CSS — so:Fix
Use the same tokens as the app's other filled-red buttons (
delete-confirm-dialog):bg-danger text-white hover:bg-danger-700.Verification
rgb(220,38,38)on white text; the modal confirm button computesrgb(220,38,38), opacity 1, enabled oncecancel+ a reason are entered. Screenshot confirmed.tests/unit/cancel-po-controls.test.tsxguards the regression (asserts both buttons use standalonebg-danger, not an undefined shade) —pnpm testgreen (188), type-check clean.🤖 Generated with Claude Code