-
Notifications
You must be signed in to change notification settings - Fork 51
Layout::Flex
& Layout::Grid
- Prevent inheritance of gap values when nested (HDS-5067)
#2987
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
Layout::Flex
& Layout::Grid
- Prevent inheritance of gap values when nested (HDS-5067)
#2987
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…ts, add zero as a supported value
9a27ecc
to
2ac0627
Compare
This comment was marked as outdated.
This comment was marked as outdated.
191f3fe
to
811cdf3
Compare
Co-authored-by: Cristiano Rastelli <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
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.
Left only one minor suggestion, but apart from that it's a great PR 🙌
PS: I've fixed the issue with the mixin, and double checked the visual differences: everything is correct
@@ -8,20 +8,22 @@ | |||
// | |||
|
|||
.hds-layout-grid { | |||
// Note: "Unitless 0" <length>s aren’t supported in math functions so we use 0px as a default value within calc() |
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.
[suggestion] maybe add a comment here, explaining why we need to initialize it here (instead of relying on the fallback in the var()
declaration), the reason being to avoid being inherited from a parent value.
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.
I updated the comment with more info
📦 RC Packages PublishedLatest commit: ea689a2 |
📌 Summary
If merged, this PR fixes a bug in which
gap
values of nestedFlex
&Grid
components were being inherited and adds "0" as a supportedgap
value. Also fixes improper inheritance ofGrid
columnMinWidth
value.Documentation updates PR: #2998
🔗 External links
👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.
📋 PCI review checklist
Examples of changes to controls include access controls, encryption, logging, etc.
Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.