Skip to content

Commit

Permalink
chore: fix aria-label typo (facebook#2762)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciNyan authored Aug 4, 2022
1 parent 7bb6146 commit 2d79dd5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -844,14 +844,19 @@ function FontDropDown({
[editor, style],
);

const buttonAriaLabel =
style === 'font-family'
? 'Formatting options for font family'
: 'Formatting options for font size';

return (
<DropDown
buttonClassName={'toolbar-item ' + style}
buttonLabel={value}
buttonIconClassName={
style === 'font-family' ? 'icon block-type font-family' : ''
}
buttonAriaLabel="Formatting options for font family">
buttonAriaLabel={buttonAriaLabel}>
{(style === 'font-family' ? FONT_FAMILY_OPTIONS : FONT_SIZE_OPTIONS).map(
([option, text]) => (
<DropDownItem
Expand Down

0 comments on commit 2d79dd5

Please sign in to comment.