Skip to content

Commit 962d23d

Browse files
committed
Added the role="application" to the chart wrapper
1 parent 6253be8 commit 962d23d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/AutoVizuA11y.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export const AutoVizuA11y = ({
391391
);
392392

393393
return (
394-
<>
394+
<div className={constants.AUTOVIZUA11Y_CLASSES.a11yWrapper} role="application">
395395
<div
396396
ref={chartRef}
397397
onKeyDown={handleOnKeyDown}
@@ -409,6 +409,6 @@ export const AutoVizuA11y = ({
409409
setIsShortcutGuideOpen={setIsShortcutGuideOpen}
410410
t={t}
411411
/>
412-
</>
412+
</div>
413413
);
414414
};

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const FOCUS_CLASS = "focused";
2121
export const ALERT_DURATION = 1000;
2222
export const AUTOVIZUA11Y_CLASSES = {
2323
alertDiv: "a11y_alert visually-hidden",
24+
a11yWrapper: "a11y_wrapper",
2425
a11yChart: "a11y_chart",
2526
a11yDesc: "a11y_desc visually-hidden",
2627
a11yNavGuide: "a11y_nav_guide",

0 commit comments

Comments
 (0)