Replies: 2 comments 1 reply
Workaround:As of now, I'm manually overriding the Worst part though is, I have to do a useEffect(() => {
// Directly setting the attribute doesn't work, because
// it gets overwritten by the media-chrome library.
playButtonRef.current?.setAttribute('role', 'generic')
muteButtonRef.current?.setAttribute('role', 'generic')
}) |
0 replies
|
thanks for the feedback! which CSS vars are causing that? Media Chrome doesn't have such generic CSS vars like note that it's normal that CSS vars become available to all child elements even in the shadow DOM. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In my globals file, there are CSS variables defined in
:rootas follows:These are getting picked up by Media Chrome and applied to the buttons. I can't find an effective way to avoid this.
All reactions