-
Notifications
You must be signed in to change notification settings - Fork 50
Add destructive variant to button component #2117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add destructive variant to button component #2117
Conversation
Co-authored-by: satoshi.toyama <[email protected]>
|
Cursor Agent can help with this pull request. Just |
|
|
Finished running flow.
|
||||||||||||||||||
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
📋 Manual QA ChecklistBased on the changes in this PR, here are the key areas to test manually:
✨ Prompt for AI AgentsUse the following prompts with Cursor or Claude Code to automate E2E testing: 📝 E2E Test Generation Prompt |
Summary
Adds a
destructivevariant to theButtoncomponent for actions that require a clear warning.Related Issue
N/A
Changes
"destructive"to theButtonStyletype.destructivevariant styles usingbg-error-900/10,text-error-900,border-error-900/20, andhover:bg-error-900/20.text-error-900to button text and icons when thedestructivestyle is active.Testing
destructivevariant.Other Information
The
destructivevariant uses error-related colors, similar to the styling seen inrevoke-invitation-dialog.tsx, to visually indicate a potentially irreversible action.