From 6912a1e3caa08c9890f67fc5ca521547b44f13b3 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Fri, 8 Nov 2024 17:33:50 -0500 Subject: [PATCH] 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. --- app/views/user_api_keys/new.html.erb | 2 +- app/views/user_api_keys/otp.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/user_api_keys/new.html.erb b/app/views/user_api_keys/new.html.erb index 7657919d621..1246c45cc9f 100644 --- a/app/views/user_api_keys/new.html.erb +++ b/app/views/user_api_keys/new.html.erb @@ -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 %> <% end %> diff --git a/app/views/user_api_keys/otp.html.erb b/app/views/user_api_keys/otp.html.erb index 9c96d638d2d..0d05ca30219 100644 --- a/app/views/user_api_keys/otp.html.erb +++ b/app/views/user_api_keys/otp.html.erb @@ -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 %>