The Open Standard for Generative UI
fix(a11y): add aria-labels to chart scroll buttons (#476)
Olabode Felix Akinyemia100d5b9a39a
diff --git a/packages/react-ui/src/components/Charts/shared/ScrollButtonsHorizontal/ScrollButtonsHorizontal.tsx b/packages/react-ui/src/components/Charts/shared/ScrollButtonsHorizontal/ScrollButtonsHorizontal.tsxindex ab0ab86c8..a8495818d 100644--- a/packages/react-ui/src/components/Charts/shared/ScrollButtonsHorizontal/ScrollButtonsHorizontal.tsx+++ b/packages/react-ui/src/components/Charts/shared/ScrollButtonsHorizontal/ScrollButtonsHorizontal.tsx@@ -41,6 +41,7 @@ export const ScrollButtonsHorizontal = React.memo(onClick={onScrollLeft}size="2-extra-small"disabled={!canScrollLeft}+ aria-label="Scroll left"/><IconButton@@ -56,6 +57,7 @@ export const ScrollButtonsHorizontal = React.memo(size="2-extra-small"onClick={onScrollRight}disabled={!canScrollRight}+ aria-label="Scroll right"/></div>);diff --git a/packages/react-ui/src/components/Charts/shared/ScrollButtonsVertical/ScrollButtonsVertical.tsx b/packages/react-ui/src/components/Charts/shared/ScrollButtonsVertical/ScrollButtonsVertical.tsxindex cd91b3527..406bbffc6 100644--- a/packages/react-ui/src/components/Charts/shared/ScrollButtonsVertical/ScrollButtonsVertical.tsx+++ b/packages/react-ui/src/components/Charts/shared/ScrollButtonsVertical/ScrollButtonsVertical.tsx@@ -41,6 +41,7 @@ export const ScrollButtonsVertical = React.memo(onClick={onScrollUp}size="extra-small"disabled={!canScrollUp}+ aria-label="Scroll up"/><IconButton@@ -56,6 +57,7 @@ export const ScrollButtonsVertical = React.memo(size="extra-small"onClick={onScrollDown}disabled={!canScrollDown}+ aria-label="Scroll down"/></div>);