Accessibility
-
Hi,
Love the plugin and appreciate that you have only extended the core block. A couple of thoughts. Right now, the video is not accessible. There’s no way to navigate or interact with it since it’s just an image and a div. One simple change would be to change the div to a button ( I know this will require a bit of extra CSS), that way, someone using a screen reader and keyboard can trigger the video. It would also be good to provide a label for the button, either via an aria-label or a span with screen-reader-text class.
Current Button<div class="play-button"></div>
Updated Button
<button class="play-button" aria-label="Play Video"></button> <button class="play-button"><span class="screen-reader-text">Play Video</span></button>
In an ideal world it would be great to extend the block to add a custom field to the settings for a video title ( avoid the need for api calls ) and then that could be appended to the “Play Video: …. ” text.
- The topic ‘Accessibility’ is closed to new replies.