Skip to content

[SR] - [MWPW-193259] - Rich Content Video variant#5973

Merged
narcis-radu merged 7 commits into
site-redesign-foundationfrom
sr2-rich-content-video
May 28, 2026
Merged

[SR] - [MWPW-193259] - Rich Content Video variant#5973
narcis-radu merged 7 commits into
site-redesign-foundationfrom
sr2-rich-content-video

Conversation

@DKos95
Copy link
Copy Markdown
Contributor

@DKos95 DKos95 commented May 26, 2026

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DKos95 DKos95 requested a review from a team as a code owner May 26, 2026 13:58
@aem-code-sync
Copy link
Copy Markdown
Contributor

aem-code-sync Bot commented May 26, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

Copy link
Copy Markdown
Contributor

@robert-bogos robert-bogos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you have some conflicts, might want to take a look

@aem-code-sync aem-code-sync Bot temporarily deployed to sr2-rich-content-video May 26, 2026 14:33 Inactive
Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
Comment thread libs/mep/ace1205/rich-content/rich-content.js
Comment thread libs/mep/ace1205/rich-content/rich-content.js
Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
Comment thread libs/mep/ace1205/rich-content/rich-content.css
Comment thread libs/mep/ace1205/rich-content/rich-content.css
Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
margin: 0;
}

.video-container {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on mobile things seem a bit off, feels like someone would need to put a lot of effort to click on the CTA.

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure what can be done about this, the animation is that the bottom part gets pulled up, we can only slow it down if needed so the user can more easily scroll up in order for the bottom part to go down but I don't think design would like that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will bring this up in a meeting today I have with Jordan.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DKos95 - If there's feedback from Design, maybe we can tackle it as a new requirement and have a separate JIRA ticket. @overmyheadandbody , @SilviuLCF

@aem-code-sync aem-code-sync Bot temporarily deployed to sr2-rich-content-video May 27, 2026 09:49 Inactive
@aem-code-sync aem-code-sync Bot temporarily deployed to sr2-rich-content-video May 27, 2026 09:53 Inactive
@DKos95 DKos95 requested review from narcis-radu and rgclayton May 27, 2026 09:53
Copy link
Copy Markdown
Contributor

@overmyheadandbody overmyheadandbody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Narcis that it seems like we're making it difficult for the user to click the CTA button, regardless if viewport. Design should be contacted to check this and/or find some alternatives.

On the performance side, we would likely want to pause the video when it's not in view, so there's no needless CPU load when other sections of the page are in view. Is this a planned update?

Otherwise this looks pretty nifty! Just a few more details to iron out.

Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
.rich-content.video {
.media {
padding-inline: unset;
max-width: var(--grid-width-10);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep in mind --grid-width-10 is only available inside a .container. That should usually be the case, but there is potential for an edge case here.

Copy link
Copy Markdown
Contributor Author

@DKos95 DKos95 May 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are using a container in this variant so we should be fine, I mean if someone takes out the container class the block will break(not look like it should) regardless, right?

Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
@DKos95
Copy link
Copy Markdown
Contributor Author

DKos95 commented May 27, 2026

On the performance side, we would likely want to pause the video when it's not in view, so there's no needless CPU load when other sections of the page are in view. Is this a planned update?

I don't think this is requested in the ticket anywhere or at least I didn't see it. Also I am not sure how doable this is if the block has a scroll animation since it has a translate slow down so IntersectionObserve reading will be skewed a bit. I've tried to implement it but seems that the animation transform on the block is an issue I haven't found a workaround to pause the video when it visually goes off screen.

@overmyheadandbody
Copy link
Copy Markdown
Contributor

@DKos95 - likely not requested officially, but as we've seen for the Wave 1 performance investigations, playing videos when they're off screen can needlessly load CPU, causing lag in other areas of the page. Router marquee implemented a solution; I also remember that the video logic used to have this OOTB in C1, I'm not sure what might've changed. Not a blocker right now, but likely a follow-up to score some performance wins.

@DKos95 DKos95 requested a review from overmyheadandbody May 27, 2026 13:09
@DKos95
Copy link
Copy Markdown
Contributor Author

DKos95 commented May 27, 2026

@DKos95 - Router marquee implemented a solution;

Like I said we have an animation on this block which is transform and it skews what the observer reads, which the router marquee doesn't have so the difference is probably there. I do agree that we should re visit it when we have time.

Copy link
Copy Markdown
Contributor

@narcis-radu narcis-radu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but we will need additional effort to handle:

  • CTA positioning - requires design input, we can hopefully treat it separately (new JIRA ticket - @SilviuLCF)
  • performance - video should pause when it's out of view; we need some research here (new JIRA ticket @SilviuLCF)

@SilviuLCF
Copy link
Copy Markdown
Contributor

@SilviuLCF SilviuLCF self-requested a review May 28, 2026 09:40
Copy link
Copy Markdown
Contributor

@SilviuLCF SilviuLCF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA verified testing details https://jira.corp.adobe.com/browse/MWPW-193259

With follow up concerns
Ticket for performance https://jira.corp.adobe.com/browse/MWPW-196476
Ticket for CTA positioning  https://jira.corp.adobe.com/browse/MWPW-196479

Comment thread libs/mep/ace1205/rich-content/rich-content.css Outdated
@narcis-radu narcis-radu merged commit a41264a into site-redesign-foundation May 28, 2026
9 checks passed
@narcis-radu narcis-radu deleted the sr2-rich-content-video branch May 28, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants