Skip to content

False positive: 'color-contrast' rule fails disabled control's label added using "aria-describedby" attribute #4406

Open
@adrianaferrugento

Description

@adrianaferrugento

Product

axe-core

Product Version

4.9.0

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Same as 2090, but here the label is added using aria-describedby attribute

Per WCAG 1.4.3 the text that is part of an inactive user interface component do not have contrast requirement.

Incidental: Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.

Expectation

'color-contrast' would not fail for labels related to disabled controls

Actual

'color-contrast' rule fails for a label( added using aria-describedby attribute) of a disabled control

How to Reproduce

Screenshot 2024-04-11 at 16 28 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    color contrastColor contrast issuesfixBug fixesrulesIssue or false result from an axe-core rule

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions