mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 15:29:32 +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"
|
role="button"
|
||||||
onKeyDown={toggleSidebar}
|
onKeyDown={toggleSidebar}
|
||||||
onClick={toggleSidebar}>
|
onClick={toggleSidebar}>
|
||||||
<IconArrow />
|
<IconArrow aria-label="Expand sidebar" />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -277,7 +277,10 @@ function DocSidebar({
|
||||||
styles.collapseSidebarButton,
|
styles.collapseSidebarButton,
|
||||||
)}
|
)}
|
||||||
onClick={onCollapse}>
|
onClick={onCollapse}>
|
||||||
<IconArrow className={styles.collapseSidebarButtonIcon} />
|
<IconArrow
|
||||||
|
className={styles.collapseSidebarButtonIcon}
|
||||||
|
aria-label="Collapse sidebar"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue