Skip to content

[grid] double gutter in nested stackable grids #2263

@hugopeek

Description

@hugopeek

Bug Report

Stackable grids inside a parent grid receive a negative left/right margin, in order to align properly with the parent grid.

This negative margin is overruled however, by the changes in this PR: https://github.com/fomantic/Fomantic-UI/pull/1739/files

The specificity is now too high, so the !important values of the negative margins are no longer applied.

Steps to reproduce

See the following fiddle: https://jsfiddle.net/gtc4o5zr/3/

.ui.ui.ui.ui.stackable.grid {
width: auto;
margin-left: 0 !important;
margin-right: 0 !important;
}

If you disable the negative margins here, or remove the added .ui classes, things go back to normal.

Expected result

image

There should be no gutter between the parent and inner grid.

Actual result

image

There is another gutter between the parent and inner grid.

Testcase

https://jsfiddle.net/gtc4o5zr/3/

Version

2.9.0-beta.96

Loosely related: Semantic-Org/Semantic-UI#5170

Metadata

Metadata

Assignees

Labels

type/bugAny issue which is a bug or PR which fixes a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions