Skip to content

Commit 3fcbf06

Browse files
committed
add comment
1 parent fb21747 commit 3fcbf06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/repo/issue/labels/label_edit_modal.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<div class="field">
5151
<label for="color">{{ctx.Locale.Tr "repo.issues.label_color"}}</label>
5252
<div class="column js-color-picker-input">
53+
<!-- the "#" is optional because backend NormalizeColor is able to handle it, API also accepts both formats, and it is easier for users to directly copy-paste a hex value -->
5354
<input name="color" value="#70c24a" placeholder="#c320f6" required pattern="^#?([\dA-Fa-f]{3}|[\dA-Fa-f]{6})$" maxlength="7">
5455
{{template "repo/issue/label_precolors"}}
5556
</div>

0 commit comments

Comments
 (0)