Skip to content

ScriptYouTubePlayer is not accessible via keyboard navigation (Tab/Enter keys) #797

Description

@maximepvrt

🐛 The bug

I've noticed that it is currently impossible to trigger the video loading using only keyboard navigation. When I use the Tab key, I cannot focus on the player placeholder, and pressing Enter or Space does not start the video.

To be honest, it is not clear to me how to resolve this accessibility issue cleanly with the current implementation. Should we wrap the template in a native HTML , or is there a built-in way to pass keyboard events down to the player trigger?

🛠️ To reproduce

https://scripts.nuxt.com/scripts/youtube-player#demo

🌈 Expected behavior

x

ℹ️ Additional context

No response

Activity

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

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