Commit 0dd35e8
committed
fix(ui): keep readable text contrast on Discard edits hover
The "Discard edits" button used `variant="outline"`, which injects
`hover:text-accent-foreground`. The local className overrode the hover
background (`hover:bg-amber-200`) but not the hover text color, so on
hover the text turned the light accent-foreground color over an amber
background, producing poor contrast.
Drop `variant="outline"` (default variant has no hover text-color rule)
and add `border` to the className. This matches the sibling "Save edits"
button's pattern. Text now stays `text-amber-950` in both default and
hover states.1 parent 1a3731f commit 0dd35e8
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
1698 | | - | |
1699 | 1698 | | |
1700 | | - | |
| 1699 | + | |
1701 | 1700 | | |
1702 | 1701 | | |
1703 | 1702 | | |
| |||
0 commit comments