Block audit: Video #8299
Labels
[Block] Video
Affects the Video Block
[Feature] Blocks
Overall functionality of blocks
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Block audit
Note: We'll be doing these audits in waves and editing this as we work through the blocks, so this text will be updated and fleshed out as we progress. See the full picture here.
Overview
Name: Video
Description: Embed a video file and a simple video player.
Category: Common blocks
CSS class:
wp-block-video
in frontend or editorCan be converted to: file
States
Empty:
Selected:
Unselected:
Placeholder:
Error:
Primary (toolbar) settings
Align: left, centre, right, edit
For captions: bold, italic, strikethrough, link
Secondary (sidebar) settings
Audio Settings: Autoplay, Loop, Preload
Advanced: Additional CSS Class
Frontend appearance
Gutenberg starter theme:
Atomic Blocks
twentyseventeen:
twentyten:
Documentation
No devdocs in https://github.com/WordPress/gutenberg/tree/master/core-blocks/image
Suggestion for user-facing docs:
Performance on mobile
Accessibility
Bugs/errors
Individual issues will be opened for these soon
Same float issues as image block. (Left- or right-aligning block-level elements leads to unexpected behaviour #8293)
Converting a formatted caption to a file creates some weird JS [object Object]-y-ness. (Converting from an audio block with a formatted caption to a file block results in an incorrect file link #7626)
Suggestions
Individual issues will be opened for these soon
Error states could be improved across the board. (Video block: consolidate error styling #8408)
The placeholder state should indicate that it's a video file—otherwise, it can just look like an image.
Empty state could be improved from a consistency standpoint. (Improve consistency of empty states for media blocks #8409)
The text was updated successfully, but these errors were encountered: