Skip to content

Commit

Permalink
Add the danger scheme to the ui/button component
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Sep 15, 2023
1 parent b876614 commit a1bb86e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions admin/app/components/solidus_admin/ui/button/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ class SolidusAdmin::UI::Button::Component < SolidusAdmin::BaseComponent
disabled:text-gray-300 disabled:bg-white disabled:cursor-not-allowed
aria-disabled:text-gray-300 aria-disabled:bg-white aria-disabled:cursor-not-allowed
],
danger: %w[
text-red-500 bg-white border border-1 border-red-500
hover:bg-red-500 hover:border-red-600 hover:text-white
active:bg-red-600 active:border-red-700 active:text-white
focus:bg-red-50 focus:bg-red-500 focus:border-red-600 focus:text-white
disabled:text-red-300 disabled:bg-white disabled:border-red-200 disabled:cursor-not-allowed
aria-disabled:text-red-300 aria-disabled:bg-white aria-disabled:border-red-200 aria-disabled:cursor-not-allowed
],
ghost: %w[
text-gray-700 bg-transparent
hover:bg-gray-50
Expand Down

0 comments on commit a1bb86e

Please sign in to comment.