Skip to content

ARIA live region triggers region rule violation #1992

Closed
@madalynrose

Description

Description:

Gatsby updated navigation to announce when client-side routes are changed. This is accomplished through an ARIA live region with role="alert" and aria-live="assertive". Based on #1073 this should not cause any accessibility violations. However, technologies that rely on axe-core, including cypress-axe and the aXe browser extension are reporting a violation on the element. An issue in Gatsby was opened but I believe this is an issue with aXe itself.

Expectation:

No accessibility violations are found

Actual:

aXe reports that the region rule "Some page content is not contained by landmarks" has been violated after navigation has occurred

Motivation:

This live region is intended to increase the accessibility of client-side applications. Adding a landmark to this live region does not make semantic sense because it does not have user impact. This rule should allow this element to exist outside of landmarks.

axe-core version: 3.4.0

This can be reproduced on Gatsby's pages by running the aXe extension.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    fixBug fixesrulesIssue or false result from an axe-core rule

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions