UX: Change the authorize button color to primary (#29666)

Primary is a more appropriate color here than "danger". Authorizing is
important, but we usually use "danger" for destructive actions and
nothing is being destroyed here.
This commit is contained in:
Penar Musaraj 2024-11-08 17:33:50 -05:00 committed by GitHub
parent c1916f7984
commit 6912a1e3ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
<%= hidden_field_tag 'push_url', @push_url %>
<%= hidden_field_tag 'public_key', @public_key%>
<%= hidden_field_tag 'scopes', @scopes%>
<%= submit_tag t('user_api_key.authorize'), class: 'btn btn-danger' %>
<%= submit_tag t('user_api_key.authorize'), class: 'btn btn-primary' %>
<% end %>
</div>
<% end %>

View File

@ -4,6 +4,6 @@
<%= hidden_field_tag 'application_name', @application_name %>
<%= hidden_field_tag 'public_key', @public_key%>
<%= hidden_field_tag('auth_redirect', @auth_redirect) %>
<%= submit_tag t('user_api_key.authorize'), class: 'btn btn-danger' %>
<%= submit_tag t('user_api_key.authorize'), class: 'btn btn-primary' %>
<% end %>
</div>