Skip to content

Playlist: Use media control icons - #79405

Closed
scruffian wants to merge 1 commit into
trunkfrom
scruffian/use-playlist-icons
Closed

scruffian wants to merge 1 commit into
trunkfrom
scruffian/use-playlist-icons

Conversation

@scruffian

Copy link
Copy Markdown
Contributor

What?

Follow up to #78987.

Uses the new media-control icon artwork for the Playlist block waveform play/pause button.

Why?

This keeps the Playlist block controls visually aligned with the shared WordPress media-control icons.

How?

The waveform utility swaps the player library's generated button markup to the new play and pause SVGs while preserving contrast styling, labels, event cleanup, and editor/frontend reuse.

Testing Instructions

  • npm run test:unit packages/block-library/src/utils/test/waveform-utils.js
  • npm run lint:js -- packages/block-library/src/utils/waveform-utils.js packages/block-library/src/utils/test/waveform-utils.js
  • Insert a Playlist block and confirm the waveform button shows play, switches to pause during playback, and switches back when paused or ended.

Testing Instructions for Keyboard

Tab to the playlist waveform button, press Enter or Space to play and pause, and confirm the icon and accessible label update.

Screenshots or screencast

Not included.

Use of AI Tools

OpenAI Codex helped implement and validate this change under human direction.

@github-actions github-actions Bot added the [Package] Block library /packages/block-library label Jun 22, 2026
@scruffian scruffian closed this Jun 22, 2026
@github-actions

Copy link
Copy Markdown

Size Change: +349 B (0%)

Total Size: 7.51 MB

📦 View Changed
Filename Size Change
build/modules/block-library/playlist/view.min.js 11.1 kB +147 B (+1.34%)
build/scripts/block-library/index.min.js 324 kB +202 B (+0.06%)

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block library /packages/block-library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant