Skip to content

Accessibility violation | aria-label attribute into a generic role  #907

Closed
@thomas-siozos

Description

@thomas-siozos

Describe the bug
The input element with data-test="dp-input" has an "aria-label" attribute (aria-label="Datepicker input") which is not allowed on a generic role.
That leads to an accessibility violation.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the date picker.
  2. Run an a11y tool in your browser, I did it with this one.

Screenshots
You can run the test even in the examples in the documentation.
image
image

Desktop & mobile (please complete the following information):

  • Browser chrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions