-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MWPW-131763] Variable Aside backgrounds based on media breakpoints #1162
Conversation
…de-bg-breakpoints
…better handle color backgrounds
Hello, I'm Franklin Bot and I will run some test suites that validate the page speed.
|
|
|
Codecov Report
@@ Coverage Diff @@
## main #1162 +/- ##
==========================================
+ Coverage 96.25% 96.27% +0.02%
==========================================
Files 137 137
Lines 33298 33281 -17
==========================================
- Hits 32050 32042 -8
+ Misses 1248 1239 -9
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
…om/milo into ebartholomew/aside-bg-breakpoints
|
Are you sure the Edit: I just checked and I see it in 4 different blocks. Can you check that your new code works with all of those blocks and provide examples for testing? |
|
|
|
|
|
|
|
|
…dobecom#1162) * add requisite styles for aside bg breakpoint switching * clean up linting errors in decorate.js, simplify decorateBlockBg and better handle color backgrounds * update global decorateBlockBg, use in aside * autoBlock races with bg creation, defer to video * fix stylelint errors * update test markup to align w/ video auto-blocking * add coverage for variable CSS backgrounds * remove test src's, make bg decorator more readable * make global base bg styles, remove dupes from aside.css * add con-block bg styles to main styles file * regroup breakpoints when only two bgs are provided * reintroduce video decorator to support additional video types * update breakpoint classnames * revert previous commit * remove bg media min height --------- Co-authored-by: Honwai Wong <[email protected]>
decorateBlockBg()
function indecorate.js
has been optimized/simplified, and now replaces thedecorateBlockBg()
definition that was withinaside.js
aside.css
aside.css
Resolves: MWPW-131763
Test URLs:
NOTE: Resize your browser window when viewing test URLs to test variable breakpoints.