-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Contain nested rows to grid #8889
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
Conversation
If a row is nested inside of an expanded row, it should be contained to the grid unless the expanded class is explicitly added to the nested row. If a nested row needs to be full width, the `expanded` class can be applied to that row; however, if nested row max-width is set to none, there's no way to contain a row to the grid inside of an expanded row. This fixes foundation#8886
|
For further reference, here's how this has worked up until 6.2.1. The <div class="row expanded"> <!--Parent - Full width-->
<div class="row"> <!--Nested - Contained to grid-->
</div>
<div class="row expanded"> <!--Nested - Full width-->
</div>
</div> |
|
👍 I agree; this commit was a mistake. |
|
@gakimball, are you okay with reverting this and requiring |
|
I'll take this one! I'll test it and see if it's the way to go. |
|
@rafibomb I think there is a related issue on the flex-grid. It's missing the margin-left and margin-right for nested rows inside an expanded row. In _flex-grid.scss around line 165 I think you need to add the margin stuff for the nested row: // Expanded row
&.expanded {
max-width: none;
.row {
margin-left: auto;
margin-right: auto;
}
} |
|
Small little anecdote that doesn't really change anything here... |
This commit removes a single line that was recently added that results in the following style:
The line was added in response to #8304. However, the appropriate solution would have been to add the expanded class to nested rows. Setting max-width to none introduces a break. If a nested row needs to be full width, the
expandedclass can be applied to that row; however, if nested row max-width is set to none, there's no way to contain a row to the grid inside of an expanded row.If a row is nested inside of an expanded row, it should be contained to the grid unless the expanded class is explicitly added to the nested row.
This fixes #8886