[bug]: Page Builder column responsive styles break with CMS block in page #4044
Closed
Description
Describe the bug
When a CMS page has columns with responsive styles, and also has a CMS block with colums, the responsive styles for the page are no longer treated. This is because the CMS Block has it's own styles which override the media styles for the page.
To reproduce
Steps to reproduce the behavior:
CMS Block setup
- Create a CMS Block
- Add columns to CMS block
- Add basic image to the columns of CMS block
Page Setup
- Create CMS page
- Add Row + Columns to page
- Set the min-height for desktop on the columns
- Set an image for desktop on the columns
- Set the min-height for mobile to something different on the columns
- Set a different image for mobile on columns
- Add a row to the page
- Add CMS block into row
Expected behavior
Desktop and mobile styling/images should differ on the page's columns
Actual behavior
Images and min-height stays the same across all media
Possible solutions
PR incoming. Media styles override with the last style tag.
Note: Also requires #4028 otherwise columns don't work
Please let us know what packages this bug is in regards to:
-
venia-concept
-
venia-ui
-
pwa-buildpack
-
peregrine
-
pwa-devdocs
-
upward-js
-
upward-spec
-
create-pwa
-
pagebuilder