Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

layout-margin / layout-padding and flex="?" #5014

@tinusn

Description

@tinusn

In release 0.10.x adding layout-margin and layout-padding to a parent container and then adding flex="?" to a child works as expected, but in 0.11.2 it does not.

Here is a codepen demonstrated the issue:

0.10.1
0.11.2 (not, this one does not work at all... dunno why)

And here is a codepen with just flex, that works in 0.11.2
0.11.2 - flex

The issue seems to be that the new class based approach does not add "flex" to the class list and is thus not hit by the following:

.layout-margin, .layout-margin > .flex, .layout-margin > .flex-gt-sm, .layout-margin > .flex-md, .layout-margin > .flex-lt-lg {
  margin: 8px; }

In 0.10.1:

<div layout="row" layout-margin>

becomes

<div layout="row" class="layout layout-row layout-margin">

whereas in 0.11.2 it becomes:

<div class="md-layout-row layout-margin">

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions