emoji-picker-react 4.9.1 → 4.9.3-rc.1

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.
@@ -18839,10 +18839,14 @@ function ClickableEmojiButton(_ref) {
18839
18839
  return React.createElement(Button, {
18840
18840
  className: flairup.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),
18841
18841
  "data-unified": unified,
18842
- "aria-label": emojiNames[0],
18842
+ "aria-label": getAriaLabel(emojiNames),
18843
18843
  "data-full-name": emojiNames
18844
18844
  }, children);
18845
18845
  }
18846
+ function getAriaLabel(emojiNames) {
18847
+ var _emojiNames$;
18848
+ return emojiNames[0].match('flag-') ? (_emojiNames$ = emojiNames[1]) != null ? _emojiNames$ : emojiNames[0] : emojiNames[0];
18849
+ }
18846
18850
  var styles$2 = /*#__PURE__*/stylesheet.create({
18847
18851
  emoji: {
18848
18852
  '.': ClassNames.emoji,