Skip to content

[Accessibility] Some elements are not selectable with keyboard navigation #398

@helloyanis

Description

@helloyanis

The following elements :

  • mdui-list-item
  • mdui-navigation-bar-item
  • mdui-navigation-rail-item

Don't fire an onClick event when selected through keyboard navigation (navigating wih tab keys and pressing enter or space to select)

Selecting them with the mouse fires the event correctly.

To test, do something like

<mdui-list-item onclick="alert('It works!')">Hello</mdui-list-item>
document.querySelector("mdui-list-item").addEventListener("click",()=>{alert("It goes to JavaScript!")})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions