mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 23:08:54 +02:00
fix(v2): fix accessibility issue with IconArrow (#4011)
This commit is contained in:
parent
827de9a840
commit
2ba55b0f19
2 changed files with 5 additions and 2 deletions
|
@ -99,7 +99,7 @@ function DocPageContent({
|
|||
role="button"
|
||||
onKeyDown={toggleSidebar}
|
||||
onClick={toggleSidebar}>
|
||||
<IconArrow />
|
||||
<IconArrow aria-label="Expand sidebar" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
@ -277,7 +277,10 @@ function DocSidebar({
|
|||
styles.collapseSidebarButton,
|
||||
)}
|
||||
onClick={onCollapse}>
|
||||
<IconArrow className={styles.collapseSidebarButtonIcon} />
|
||||
<IconArrow
|
||||
className={styles.collapseSidebarButtonIcon}
|
||||
aria-label="Collapse sidebar"
|
||||
/>
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue