-
Notifications
You must be signed in to change notification settings - Fork 174
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
MWPW-136885: More SEO-friendly, improved accessibility in merch cards #1791
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1791 +/- ##
==========================================
- Coverage 95.67% 95.66% -0.01%
==========================================
Files 159 159
Lines 41254 41262 +8
==========================================
+ Hits 39471 39475 +4
- Misses 1783 1787 +4 ☔ View full report in Codecov by Sentry. |
} | ||
element.setAttribute('slot', slotName); | ||
merchCard.append(element); | ||
const newElement = createTag(tagName); |
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.
const newElement = createTag(tagName, element.attributes, element.innerHTML, { parent: merchCard});
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.
Fixed
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.
does not look like it
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.
|
A few observations. If I author the title with an To me it seems like if you are going to the trouble to change the title element to something specific the font size should stay consistent? Or maybe that's expected? Seems odd. If I author with an Sample page I test with. |
@rgclayton thanks for the comment, you brought a good point. |
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.
requesting discussion to be solved before going on :)
…adobecom#1791) * MWPW-136885: More SEO-friendly, improved accessibility merch cards * unit tests fixed * addressed review comments * updated merch card dependency * conflicts resolved
…adobecom#1791) * MWPW-136885: More SEO-friendly, improved accessibility merch cards * unit tests fixed * addressed review comments * updated merch card dependency * conflicts resolved
Programmatically replaces heading tag names in cascading order to improve SEO and accessibility in Merch cards.
The hierarchal order is the following:
Note: No merch card should have more than 3 headings.
Resolves: MWPW-136885
Test URLs: