Skip to content

Commit f0ab802

Browse files
committed
fix(card): add slotted header styles
per @marionnegp also fixes demo page by importing cta
1 parent 5b9c08e commit f0ab802

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

elements/pfe-card/demo/pfe-card.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import '@patternfly/pfe-band';
22
import '@patternfly/pfe-card';
3+
import '@patternfly/pfe-cta';
34
import '@patternfly/pfe-select';
45

56
const root = document.querySelector('[data-demo="pfe-card"]')?.shadowRoot ?? document;

elements/pfe-card/pfe-card.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,7 @@ $size-small: (
266266
}
267267
}
268268
}
269+
270+
#header ::slotted(:is(h1,h2,h3,h4,h5,h6)) {
271+
font-weight: var(--pfe-card-header-font-weight, 500);
272+
}

0 commit comments

Comments
 (0)