From 7b562202eb0ec91b8ee885a7ba91ec0e54795d1c Mon Sep 17 00:00:00 2001 From: Wesley Luyten Date: Thu, 7 Dec 2023 07:20:09 -0600 Subject: [PATCH] fix: prevent CSS color being overridden internally --- packages/mux-player/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mux-player/src/index.ts b/packages/mux-player/src/index.ts index 4c3cac0fa..3b984404d 100644 --- a/packages/mux-player/src/index.ts +++ b/packages/mux-player/src/index.ts @@ -143,9 +143,9 @@ function getProps(el: MuxPlayerElement, state?: any): MuxTemplateProps { defaultStreamType: el.defaultStreamType, targetLiveWindow: el.getAttribute(MuxVideoAttributes.TARGET_LIVE_WINDOW), streamType: getStreamTypeFromAttr(el.getAttribute(MuxVideoAttributes.STREAM_TYPE)), - primaryColor: el.primaryColor, - secondaryColor: el.secondaryColor, - accentColor: el.accentColor, + primaryColor: el.getAttribute(PlayerAttributes.PRIMARY_COLOR), + secondaryColor: el.getAttribute(PlayerAttributes.SECONDARY_COLOR), + accentColor: el.getAttribute(PlayerAttributes.ACCENT_COLOR), forwardSeekOffset: el.forwardSeekOffset, backwardSeekOffset: el.backwardSeekOffset, defaultHiddenCaptions: el.defaultHiddenCaptions,