From d0d487601eb2da669be9a83cc8201d94998ec334 Mon Sep 17 00:00:00 2001 From: Christian Pillsbury Date: Fri, 12 Sep 2025 07:35:10 -0700 Subject: [PATCH] fix(icons): add currentColor fill to fullscreen icons for proper theming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fullscreen enter/exit SVG icons were missing fill="currentColor" attributes, causing them to render as black/invisible against dark button backgrounds. This fix ensures proper theming support. Also integrates fullscreen button into React default skin with MediaContainer wrapper for complete out-of-the-box functionality. - Fix fullscreen-enter.svg and fullscreen-exit.svg with currentColor fill - Add MediaContainer wrapper to React MediaSkinDefault - Add FullscreenButton to React control bar with proper icon states - Add CSS for fullscreen button icon state management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- packages/core/icons/assets/fullscreen-enter.svg | 4 ++-- packages/core/icons/assets/fullscreen-exit.svg | 4 ++-- .../react/react/src/skins/MediaSkinDefault.tsx | 17 +++++++++++++++-- .../react/react/src/skins/styles.module.css | 6 ++++++ 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/packages/core/icons/assets/fullscreen-enter.svg b/packages/core/icons/assets/fullscreen-enter.svg index 9b0785f7..1c0fc111 100644 --- a/packages/core/icons/assets/fullscreen-enter.svg +++ b/packages/core/icons/assets/fullscreen-enter.svg @@ -1,3 +1,3 @@ -
+ {children}
@@ -39,8 +43,17 @@ export const MediaSkinDefault: React.FC<{ children: React.ReactNode }> = ({ > + {/* @ts-ignore */} + + + +
- + ); }; diff --git a/packages/react/react/src/skins/styles.module.css b/packages/react/react/src/skins/styles.module.css index c2e2a270..00c25c45 100644 --- a/packages/react/react/src/skins/styles.module.css +++ b/packages/react/react/src/skins/styles.module.css @@ -55,6 +55,12 @@ display: inline-block; } +/* Fullscreen button icon states */ +.MediaFullscreenButton:not([data-fullscreen]) .FullscreenEnterIcon, +.MediaFullscreenButton[data-fullscreen] .FullscreenExitIcon { + display: inline-block; +} + /* Media Control Bar UI/Styles */ .ControlBar { display: flex;