]> cat aescling's git repositories - mastodon.git/commitdiff
Use type="color" on badge color input field (#18825)
authorJeong Arm <kjwonmail@gmail.com>
Thu, 25 Aug 2022 02:38:34 +0000 (11:38 +0900)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:28:01 +0000 (00:28 -0400)
This informs browser to use interactive color picker

app/views/admin/roles/_form.html.haml

index 9beaf619fa5914d25c15566f05df55bb56acd4ad..31f78f2405d1f879e239e0c069bf12f8e5ee9d5c 100644 (file)
@@ -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/