emoji-picker-react 4.9.1 → 4.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emoji-picker-react.cjs.development.js +5 -1
- package/dist/emoji-picker-react.cjs.development.js.map +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
- package/dist/emoji-picker-react.esm.js +5 -1
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/emoji/ClickableEmojiButton.tsx +7 -1
|
@@ -18838,10 +18838,14 @@ function ClickableEmojiButton(_ref) {
|
|
|
18838
18838
|
return createElement(Button, {
|
|
18839
18839
|
className: cx(styles$2.emoji, hidden && commonStyles.hidden, hiddenOnSearch && commonInteractionStyles.hiddenOnSearch, (_cx = {}, _cx[ClassNames.visible] = !hidden && !hiddenOnSearch, _cx), !!(hasVariations && showVariations) && styles$2.hasVariations, noBackground && styles$2.noBackground, className),
|
|
18840
18840
|
"data-unified": unified,
|
|
18841
|
-
"aria-label": emojiNames
|
|
18841
|
+
"aria-label": getAriaLabel(emojiNames),
|
|
18842
18842
|
"data-full-name": emojiNames
|
|
18843
18843
|
}, children);
|
|
18844
18844
|
}
|
|
18845
|
+
function getAriaLabel(emojiNames) {
|
|
18846
|
+
var _emojiNames$;
|
|
18847
|
+
return emojiNames[0].match('flag-') ? (_emojiNames$ = emojiNames[1]) != null ? _emojiNames$ : emojiNames[0] : emojiNames[0];
|
|
18848
|
+
}
|
|
18845
18849
|
var styles$2 = /*#__PURE__*/stylesheet.create({
|
|
18846
18850
|
emoji: {
|
|
18847
18851
|
'.': ClassNames.emoji,
|