Skip to content

Commit 20ab2ca

Browse files
authored
Merge pull request #555 from devgeniem/TMS-1230
TMS-1230: Allow audio-block
2 parents 1151bb1 + 1d3b4b2 commit 20ab2ca

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

CHANGELOG.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
- TMS-1230: Allow audio-block
1011
- TMS-1226: Change focus order on events-search form
1112

1213
## [1.69.0] - 2025-11-18

assets/styles/blocks/_audio.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.wp-block-audio {
2+
audio {
3+
&::-webkit-media-controls-panel{
4+
background-color: #f1eeeb;
5+
}
6+
}
7+
}

assets/styles/blocks/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
* Copyright (c) 2021. Geniem Oy
33
*/
44

5+
@import "audio";
56
@import "custom";

lib/BlocksController.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ private function add_block_data_to_debugger( $data, GeniemBlock $block ) {
101101
*/
102102
private function allowed_block_types( $allowed_blocks, $context ) {
103103
$blocks = [
104+
'core/audio' => [
105+
'post_types' => [
106+
PostType\Page::SLUG,
107+
PostType\Post::SLUG,
108+
PostType\BlogArticle::SLUG,
109+
],
110+
],
104111
'core/block' => [],
105112
'core/template' => [],
106113
'core/list' => [

0 commit comments

Comments
 (0)