Skip to content

Commit 24e7be4

Browse files
authored
Add utility as button variant (for in-page actions) (#246)
1 parent 76ba3ad commit 24e7be4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/helpers/application_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def link_to_button(text, url, variant: :secondary, **options)
1010
info: "border border-sky-500 text-gray-600 hover:bg-sky-600 hover:text-white",
1111
warning: "border border-yellow-400 text-gray-600 hover:bg-yellow-500 hover:text-white",
1212
danger: "border border-red-600 text-gray-600 hover:bg-red-600 hover:text-white",
13+
utility: "border border-gray-200 text-gray-600 hover:bg-gray-200 hover:text-gray-800"
1314
}
1415
classes = [base_classes, variant_classes[variant.to_sym], manual_classes].join(" ")
1516
link_to text, url, options.merge(class: classes)

0 commit comments

Comments
 (0)