Skip to content

Commit 9ef3122

Browse files
authored
feat: add aria-label attribute for emoji picker button (#113)
为标签按钮添加了aria-label字段,增强无障碍 ```release-note 为标签按钮添加了aria-label字段,增强无障碍 ```
1 parent ccae3d2 commit 9ef3122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/comment-widget/src/emoji-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class EmojiButton extends LitElement {
8383
}
8484

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

0 commit comments

Comments
 (0)