diff --git a/app/components/button_component.rb b/app/components/button_component.rb index 139c0b9c1..ed8e56210 100644 --- a/app/components/button_component.rb +++ b/app/components/button_component.rb @@ -3,7 +3,8 @@ class ButtonComponent < ApplicationComponent SCHEME_MAPPINGS = { primary: :primary_classes, - secondary: :secondary_classes + secondary: :secondary_classes, + danger: :danger_classes }.with_indifferent_access.freeze def initialize( @@ -61,6 +62,7 @@ def base_classes "shadow-sm", "ring-1", "ring-inset", + "text-center", "no-underline", "focus-visible:outline", "focus-visible:outline-2", @@ -79,6 +81,10 @@ def secondary_classes ] end + def danger_classes + ["bg-danger-500 hover:bg-danger-700 active:bg-danger-200 text-white"] + end + def primary_classes [ "bg-purple-600",