-
Notifications
You must be signed in to change notification settings - Fork 212
MWPW-178376: Improve variant layout handling #4730
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
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
|
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. |
bozojovicic
left a comment
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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). |
|
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. |
|
@Axelcureno Could you please resolve the conflicts? |
|
Reminder to set the |
17f223b to
7e8d75c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
|
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. |
|
Closing this PR due to inactivity. |
|
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. |
|
Closing this PR due to inactivity. |
|
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.
|
All comments addressed. Ready for QA. |
yesil
left a comment
There was a problem hiding this 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
|
PR has been moved to adobecom/mas#477 |
Resolves: MWPW-178376
Test URLs: