Use aria-pressed on emoji picker
This commit is contained in:
parent
073b434004
commit
7dccaa0d1f
1 changed files with 2 additions and 0 deletions
|
@ -409,6 +409,7 @@ export const EmojiPicker = React.memo(
|
||||||
categories.map(cat =>
|
categories.map(cat =>
|
||||||
cat === 'recents' && firstRecent.length === 0 ? null : (
|
cat === 'recents' && firstRecent.length === 0 ? null : (
|
||||||
<button
|
<button
|
||||||
|
aria-pressed={selectedCategory === cat}
|
||||||
type="button"
|
type="button"
|
||||||
key={cat}
|
key={cat}
|
||||||
data-category={cat}
|
data-category={cat}
|
||||||
|
@ -504,6 +505,7 @@ export const EmojiPicker = React.memo(
|
||||||
<div className="module-emoji-picker__footer__skin-tones">
|
<div className="module-emoji-picker__footer__skin-tones">
|
||||||
{[0, 1, 2, 3, 4, 5].map(tone => (
|
{[0, 1, 2, 3, 4, 5].map(tone => (
|
||||||
<button
|
<button
|
||||||
|
aria-pressed={selectedTone === tone}
|
||||||
type="button"
|
type="button"
|
||||||
key={tone}
|
key={tone}
|
||||||
data-tone={tone}
|
data-tone={tone}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue