File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to
1010
1111- ♿(frontend) improve accessibility:
1212 - ♿(frontend) add skip to content button for keyboard accessibility #1624
13+ - ♿(frontend) fix toggle panel button a11y labels #1634
1314
1415### Fixed
1516
@@ -22,8 +23,6 @@ and this project adheres to
2223- ✨ Add comments feature to the editor #1330
2324- ✨(backend) Comments on text editor #1330
2425- ✨(frontend) link to create new doc #1574
25- - ♿(frontend) improve accessibility:
26- - ♿(frontend) add skip to content button for keyboard accessibility #1624
2726
2827### Fixed
2928
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ export const ButtonTogglePanel = () => {
1212 < Button
1313 size = "medium"
1414 onClick = { ( ) => togglePanel ( ) }
15- aria-label = { t ( 'Open the header menu' ) }
15+ aria-label = { t (
16+ isPanelOpen ? 'Close the header menu' : 'Open the header menu' ,
17+ ) }
18+ aria-expanded = { isPanelOpen }
1619 variant = "tertiary"
1720 icon = {
1821 < Icon $withThemeInherited iconName = { isPanelOpen ? 'close' : 'menu' } />
You can’t perform that action at this time.
0 commit comments