From 2d79dd53606dff50de324f2f715e9d295b2bd69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E7=9E=BB=20Luci?= Date: Fri, 5 Aug 2022 02:23:50 +0800 Subject: [PATCH] chore: fix aria-label typo (#2762) --- .../lexical-playground/src/plugins/ToolbarPlugin/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx b/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx index 34cca9e14be..2bff536c8b1 100644 --- a/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx +++ b/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx @@ -844,6 +844,11 @@ function FontDropDown({ [editor, style], ); + const buttonAriaLabel = + style === 'font-family' + ? 'Formatting options for font family' + : 'Formatting options for font size'; + return ( + buttonAriaLabel={buttonAriaLabel}> {(style === 'font-family' ? FONT_FAMILY_OPTIONS : FONT_SIZE_OPTIONS).map( ([option, text]) => (