Skip to content

Commit 9c6e296

Browse files
committed
lib: Fix ct-card margin and padding in cards
1 parent 5853f06 commit 9c6e296

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

pkg/lib/ct-card.scss

+23-24
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,25 @@
66
}
77

88
// FIXME: Once PF4 provides a property for removing padding: https://github.com/patternfly/patternfly-react/issues/5606
9-
.ct-card.pf-v6-c-card .pf-v6-c-card__body.contains-list {
10-
padding-inline: 0;
11-
padding-block-end: 0;
12-
13-
> .pf-v6-c-table > :last-child > tr:last-child {
14-
border-block-end: none;
15-
}
16-
17-
// Remove excess padding from compact tables toggles
18-
// And adjust the padding to left align the toggles with the card header
19-
> .pf-v6-c-table {
20-
.pf-v6-c-table__toggle {
21-
padding-inline-start: 0;
22-
23-
> .pf-v6-c-button {
24-
padding-inline-start: var(--pf-v5-global--spacer--lg);
25-
}
26-
}
27-
}
28-
}
9+
// .ct-card.pf-v6-c-card .pf-v6-c-card__body.contains-list {
10+
// padding-block-end: 0;
11+
12+
// > .pf-v6-c-table > :last-child > tr:last-child {
13+
// border-block-end: none;
14+
// }
15+
16+
// // Remove excess padding from compact tables toggles
17+
// // And adjust the padding to left align the toggles with the card header
18+
// > .pf-v6-c-table {
19+
// .pf-v6-c-table__toggle {
20+
// padding-inline-start: 0;
21+
22+
// > .pf-v6-c-button {
23+
// padding-inline-start: var(--pf-v5-global--spacer--lg);
24+
// }
25+
// }
26+
// }
27+
// }
2928

3029
.ct-card.pf-v6-c-card .pf-v6-c-card__title-text {
3130
font-weight: normal;
@@ -34,10 +33,10 @@
3433

3534
// Remove excess top padding from top-level empty state in cards,
3635
// as card headers already add enough space
37-
.ct-card > .pf-v6-c-card__body > .pf-v6-c-empty-state {
38-
--pf-v5-c-empty-state__body--MarginTop: 0;
39-
padding-block: 0 var(--pf-v5-global--spacer--md);
40-
}
36+
// .ct-card > .pf-v6-c-card__body > .pf-v6-c-empty-state {
37+
// --pf-v6-c-empty-state__body--MarginBlockStart: 0;
38+
// padding-block: 0 var(--pf-t--global--spacer--md);
39+
// }
4140

4241
.ct-cards-grid {
4342
--ct-grid-columns: 2;

0 commit comments

Comments
 (0)