Use aria-pressed on emoji picker

This commit is contained in:
Josh Perez 2023-05-04 19:41:45 -04:00
parent 073b434004
commit 7dccaa0d1f

View file

@ -409,6 +409,7 @@ export const EmojiPicker = React.memo(
categories.map(cat =>
cat === 'recents' && firstRecent.length === 0 ? null : (
<button
aria-pressed={selectedCategory === cat}
type="button"
key={cat}
data-category={cat}
@ -504,6 +505,7 @@ export const EmojiPicker = React.memo(
<div className="module-emoji-picker__footer__skin-tones">
{[0, 1, 2, 3, 4, 5].map(tone => (
<button
aria-pressed={selectedTone === tone}
type="button"
key={tone}
data-tone={tone}