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')
}) |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
In my globals file, there are CSS variables defined in
:root
as follows:These are getting picked up by Media Chrome and applied to the buttons. I can't find an effective way to avoid this.
Beta Was this translation helpful? Give feedback.
All reactions