about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2022-08-25 11:38:34 +0900
committerGitHub <noreply@github.com>2022-08-25 04:38:34 +0200
commit42ff4dce412752a05c2e3b990c93b08cb46ffd88 (patch)
treeac5fe7c7cf8cb34a2af8cb63cf13745859e5b68a /app
parent5d70a16a1417e53b0c6cc97def9688fda21f337c (diff)
Use type="color" on badge color input field (#18825)
This informs browser to use interactive color picker
Diffstat (limited to 'app')
-rw-r--r--app/views/admin/roles/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/roles/_form.html.haml b/app/views/admin/roles/_form.html.haml
index 9beaf619f..31f78f240 100644
--- a/app/views/admin/roles/_form.html.haml
+++ b/app/views/admin/roles/_form.html.haml
@@ -13,7 +13,7 @@
         = f.input :position, wrapper: :with_label, input_html: { max: current_user.role.position - 1 }
 
     .fields-group
-      = f.input :color, wrapper: :with_label, input_html: { placeholder: '#000000' }
+      = f.input :color, wrapper: :with_label, input_html: { placeholder: '#000000', type: 'color' }
 
     %hr.spacer/