-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom colors #11
Comments
It looks like |
johnhooks
added a commit
that referenced
this issue
May 27, 2024
This commit adds block supports for color customization. The block editor color palette is used to select the colors. The colors are stored in the block attributes, though are applied using inline styles of custom CSS properties. This allows the custom colors to be applied to the shadow DOM of the `media-chrome` web components. Fixes: #11
johnhooks
added a commit
that referenced
this issue
Jun 1, 2024
* feat: support custom colors for audio player This commit adds block supports for color customization. The block editor color palette is used to select the colors. The colors are stored in the block attributes, though are applied using inline styles of custom CSS properties. This allows the custom colors to be applied to the shadow DOM of the `media-chrome` web components. Fixes: #11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
The default look of the audio player is very basic.
Solution
Add block editor controls to customize the colors of the audio player.
The default should be the theme colors, with the ability to override with a custom selection. They should be global attributes for the player blocks, and used site wide.
Possible issues
The
media-chrome
library uses custom properties for most customizations. This makes it tricky to use the default blocks supports for color, because they are assigned asbackground
andcolor
styles on the block itself, and we need to assign them to custom properties.Todo
Relates to #10
The text was updated successfully, but these errors were encountered: