-
Notifications
You must be signed in to change notification settings - Fork 167
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
Grid: provide 3 levels of nesting #5033
Comments
@lyubomir-popov can you paste links to the pages where it actually happens, there maybe something else going on Nesting does work on Vanilla grid: https://vanillaframework.io/docs/examples/patterns/grid/nested |
ended up doing something else, so no actual pr with this. |
@bartaz but just pasting the markup above into the vanilla nesting example (no css other than what is in vanilla), it still doesn't work: |
@lyubomir-popov this doesn't work because there is no col defined for desktop, so it likely assumes 12 column. It needs to define how many columns on desktop it uses. |
Grid nesting works as expected, to any level with standard low level grid class names ( With shorthand So we can have a look at fixing this on deeper levels. But it may require making some strict assumptions on markup (such as nested Exploration on CodePen: https://codepen.io/bartoszopka/pen/dyLWOEO |
@lyubomir-popov BTW, by "3 levels of nesting" do you mean, having 3 grids:
or actually 3 nested grids, 4 in total?
|
Triage: Looks like quite likely grid works as expected (at least in most cases). Adding more nesting functionality is quite high effort to address it now, with relatively low impact (we don't need it too often). Dropping for now, grid can be revisited in new architecture. |
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/WD-15276.
|
Component/pattern to amend
The grid currently works to a dpeth of 2 levels of nesting.
Here's a design that needs 3:
medium screens:
large screens:
And here's what happens when you try to build it:
Can we please add the 3rd level, including for .row--* components
The text was updated successfully, but these errors were encountered: