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 5a4bba7 commit a43744eCopy full SHA for a43744e
src/getNodeAccessibilityData/getRole.ts
@@ -4,19 +4,12 @@ import { isElement } from "../isElement";
4
5
export const presentationRoles = new Set(["presentation", "none"]);
6
7
-// TODO: is this used?
8
export const synonymRolesMap: Record<string, string> = {
9
img: "image",
10
presentation: "none",
11
directory: "list",
12
};
13
14
15
-export const reverseSynonymRolesMap: Record<string, string> =
16
- Object.fromEntries(
17
- Object.entries(synonymRolesMap).map(([key, value]) => [value, key])
18
- );
19
-
20
const allowedNonAbstractRoles = new Set(ALL_ROLES);
21
22
const rolesRequiringName = new Set(["form", "region"]);
0 commit comments