We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1938d7b commit 964e5cdCopy full SHA for 964e5cd
2 files changed
vis/js/templates/Geomap/HeightContainer/config.ts
@@ -0,0 +1,4 @@
1
+export const ACCESSABILITY_ATTRIBUTES = {
2
+ "role": "region",
3
+ "aria-label": "Geo Map of aquatic mesocosm facilities",
4
+};
vis/js/templates/Geomap/HeightContainer/index.tsx
@@ -2,9 +2,14 @@ import { FC, PropsWithChildren } from "react";
import { useSelector } from "react-redux";
import { getMapHeight } from "./selectors";
5
+import { ACCESSABILITY_ATTRIBUTES } from "./config";
6
7
export const HeightContainer: FC<PropsWithChildren> = ({ children }) => {
8
const height = useSelector(getMapHeight);
9
- return <div style={{ height }}>{children}</div>;
10
+ return (
11
+ <div style={{ height }} {...ACCESSABILITY_ATTRIBUTES}>
12
+ {children}
13
+ </div>
14
+ );
15
};
0 commit comments