Skip to content

Commit

Permalink
[Release] Stage to Main 09/27 (#419)
Browse files Browse the repository at this point in the history
[MWPW-159151] Rearrange content in mobile view for marquee used with interactive metadata #417
MWPW-159309 | Unit test fix #420
Creative cloud:

Before: https://main--cc--adobecom.hlx.live/?martech=off
After: https://stage--cc--adobecom.hlx.live/?martech=off
  • Loading branch information
Ruchika4 committed Sep 30, 2024
1 parent 63b95ec commit 6ccae68
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions creativecloud/blocks/interactive-metadata/interactive-metadata.css
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,18 @@
}

@media screen and (max-width: 600px) {
.marquee.large.interactive-enabled.content-top-mobile .text .body-xl {
order: unset;
}

.marquee.large.interactive-enabled.content-top-mobile .text p.supplemental-text {
order: 3;
}

.marquee.large.interactive-enabled.content-top-mobile .text {
order: 1;
}

.aside.interactive-enabled .foreground.container .image {
display: block;
width: 100%;
Expand Down Expand Up @@ -383,6 +395,20 @@
}
}

@media screen and (min-width: 600px) and (max-width: 1199px) {
.marquee.large.interactive-enabled.content-top-tablet .text .body-xl {
order: unset;
}

.marquee.large.interactive-enabled.content-top-tablet .text p.supplemental-text {
order: 3;
}

.marquee.large.interactive-enabled.content-top-tablet .text {
order: 1;
}
}

@media screen and (max-width: 1200px) {
.aside.interactive-enabled .foreground.container .image {
order: 1;
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/mocks/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="icon" href="data:,">
1 change: 1 addition & 0 deletions test/scripts/scripts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function delay(ms) {
}

document.body.innerHTML = await readFile({ path: './mocks/body.html' });
document.head.innerHTML = await readFile({ path: './mocks/head.html' });
describe('Scripts', () => {
before(async () => {
await import('../../creativecloud/scripts/scripts.js');
Expand Down

0 comments on commit 6ccae68

Please sign in to comment.