mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 04:07:14 +08:00
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. |
||
|---|---|---|
| .. | ||
| assets | ||
| config | ||
| db/migrate | ||
| lib/discourse_lazy_videos | ||
| spec | ||
| test/javascripts/components | ||
| plugin.rb | ||
| README.md | ||
Discourse Lazy Videos
Adds lazy loading support for embedded videos
Supported providers
- YouTube
- Vimeo
Experimental
- TikTok