mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-30 17:19:48 +01:00
c67d63d88a
Closes https://codeberg.org/forgejo/forgejo/issues/1120 - Adds labels to reaction and context menu. - Fixes taborder in markdown combobox buttons. They are now only one "tab" stop and can be navigated with arrow buttons and in the right order (previously, it would skip the table button). - Generates more verbose output for the reactio selectors to provide content for users who cannot identify the meaning of these buttons visually. Explicit aria-labels are now preferred over auto-generated ones.
12 lines
518 B
Go HTML Template
12 lines
518 B
Go HTML Template
{{if .ctxData.IsSigned}}
|
|
<div class="item action ui dropdown jump pointing top right select-reaction" data-action-url="{{.ActionURL}}" aria-label="{{ctx.Locale.Tr "repo.issues.reaction.add"}}">
|
|
<a class="add-reaction muted">
|
|
{{svg "octicon-smiley"}}
|
|
</a>
|
|
<div class="menu reactions-menu">
|
|
{{range $value := AllowedReactions}}
|
|
<a class="item reaction" data-tooltip-content="{{$value}}" aria-label="{{$value}}" data-reaction-content="{{$value}}">{{ReactionToEmoji $value}}</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
{{end}}
|