From 7c9abe1f440bbb0d161532ecc1b41c05260e5038 Mon Sep 17 00:00:00 2001 From: LuLaValva Date: Tue, 19 Nov 2024 08:49:05 -0800 Subject: [PATCH] fix(axe-core): remove false positive --- .../src/service/html/axe-rules/rule-exceptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/language-server/src/service/html/axe-rules/rule-exceptions.ts b/packages/language-server/src/service/html/axe-rules/rule-exceptions.ts index 746563ae..e5b897bc 100644 --- a/packages/language-server/src/service/html/axe-rules/rule-exceptions.ts +++ b/packages/language-server/src/service/html/axe-rules/rule-exceptions.ts @@ -72,7 +72,7 @@ export const ruleExceptions: { [id in Whitelist]: Exceptions } = { [r.aria.ariaInputFieldName]: { unknownBody: true, attrSpread: true }, [r.aria.ariaMeterName]: { unknownBody: true, attrSpread: true }, [r.aria.ariaProgressbarName]: { unknownBody: true, attrSpread: true }, - [r.aria.ariaProhibitedAttr]: {}, + [r.aria.ariaProhibitedAttr]: { dynamicAttrs: ["role"] }, [r.aria.ariaRequiredAttr]: { attrSpread: true }, [r.aria.ariaRequiredChildren]: { unknownBody: true }, [r.aria.ariaRoles]: { dynamicAttrs: ["role"] },