Skip to content

aria-required-parent: Improve failure messaging when 'menuitem', 'menuitemcheckbox' and 'menuitemradio' are in a 'group' #2904

@iamrafan

Description

@iamrafan

When menuitem, menuitemcheckbox and menuitemradio are in a group that is not contained by a menu or menubar , the fix message(shown below) mentions group as one of the required parents though it is already a parent

Fix the following:
Required ARIA parents role not present: menu, menubar, group

Demo link: https://codepen.io/iamrafan/full/eYgaxrb

image

Product: axe-core

Expectation: Not suggest group as one of the required parents

Actual: The fix message mentions group as one of the required parents though it is already a parent


axe-core version: 4.2.0-canary.43394bc
axe-coconut: 4.8.6.11818 build 7ad6fe9b86

Metadata

Metadata

Assignees

No one assigned

    Labels

    prA pr has been created for the issuerule metadataIssues in the rule metadata code (lib/rules)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions