Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 56c2f76

Browse files
committed
fix(plugins/plugi-patternfly4-themes): add missing sans 500 font-weight
Fixes #4389
1 parent 414e813 commit 56c2f76

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed
Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
/* @font-face {
2-
font-family: "Liberation Mono";
3-
src: url("./vendor/Liberation Mono V2/Liberation Mono V2.woff2") format("woff2");
2+
font-family: "overpass-mono";
3+
font-style: normal;
4+
font-weight: 300;
5+
src: url("~@patternfly/react-core/dist/styles/assets/fonts/overpass-mono-webfont/overpass-mono-light.woff2") format("woff2");
6+
} */
7+
8+
@font-face {
9+
font-family: 'overpass-mono';
410
font-style: normal;
511
font-weight: 400;
12+
src: url('~@patternfly/react-core/dist/styles/assets/fonts/overpass-mono-webfont/overpass-mono-regular.woff2')
13+
format('woff2');
614
}
715

8-
@font-face {
9-
font-family: "Liberation Mono";
10-
src: url("./vendor/Liberation\ Mono\ Bold\ V2/Liberation\ Mono\ Bold\ V2.woff2") format("woff2");
16+
/* @font-face {
17+
font-family: "overpass-mono";
1118
font-style: normal;
12-
font-weight: 700;
19+
font-weight: 500;
20+
src: url("~@patternfly/react-core/dist/styles/assets/fonts/overpass-mono-webfont/overpass-mono-semibold.woff2") format("woff2");
1321
} */
1422

23+
@font-face {
24+
font-family: 'overpass-mono';
25+
font-style: normal;
26+
font-weight: 600;
27+
src: url('~@patternfly/react-core/dist/styles/assets/fonts/overpass-mono-webfont/overpass-mono-bold.woff2')
28+
format('woff2');
29+
}
30+
1531
body.kui--patternfly4[kui-theme-style] {
16-
/* odd alignment issues --font-monospace: 'Liberation Mono'; */
17-
--font-monospace: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
32+
--font-monospace: overpass-mono, overpass-mono, SFMono-Regular, menlo, monaco, consolas, Liberation Mono, Courier New,
33+
monospace;
1834
}

plugins/plugin-patternfly4-themes/web/scss/sans.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
text-rendering: optimizeLegibility;
77
}
88

9+
@font-face {
10+
font-family: 'RedHatText';
11+
src: url('~@patternfly/react-core/dist/styles/assets/fonts/RedHatText/RedHatText-Medium.woff2') format('woff2');
12+
font-style: normal;
13+
font-weight: 500;
14+
text-rendering: optimizeLegibility;
15+
}
16+
917
@font-face {
1018
font-family: 'RedHatText';
1119
src: url('~@patternfly/react-core/dist/styles/assets/fonts/RedHatText/RedHatText-Bold.woff2') format('woff2');

0 commit comments

Comments
 (0)