Replies: 2 comments 6 replies
-
Thanks for the report @ocean-rh. I'm going to convert this to a discussion until we prioritize this for design and implementation. Some background on the color system: The color-palette attribute takes a set list of palette names, so adding a new theme to player would mean adding a new theme to every other component. As well, You can try this out by visiting https://ux.redhat.com/elements/audio-player/demo/customization/ and running this snippet in the browser's dev tools: $('main').style.backgroundColor = 'red';
$('rh-audio-player').style.setProperty('--rh-audio-player-background-color', 'transparent'); |
Beta Was this translation helpful? Give feedback.
-
Closing because rh-audio-player already supports OP's requirement and because we're not planning to add a one-off attribute, per our principle of preferring composition of primitive features to multiplying one-offs. |
Beta Was this translation helpful? Give feedback.
-
Description
should have an option for a transparent background that could then pick up the background color of the div it lives in. And that would need to be combined with a light or dark theme for the controls in case the background color is dark.
Suggested solution
I would like another theme option built into the player component.
Example API
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions