Skip to content

Add color and other style options to the Audio Block #56837

@docpop

Description

@docpop

What problem does this address?

There is no option for customizing the Audio Block. It should have style options, like other blocks.

What is your proposed solution?

The proposal you’ll see below aims to:

  1. Work with each theme’s default color scheme and typography styles
  2. Allow audio title and audio description customization
  3. Let writers add a custom cover for each

Here's the prototype:

audio-block-lettre.mp4

Based on feedback, here's a slightly adjusted version of that:

audio block test

This one uses a completely vanilla/unstyled audio player, similar to how the video block uses an unstyled video player. Title, description, and poster image, are taken from the media file's metadata in the media library, though can also be edited in the inspector.

Figma.

Props @docpop @crisbusquets for the work.

Issue updated Jun 20th.

Previous version of this issue

What problem does this address?

There is no option for customizing the Audio Block in WordPress. Most blocks offer the ability to customize that block by changing it's color, or the color of the font, or rounding the edges, or aligning within the block, but these are missing from the Audio Block's style tab.

What is your proposed solution?

Add the following options to the Audio Block and put them in the block's Style Tab.

  • Change the background color of the block
  • Change the color of the font
  • Select the types of corners you'd like the block to have (rounded or default)
  • Modify the text using the same typography options in a normal Paragraph Block

As an example, I've created a mockup of how the Audio Block Styles tab could appear:
mockup-of-audio-block-options-style

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DevReady for, and needs developer efforts[Block] AudioAffects the Audio Block[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions