refactor(Video): Remove SCSS from Video#3390
Draft
aresnik11 wants to merge 6 commits into
Draft
Conversation
|
View your CI Pipeline Execution ↗ for commit 85280a0 ☁️ Nx Cloud last updated this comment at |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3390 +/- ##
==========================================
- Coverage 90.55% 90.08% -0.47%
==========================================
Files 398 271 -127
Lines 6586 5671 -915
Branches 2141 1878 -263
==========================================
- Hits 5964 5109 -855
+ Misses 613 553 -60
Partials 9 9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Update vidstack-vendor.css to use the webpack ~ module resolution prefix, which tells webpack to resolve imports from node_modules. This ensures the CSS imports are correctly resolved in both Storybook and consumer builds like Codecademy. Fixes module resolution error: "Can't resolve './@vidstack/react/..." when Codecademy's webpack processes the CSS file from the gamut dist output. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Collaborator
|
📬 Published Alpha Packages:
|
Contributor
|
🚀 Styleguide deploy preview ready! Preview URL: https://6a4d55aad7056706df435e96--gamut-preview.netlify.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
The Video component was the last consumer of a standalone SCSS file (
vds_base_theme.scss) for styling the Vidstack player. This PR removes that SCSS dependency, splitting its contents into two more idiomatic sources:vidstack-vendor.css— the three third-party Vidstack@imports (default theme + video/audio layouts), imported as plain CSS.styles.ts— our custom Vidstack overrides (YouTube overlay, control buttons, sliders, tooltips, keyframes), converted to an Emotioncsstemplate (vdsBaseThemeStyles) and applied through the existingVariableProviderstyled component.This aligns the Video component with the rest of Gamut's Emotion-based styling and removes the last SCSS file from the package.
PR Checklist
Testing instructions
Verify the Vidstack player looks and behaves identically to
main— the goal is a no-visual-change refactor.iframe.vds-youtubeheight override) both before and after playback starts.yarn nx build gamut) and confirmvidstack-vendor.cssis present indist/Video/.PR Links and Envs