-
Notifications
You must be signed in to change notification settings - Fork 4
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
Image Captions #199
Image Captions #199
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some test suites that validate the page speed.
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
🔸 4 visual differences detected
The diff images are attached in the artifact |
|
🔸 5 visual differences detected
The diff images are attached in the artifact |
|
|
🔸 5 visual differences detected
The diff images are attached in the artifact |
@ehrro I also took the liberty of changing the muted text block color to match the captions, you can take a look at the business performance page to check that as well (FY 2020 for example, under the 2 piecharts) |
@@ -150,7 +150,11 @@ export function splitChildDiv(div, from, to) { | |||
} | |||
|
|||
function buildImageCollageForPicture(picture, caption, buildBlockFunction) { | |||
const newBlock = buildBlockFunction('image-collage', { elems: [picture, caption] }); | |||
const captionText = caption.textContent; |
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.
Should you use innerHTML
here instead of textContent
to retain any HTML tags inside 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.
Well I want to get rid of the <em>
tag so the captions aren't italic anymore, so i just need the actual text
|
🔸 2 visual differences detected
The diff images are attached in the artifact |
Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fixes #196
Changelog
Test URLs:
Original: https://www.sunstar.com/about/history
Before: https://main--sunstar--hlxsites.hlx.live/about/history
After: https://i-196--sunstar--hlxsites.hlx.live/about/history
Original: https://www.sunstar.com/about/business-performance
Before: https://main--sunstar--hlxsites.hlx.live/about/business-performance
After: https://i-196--sunstar--hlxsites.hlx.live/about/business-performance
If you are adding a new block or a variation to an existing block, please fill below:
Block library path: https://--sunstar--hlxsites.hlx.page/tools/sidekick/library.html?plugin=blocks&path=/sidekick/blocks/&index=0