lib/pf4: Use alert font style for alert titles

Fixes #15639

PF4 uses H4 for titles. However, H4 is often set with different font family and
size in other frameworks; notably, but not limited to PatternFly 3.
This commit is contained in:
Garrett LeSage 2021-04-14 13:58:03 +02:00 committed by Martin Pitt
parent 3120738466
commit b7b1612061
1 changed files with 9 additions and 0 deletions

View File

@ -122,3 +122,12 @@ svg {
.pf-c-input-group :focus {
z-index: 2;
}
// Alerts use elements that have fonts set in other frameworks (including PF3);
// generally, this is an H4 that often has a font size and sometimes family set.
// Therefore, it should inherit from the alert font set at the pf-c-alert level.
// https://github.com/patternfly/patternfly/issues/4004
.pf-c-alert__title {
font-size: inherit;
font-family: inherit;
}