Skip to content

Conversation

KristinLBradley
Copy link
Contributor

@KristinLBradley KristinLBradley commented Jul 2, 2025

📌 Summary

If merged, this PR fixes a bug in which gap values of nested Flex & Grid components were being inherited and adds "0" as a supported gap value. Also fixes improper inheritance of Grid columnMinWidth value.

Documentation updates PR: #2998

🔗 External links


👀 Component checklist

💬 Please consider using conventional comments when reviewing this PR.

📋 PCI review checklist
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've worked with GRC to document the impact of any changes to security controls.
    Examples of changes to controls include access controls, encryption, logging, etc.
  • If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
    Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.

Copy link

vercel bot commented Jul 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
hds-showcase ✅ Ready (Inspect) Visit Preview Jul 8, 2025 4:59pm
hds-website ✅ Ready (Inspect) Visit Preview Jul 8, 2025 4:59pm

@KristinLBradley

This comment was marked as outdated.

didoo

This comment was marked as resolved.

Co-authored-by: Cristiano Rastelli <[email protected]>
@KristinLBradley

This comment was marked as resolved.

didoo
didoo previously approved these changes Jul 4, 2025
Copy link
Contributor

@didoo didoo left a 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()
Copy link
Contributor

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.

Copy link
Contributor Author

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

@KristinLBradley KristinLBradley merged commit 282ef29 into main Jul 8, 2025
16 checks passed
@KristinLBradley KristinLBradley deleted the kristin/hds-5067-fix-layout-gap-inheritance branch July 8, 2025 21:17
@hashibot-hds hashibot-hds mentioned this pull request Jul 8, 2025
@shleewhite shleewhite added release-candidate Publishes release candidates to npm and removed release-candidate Publishes release candidates to npm labels Jul 11, 2025
Copy link
Contributor

📦 RC Packages Published

Latest commit: ea689a2

Published 1 packages

@hashicorp/[email protected]

yarn up -C @hashicorp/design-system-components@rc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants