Skip to content

Best practices for nested Grids #9620

Answered by tay1orjones
clhenrick asked this question in Help
Discussion options

You must be logged in to vote

Hey @clhenrick 👋 Thanks for bringing this up - this is one shortfall of the current grid implementation. Nested grids unfortunately won't adhere to the parent grid's parameters. As such, typically columns in nested grids will need to use the various utility classes to add or remove margin/padding to ensure the columns align.

In the next major version of Carbon we are anticipating better support for nested grids as we add a new implementation based on CSS Grid. Using custom properties we've been able to provide correct column definitions in nested grids. It's currently in beta and a work in progress. So it's not fully documented and doesn't have much guidance surrounding it yet, but you ca…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by clhenrick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants