Skip to content

Unreliable margin reset in Grid #638

@adamkudrna

Description

@adamkudrna
  • Grid sets margin to 0 for all his > * children.
  • Toolbar (and other layout components) apply bottom margin when :not(:last-child).
  • Since component styles are scoped each to their own components.* cascade layer the order of which is not defined, the resulting margin is dependant on the load order of components.

Increasing the specificity of > * does not help, the order of cascade layers seems to be the key.

See https://codepen.io/adamkudrna/pen/wBBbgVG for an isolated discovery.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

🔖 To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions