Getbeans / Beans

Beans WordPress Theme Framework. The default branch is set to development, please switch to the master branch for production.
https://www.getbeans.io
Other
392 stars 61 forks source link

Gutenberg: Audio control not visible on the frontend. #348

Open paaljoachim opened 6 years ago

paaljoachim commented 6 years ago

It is in relation to this issue at the Gutenberg repository: https://github.com/WordPress/gutenberg/issues/11447

I just tested Twenty Seventeen and notice the audio controls showing up there. It is not showing up in the Beans child theme I am using.

christophherr commented 6 years ago

Looks like we need to add an explicit height to audio maybe something like

.wp-block-audio audio {
     height: 50px;
}

And if you want it centered,

.wp-block-audio {
    text-align: center;
}
paaljoachim commented 6 years ago

I am testing it out. Adding the height makes the player visible.

I also noticed doing an inspect element that this css is already in place: audio, canvas, img, svg, video { max-width: 100%; height: auto; box-sizing: border-box; }

Perhaps we need to add a min-height: 50px; to the original Beans CSS code located here:

screen shot 2018-11-06 at 14 48 08

uikit-compiler


I also added the

.wp-block-audio {
    text-align: center;
}

It now looks like this: screen shot 2018-11-06 at 14 53 39