fix(v2): fix accessibility issue with IconArrow (#4011)

This commit is contained in:
Sean Campbell 2021-01-10 01:09:54 -05:00 committed by GitHub
parent 827de9a840
commit 2ba55b0f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -99,7 +99,7 @@ function DocPageContent({
role="button"
onKeyDown={toggleSidebar}
onClick={toggleSidebar}>
<IconArrow />
<IconArrow aria-label="Expand sidebar" />
</div>
)}
</div>

View file

@ -277,7 +277,10 @@ function DocSidebar({
styles.collapseSidebarButton,
)}
onClick={onCollapse}>
<IconArrow className={styles.collapseSidebarButtonIcon} />
<IconArrow
className={styles.collapseSidebarButtonIcon}
aria-label="Collapse sidebar"
/>
</button>
)}
</div>