Fix button title for emoji search close button

This commit is contained in:
Josh Perez 2023-04-25 14:01:21 -04:00 committed by GitHub
parent bedfbbca5f
commit 078b176ec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -4942,6 +4942,10 @@
"message": "Search Emoji",
"description": "(deleted 03/29/2023) Shown as a placeholder inside the emoji picker search field."
},
"icu:EmojiPicker--search-close": {
"messageformat": "Close emoji search",
"description": "Button title to cancel the emoji search."
},
"icu:EmojiPicker--search-placeholder": {
"messageformat": "Search Emoji",
"description": "Shown as a placeholder inside the emoji picker search field."

View file

@ -381,7 +381,11 @@ export const EmojiPicker = React.memo(
handleToggleSearch(event);
}
}}
title={i18n('icu:EmojiPicker--search-placeholder')}
title={
searchMode
? i18n('icu:EmojiPicker--search-close')
: i18n('icu:EmojiPicker--search-placeholder')
}
className={classNames(
'module-emoji-picker__button',
'module-emoji-picker__button--icon',