discourse/plugins/discourse-lazy-videos
Kris 18f9bf787a
A11Y: add role to video thumbnail button (#35326)
We markup video thumbnail `div`s in posts with `tabindex="0"` which
makes them tabbable, but without a role it's unclear they're
interactive.

Since on click or keypress these play the video, it should have
`role="button"` as well as an an accessible label.

I also noticed that `onKeyPress` was added here but isn't wired up to
anything... so I've included that and also added the space key as a
trigger in addition to enter.
2025-10-14 11:51:51 -04:00
..
assets A11Y: add role to video thumbnail button (#35326) 2025-10-14 11:51:51 -04:00
config A11Y: add role to video thumbnail button (#35326) 2025-10-14 11:51:51 -04:00
db/migrate DEV: Promote historic post_deploy migrations (#25334) 2024-01-19 14:47:42 +00:00
lib/discourse_lazy_videos DEV: Remove unnecessary freeze calls (#35064) 2025-09-30 15:36:16 +02:00
spec DEV: Remove remnant puts (#34716) 2025-09-04 11:12:38 +08:00
test/javascripts/components DEV: Convert more tests to gjs/template tag (#34259) 2025-08-12 22:44:48 +02:00
plugin.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
README.md

Discourse Lazy Videos

Adds lazy loading support for embedded videos

Supported providers

  • YouTube
  • Vimeo

Experimental

  • TikTok