Skip to content

Update padding & spacers on pfe-card #675

@starryeyez024

Description

@starryeyez024

We need clear definitions around when to use which one of these variables:

  container-spacer:              16px,
  container-padding:             16px,
  content-spacer:                24px,

There seems to be some mixnmatch in some components but my general understanding is:

  • Container spacer is used to align UI items in components, like the chevron in an accordion header
  • Container padding is used between the edges of containers and the content they hold
  • Content spacer is used between sections within containers, like card header & card body, or band body & band footer.

Can anyone either tell me if these assumptions are right or wrong? And let's add that to the docs and clean up some of the outliers, like for example this is in the _extends.scss:

%container {
    position: relative;
    display: block;
    width: 100%;
    padding: #{pfe-var(container-spacer)};
}

(and I think that should be container-padding). Thanks!

Metadata

Metadata

Labels

design systemUpdates or issues to align components to the Red Hat Design System.needs dev discoveryThis component needs discoveryneeds discussionneeds to be discussed outside the PR

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions