-
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
Header bottom nav #90
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some test suites that validate the page speed.
|
|
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.
Since nav-tree-utils.js
seems like a re-usable library, it would be good to add some unit tests for it...
@@ -281,22 +105,26 @@ export default async function decorate(block) { | |||
const navMeta = getMetadata('nav'); | |||
const navPath = navMeta || (getLanguage() === 'en' ? '/_drafts/himanshu/nav' : `/${getLanguage()}/nav`); |
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.
'/_drafts/himanshu/nav'
? 😉
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.
Remove it before merge
Hey @hparwani2, I'd like to review this but not exactly sure which function you implemented. Is it about changing hero images by mouseover? |
@@ -281,22 +105,26 @@ export default async function decorate(block) { | |||
const navMeta = getMetadata('nav'); | |||
const navPath = navMeta || (getLanguage() === 'en' ? '/_drafts/himanshu/nav' : `/${getLanguage()}/nav`); |
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.
Remove it before merge
position: unset; | ||
} | ||
|
||
/* stylelint-disable-next-line no-descending-specificity */ |
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.
why eslint rule disable here ?
|
🔸 4 visual differences detected
The diff images are attached in the artifact |
@JiangLong2019 I have created the bottom nav of the header or cateogoryTree of header. please refer the below screenshot. |
@@ -0,0 +1,84 @@ | |||
import { createOptimizedPicture } from './lib-franklin.js'; |
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 consider moving this file under blocks/header
if that's the only place its used.
header .mega-container .left-content-container .main-item-summary a h2 .icon.angle-right { | ||
background-image: url('../../icons/angle-white-70.svg'); | ||
height: 24px; | ||
width: 15px; |
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.
1rem=default browser font size (usually 16px)
if (children) { | ||
const picture = createOptimizedPicture(data.image, '', false, [{ width: '800' }]); | ||
li = htmlToElement(`<li class="drop menu-level-${level}-item"> | ||
<a class="link" href=${data.link}>${data.category}</a> |
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.
The data.link
here and everywhere should be governed by the page domain. For e.g. hlx.live
should have links with hlx.live
domain and similarly for preview and prod domains.
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 #39
Test URLs:
Original: https://www.sunstar.com
Before: https://main--sunstar--hlxsites.hlx.live
After: https://header-bottom-nav--sunstar--hlxsites.hlx.live
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