-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature/centering #92
Conversation
const ForceCenter = ({ children }) => ( | ||
<div | ||
className="absolute left-0 right-0 flex justify-center z-1" | ||
style={{ pointerEvents: 'none' }} |
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 is that? Just out of curiosity
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.
because it creates a transparent div with 100% of the width, which might cover elements behind it and render the user unable to click through
react/ForceCenter.js
Outdated
|
||
const ForceCenter = ({ children }) => ( | ||
<div | ||
className="absolute left-0 right-0 flex justify-center z-1" |
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.
Shouldn't we add a css handle?
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.
LGTM
What is the purpose of this pull request?
Adds functionality to force centering elements on header, by way of the new
header-force-center
block.View here: (used on the logo, which is centered regardless of the content by its side) https://lbebber4--storecomponents.myvtex.com/
What problem is this solving?
How should this be manually tested?
Screenshots or example usage
Types of changes