🎥 Make videos programmatically with React
Elements: Prevent inherited text colors (#10633)
Igor Samokhovets1c024f478f20
diff --git a/packages/docs/elements/contributing.mdx b/packages/docs/elements/contributing.mdxindex 3ba2fc1add..f5327a1fe5 100644--- a/packages/docs/elements/contributing.mdx+++ b/packages/docs/elements/contributing.mdx@@ -73,6 +73,7 @@ The caption Elements show the distinction: moving a pill between words, popping- Keep the implementation self-contained, using HTML, CSS, and React where possible.- Avoid global styles, layout side effects, and fullscreen assumptions unless the Element is a background.+- Set explicit defaults for inherited visual properties. In particular, set text colors on the Element root or the nearest visual surface instead of relying on browser or host-page defaults. Ensure every use of `currentColor` resolves from an ancestor with an explicit color so the Element looks the same under light and dark host themes.- Use stable remote asset URLs and Google Fonts for non-websafe fonts.- Avoid project-specific branding or footage, and make colors easy to change.- Minimize dependencies. [Remotion Effects](/docs/effects) are an acceptable exception.diff --git a/packages/docs/elements/maps/watercolor-map/watercolor-map.tsx b/packages/docs/elements/maps/watercolor-map/watercolor-map.tsxindex 138e6a8b46..d4b31f146c 100644--- a/packages/docs/elements/maps/watercolor-map/watercolor-map.tsx+++ b/packages/docs/elements/maps/watercolor-map/watercolor-map.tsx@@ -348,6 +348,7 @@ const WatercolorMapContent: React.FC<{backgroundColor: 'white',borderRadius: 32,boxShadow: '0 0 30px white',+ color: '#182026',fontFamily,fontSize: 40,fontWeight: 700,@@ -368,6 +369,7 @@ const WatercolorMapContent: React.FC<{backgroundColor: 'white',borderRadius: 32,boxShadow: '0 0 30px white',+ color: '#182026',fontFamily,fontSize: 40,fontWeight: 700,diff --git a/packages/docs/elements/youtube/youtube-end-card/youtube-end-card.tsx b/packages/docs/elements/youtube/youtube-end-card/youtube-end-card.tsxindex 648eda5c79..971c859bd7 100644--- a/packages/docs/elements/youtube/youtube-end-card/youtube-end-card.tsx+++ b/packages/docs/elements/youtube/youtube-end-card/youtube-end-card.tsx@@ -301,7 +301,10 @@ const LeftSide = () => {export const YouTubeEndCard = () => {return (- <AbsoluteFill style={{backgroundColor: '#FAFAFA'}} name="Container">+ <AbsoluteFill+ style={{backgroundColor: '#FAFAFA', color: 'black'}}+ name="Container"+ ><LeftSide /><Interactive.Divname="Top thumbnail"