Fix button title for emoji search close button
This commit is contained in:
parent
bedfbbca5f
commit
078b176ec6
2 changed files with 9 additions and 1 deletions
|
@ -4942,6 +4942,10 @@
|
||||||
"message": "Search Emoji",
|
"message": "Search Emoji",
|
||||||
"description": "(deleted 03/29/2023) Shown as a placeholder inside the emoji picker search field."
|
"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": {
|
"icu:EmojiPicker--search-placeholder": {
|
||||||
"messageformat": "Search Emoji",
|
"messageformat": "Search Emoji",
|
||||||
"description": "Shown as a placeholder inside the emoji picker search field."
|
"description": "Shown as a placeholder inside the emoji picker search field."
|
||||||
|
|
|
@ -381,7 +381,11 @@ export const EmojiPicker = React.memo(
|
||||||
handleToggleSearch(event);
|
handleToggleSearch(event);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
title={i18n('icu:EmojiPicker--search-placeholder')}
|
title={
|
||||||
|
searchMode
|
||||||
|
? i18n('icu:EmojiPicker--search-close')
|
||||||
|
: i18n('icu:EmojiPicker--search-placeholder')
|
||||||
|
}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'module-emoji-picker__button',
|
'module-emoji-picker__button',
|
||||||
'module-emoji-picker__button--icon',
|
'module-emoji-picker__button--icon',
|
||||||
|
|
Loading…
Reference in a new issue