Skip to content

Conversation

@Axelcureno
Copy link
Member

@Axelcureno Axelcureno commented Aug 15, 2025

  • Enhanced variant registration logic with WeakMap for better state management.
  • Cleaned up style application process to ensure proper handling of CSSStyleSheet and fallback to style elements when necessary.
  • Adjusted variable names for consistency and clarity.
  • Avoids duplicate style injection.

Resolves: MWPW-178376

Test URLs:

@Axelcureno Axelcureno requested a review from a team as a code owner August 15, 2025 18:19
@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Aug 15, 2025

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

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Aug 15, 2025

Page Scores Audits Google
📱 /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

@Axelcureno Axelcureno self-assigned this Aug 18, 2025
@github-actions
Copy link
Contributor

This PR has not been updated recently and will be closed in 7 days if no action is taken. Please ensure all checks are passing, https://github.com/orgs/adobecom/discussions/997 provides instructions. If the PR is ready to be merged, please mark it with the "Ready for Stage" label.

@github-actions github-actions bot added the Stale label Aug 26, 2025
@github-actions github-actions bot removed the Stale label Aug 27, 2025
Copy link
Contributor

@bozojovicic bozojovicic left a comment

Choose a reason for hiding this comment

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

Approved but @Axelcureno please add some examples to before/after pages in future PRs. I remember I've seen these strikethru styles before but now I could not find it when I need it to compare.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

@Axelcureno
Copy link
Member Author

Axelcureno commented Aug 28, 2025

Approved but @Axelcureno please add some examples to before/after pages in future PRs. I remember I've seen these strikethru styles before but now I could not find it when I need it to compare.

yes, my bad. Here's an example URL: https://main--cc--adobecom.aem.page/creativecloud/plans?milolibs=mwpw-178376 (try with and without milolibs to compare).
I pushed new changes and the solution is a bit more complex now, if you want to review again.

cc @st-angelo-adobe

@github-actions
Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

@aem-code-sync aem-code-sync bot temporarily deployed to MWPW-178376 September 2, 2025 14:02 Inactive
@nkthakur48
Copy link
Contributor

@Axelcureno Could you please resolve the conflicts?

@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2025

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

@github-actions
Copy link
Contributor

This PR has not been updated recently and will be closed in 7 days if no action is taken. Please ensure all checks are passing, https://github.com/orgs/adobecom/discussions/997 provides instructions. If the PR is ready to be merged, please mark it with the "Ready for Stage" label.

@github-actions github-actions bot added the Stale label Oct 22, 2025
@github-actions
Copy link
Contributor

Closing this PR due to inactivity.

@github-actions github-actions bot closed this Oct 29, 2025
@Axelcureno Axelcureno reopened this Oct 29, 2025
@github-actions github-actions bot removed the Stale label Oct 30, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

This PR has not been updated recently and will be closed in 7 days if no action is taken. Please ensure all checks are passing, https://github.com/orgs/adobecom/discussions/997 provides instructions. If the PR is ready to be merged, please mark it with the "Ready for Stage" label.

@github-actions github-actions bot added the Stale label Nov 7, 2025
@github-actions
Copy link
Contributor

Closing this PR due to inactivity.

@github-actions github-actions bot closed this Nov 14, 2025
@github-actions github-actions bot removed the Stale label Dec 4, 2025
@seanchoi-dev
Copy link
Contributor

Please resolve the conflicts and fix the Nala errors.

…nt styles

- Revert global.css.js to use <style> elements in document.head
- Revert variant-layout.js to use styleMap and <style> elements
- Fixes grid layout and price literal styling issues
- The adoptedStyleSheets approach broke light DOM styling
Variants like plans, plans-students, plans-education share the same
Plans class but had different variant names. Using variant name as the
styleMap key caused 3 identical stylesheets to be injected.

Now using this.constructor.name as the key ensures only one stylesheet
is injected per variant class (e.g., 'Plans'), not per variant name.
@Axelcureno
Copy link
Member Author

All comments addressed. Ready for QA.

Copy link
Contributor

@yesil yesil left a comment

Choose a reason for hiding this comment

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

Please close and re-open one against https://github.com/adobecom/mas

@Axelcureno
Copy link
Member Author

PR has been moved to adobecom/mas#477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants