-
-
Notifications
You must be signed in to change notification settings - Fork 337
fix(grid): fix stackable nested grid #2269
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
fix(grid): fix stackable nested grid #2269
Conversation
Hi @lubber-de, thanks for your efforts. I'm not sure if the variable you introduced is a safe solution. Doesn't that apply to all mobile grids now? Same goes for the !important classes. Although I'd love to see them go too, they might disrupt the balance in other scenarios. I feel this is really an isolated bug inside nested stackable mobile grids. But I will test these changes out of course, to see what happens. As a sidenote: the double gutter is not a design decision in SUI. See the comments ;) Fomantic-UI/src/definitions/collections/grid.less Lines 1721 to 1726 in 135cfd1
This is the original library with the same HTML: |
tbh, i wasn't really convinced myself, yes this would affect all mobile grids, if changed (that's why i kept the default value to the original 0)
From what i tested, those really were not necessary and removing them just fixed the the issue from #1739
Yes, the more i think about that, i also feel this way. The gutter should only be used if the stackable grid isnt nested. Tehre
❤️
Yes, saw them :) But they meant to not pad when nested. The unnested
That seems to work exactly like my fix in this PR 🙂 |
# Conflicts: # src/definitions/collections/grid.less
The extra mobile gutter is now only used when not nested inside another grid or segment. This fixes all 3 issues now |
Description
This PR reverts and corrects #1739 for stackable nested grids.
The margins on mobile screens for stackable grid has now been adjusted so it only takes place when a stackable grid is not nested in another grid or a segment.
Testcase
From #2263
https://jsfiddle.net/lubber/bkrqfnhv/16/
From #1739
https://jsfiddle.net/lubber/fv1hg0jm/23/
From #1907
https://jsfiddle.net/lubber/vqj0xdg1/22/
Closes
#2263
#1907