MCPcopy Create free account
hub / github.com/microsoft/SandDance / ariaItemAttributes

Function ariaItemAttributes

docs/app/js/sanddance-app.js:123944–123954  ·  view source on GitHub ↗
(emit13, item)

Source from the content-addressed store, hash-verified

123942 description: ARIA_LABEL
123943};
123944function ariaItemAttributes(emit13, item) {
123945 const hide = item.aria === false;
123946 emit13(ARIA_HIDDEN, hide || undefined);
123947 if (hide || item.description == null) for(const prop in AriaEncode)emit13(AriaEncode[prop], undefined);
123948 else {
123949 const type20 = item.mark.marktype;
123950 emit13(ARIA_LABEL, item.description);
123951 emit13(ARIA_ROLE, item.ariaRole || (type20 === "group" ? GRAPHICS_OBJECT : GRAPHICS_SYMBOL));
123952 emit13(ARIA_ROLEDESCRIPTION, item.ariaRoleDescription || `${type20} mark`);
123953 }
123954}
123955function ariaMarkAttributes(mark) {
123956 return mark.aria === false ? {
123957 [ARIA_HIDDEN]: true

Callers 1

_updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected