From 6bffeb3872ddcefbcc31cbc635524cb6ac1165fe Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Mon, 27 Feb 2023 15:25:05 -0500 Subject: [PATCH] Use element_interactivity function for aria-activedescendant-has-tabindex --- src/compiler/compile/nodes/Element.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index 702f52f3a9..3f9a054675 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -549,7 +549,9 @@ export default class Element extends Node { } // aria-activedescendant-has-tabindex - if (name === 'aria-activedescendant' && !is_interactive_element(this.name, attribute_map) && !attribute_map.has('tabindex')) { + if (name === 'aria-activedescendant' + && element_interactivity(this.name, attribute_map) !== ElementInteractivity.Interactive + && !attribute_map.has('tabindex')) { component.warn(attribute, compiler_warnings.a11y_aria_activedescendant_has_tabindex); } }