ARIA attributes must be used as specified for the element's role
Moderatearia-conditional-attr
What it checks
Ensure ARIA attributes are used as described in the specification of the element's role
How to fix it
Review and fix this accessibility issue following WCAG guidelines
WCAG
Success criteria 4.1.2. See the WCAG 2.2 quick reference.
More detail: Deque University's page on this rule.