Skip to content

Lighthouse and axe-core extension flagging buttons for missing labels even if it is not focusable #4888

@Shivam93937

Description

@Shivam93937

Product

axe-core

Product Version

No response

Latest Version

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

Issue Description

Expectation

As per https://dequeuniversity.com/rules/axe/4.10/button-name, I would expect that buttons with tabindex=-1 should not be flagged for missing aria labels or names.

Actual

Buttons which are not focusable are still flagged by lighthouse and axe-core extension

How to Reproduce

<button
role="none"
mat-button
class="carousel-button carousel-button-next"
(click)="moveRight($event)"
[class.hidden]="!showRightCarouselButton"
tabindex="-1"

abc

Additional context

Any thing else we should know about the issue?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    ungroomedTicket needs a maintainer to prioritize and label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions