-
Notifications
You must be signed in to change notification settings - Fork 5
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
569-new-section-carousel-first-full-layout #570
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ <h2>Together, we see a way</h2> | |
</div> | ||
</div> | ||
<hr> | ||
<hr> | ||
<div class="cards articlecard"> | ||
<div> | ||
<div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ const createFullLayoutSection = (main, document) => { | |
const div = e.querySelector('div'); | ||
const style = div.getAttribute('class'); | ||
if (style) { | ||
if (i === 0 && e.parentNode.previousElementSibling) e.prepend(document.createElement('hr')); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just wondering why we need this in the section? I thought the hr tag can be added to individual blocks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would needed to separate fulllayout from other above components. I can explain over the call. Thanks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @duynguyen we (Ravi & I) just discussed we should have the sections controlled by the containers and not the blocks. Adding before / after a block is risky, might work on one place but can have side effects on other places the same block is used. |
||
const cells = [['Section Metadata'], ['style', style]]; | ||
const table = WebImporter.DOMUtils.createTable(cells, document); | ||
e.after(table); | ||
|
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 check these 2 sections? The homepage is not using any carousel, so it should not be impacted.
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.
As we separated section of first full layout, home page is also got additional