Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/patternfly/components/Card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@
}
// stylelint-enable selector-max-class

// when the whole card is clickable and the card actions are invisible, remove the padding/margin so it doesn't take up space
@at-root .#{$card}__actions:has(> .#{$card}__selectable-actions input.#{$pf-prefix}screen-reader),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only comment would be maybe it's worth a comment here to explain what this selector is aiming to do since it's pretty obscure and really only in react.

&.pf-m-clickable:not(.pf-m-selectable) {
--#{$card}__actions--PaddingInlineStart: 0;
--#{$card}__actions--MarginBlockStart: 0;
--#{$card}__actions--MarginBlockEnd: 0;
}

&.pf-m-compact {
--#{$card}__title-text--FontSize: var(--#{$card}--m-compact__title-text--FontSize);
--#{$card}__body--FontSize: var(--#{$card}--m-compact__body--FontSize);
Expand Down