Skip to content

Flex layout - add support for gap spacing #8397

@mcoker

Description

@mcoker

Core issue - patternfly/patternfly#5288
PR - patternfly/patternfly#5516

The details

The parent <Flex> component now supports a "row-gap", "column-gap", and "gap" all with the same suffixes. "gap" as an example - .pf-m-gap{-[none, xs, sm, md, lg, xl, 2xl, 3xl, 4xl]}{-on-[breakpoint]}. In other words:

  • default spacer - .pf-m-gap
  • custom spacer - .pf-m-gap-[none, xs - 4xl]
  • default spacer at breakpoint - .pf-m-gap-on-[breakpoint]
  • custom spacer at breakpoint - .pf-m-gap-[none, xs - 4xl]-on[breakpoint]

Using any of these gap spacers should override any usage of the existing spacer and spaceItems along the main axis (horizontal/column spacers in a flex row or vertical/row spacers in a flex column)

That's it!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions