From be4b7b076199a25cef5f11a54d45830111a51e28 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Wed, 9 Apr 2025 10:22:28 +0700 Subject: [PATCH] fix(a11y): add aria-label to heatmap buttons (#59591) Co-authored-by: Naomi Carrigan --- client/src/components/profile/components/heat-map.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/profile/components/heat-map.tsx b/client/src/components/profile/components/heat-map.tsx index babb03bbe76..2cb8e7aa08f 100644 --- a/client/src/components/profile/components/heat-map.tsx +++ b/client/src/components/profile/components/heat-map.tsx @@ -155,6 +155,7 @@ class HeatMapInner extends Component { style={{ visibility: pages[this.state.pageIndex - 1] ? 'unset' : 'hidden' }} + aria-label={t('aria.previous-page')} > < @@ -167,6 +168,7 @@ class HeatMapInner extends Component { style={{ visibility: pages[this.state.pageIndex + 1] ? 'unset' : 'hidden' }} + aria-label={t('aria.next-page')} > >