Skip to content

Commit

Permalink
feat: add aria-label attribute for emoji picker button (#113)
Browse files Browse the repository at this point in the history
为标签按钮添加了aria-label字段,增强无障碍

```release-note
为标签按钮添加了aria-label字段,增强无障碍
```
  • Loading branch information
Anyexyz committed Apr 16, 2024
1 parent ccae3d2 commit 9ef3122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/comment-widget/src/emoji-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class EmojiButton extends LitElement {
}

override render() {
return html`<button class="emoji-button" type="button">
return html`<button class="emoji-button" type="button" aria-label="选择表情">
${this.emojiLoading
? html`<icon-loading></icon-loading>`
: html`<icon-emoji @click=${this.handleOpenEmojiPicker}></icon-emoji>`}
Expand Down

0 comments on commit 9ef3122

Please sign in to comment.