mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(a11y): add aria-label to heatmap buttons (#59591)
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
@@ -155,6 +155,7 @@ class HeatMapInner extends Component<HeatMapInnerProps, HeatMapInnerState> {
|
||||
style={{
|
||||
visibility: pages[this.state.pageIndex - 1] ? 'unset' : 'hidden'
|
||||
}}
|
||||
aria-label={t('aria.previous-page')}
|
||||
>
|
||||
<
|
||||
</button>
|
||||
@@ -167,6 +168,7 @@ class HeatMapInner extends Component<HeatMapInnerProps, HeatMapInnerState> {
|
||||
style={{
|
||||
visibility: pages[this.state.pageIndex + 1] ? 'unset' : 'hidden'
|
||||
}}
|
||||
aria-label={t('aria.next-page')}
|
||||
>
|
||||
>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user