Skip to content

Commit daaa654

Browse files
starryeyez024github-actions[bot]castastrophe
authored
Fix #1346 font weight issues by swapping out Google fonts for local @font-face (#1347)
* Swap Google fonts reference for local font reference. Include temporary workaround to get proper font weights mapped to variations of the font family to show it working * changelog * Remap Display font instead of text font, reset fallback values for weights to standard values * Update elements/pfe-styles/src/red-hat-font.scss Co-authored-by: [ Cassondra ] <[email protected]> * Sass doc Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: [ Cassondra ] <[email protected]>
1 parent c83d12c commit daaa654

File tree

33 files changed

+201
-73
lines changed

33 files changed

+201
-73
lines changed

CHANGELOG-1.x.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
- [9fab144](https://github.com/patternfly/patternfly-elements/commit/9fab1440da7bc26e3dd5f92224f03e964ea9eda2) feat: pfe-primary-detail
88
- [57b5dd2](https://github.com/patternfly/patternfly-elements/commit/57b5dd2adf1c0fd0e00a6c9112d3ad5fb66a5a11) feat: Update Firefox support to 78 (latest version for RHEL CSB)
99
- [28439ea](https://github.com/patternfly/patternfly-elements/commit/28439eadb22c34edbbed177233b0eeb2ef77024b) feat: pfe-codeblock (#804)
10+
1011
### Fixes
1112
- [03899cc](https://github.com/patternfly/patternfly-elements/commit/03899ccf7a4421186a7316926955b3a3bd1068f7) fix: Typography: mixins & extends (#1303)
1213
- [5d661cb](https://github.com/patternfly/patternfly-elements/commit/5d661cb7e85921ed72f324a0b635873c23bc69e9) fix: pfe-clipboard docs; add font-size
13-
- [30c77d0](https://github.com/patternfly/patternfly-elements/commit/30c77d0225d235b68367097e8e462621266cab7b) fix: update font-weight on pfe text modifier classes
14+
- [30c77d0](https://github.com/patternfly/patternfly-elements/commit/30c77d0225d235b68367097e8e462621266cab7b) fix: Adjust font-weight on pfe text modifier classes & define custom font-face for Red Hat Text font
15+
1416
## 1.1.1 ( 2021-01-18 )
1517

1618
### Fixes
@@ -38,6 +40,7 @@
3840
- [0354352](https://github.com/patternfly/patternfly-elements/commit/03543523064f4a885b44bd334b0e24a77f00aee9) feat: Open a pull request from the command-line
3941
- [7559485](https://github.com/patternfly/patternfly-elements/commit/755948553015d8745f8faad8b7a299031ec6fff3) feat: Migrate from Travis to GitHub Actions
4042
- [51d055a](https://github.com/patternfly/patternfly-elements/commit/51d055ae15b3570c6d902c60d45163a0154e1011) feat: Add automerge action for pull requests when their base PR is updated
43+
4144
### Fixes
4245
- [24f1057](https://github.com/patternfly/patternfly-elements/commit/24f105789ffb01541e7892f59df0352272bab2a1) fix: updated pfe-autocomplete slotted input to use correct font (#1151)
4346
- [9501ebb](https://github.com/patternfly/patternfly-elements/commit/9501ebb87cfc371563c04ba155a101846fe26e20) fix: Update baseline snapshots to cover full page (#1172)

elements/pfe-accordion/demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
<link href="../../pfelement/dist/pfelement.min.css" rel="stylesheet">
1414

15-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
15+
1616

1717
<!-- Stylesheets for testing light DOM styles.
1818
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap-reboot.css">
1919
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/typebase.css/0.5.0/typebase.css">
2020
-->
21-
21+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
2222
<link rel="stylesheet" href="../../pfe-styles/dist/pfe-base.css" />
2323
<link rel="stylesheet" href="../../pfe-styles/dist/pfe-context.css" />
2424
<link rel="stylesheet" href="../../pfe-styles/dist/pfe-layouts.css" />

elements/pfe-autocomplete/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>PFElements: pfe-autocomplete Demo</title>
88

9-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
9+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
1010

1111
<!-- Stylesheets for testing light DOM styles.
1212
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap-reboot.css">

elements/pfe-avatar/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8">
66
<title>PFElements: pfe-avatar Demo</title>
77

8-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
8+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
99

1010
<!-- Stylesheets for testing light DOM styles.
1111
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap-reboot.css">

elements/pfe-badge/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<title>PatternFly Element | pfe-badge Demo</title>
99

10-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
10+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
1111

1212
<!-- Stylesheets for testing light DOM styles.
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap-reboot.css">

elements/pfe-band/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<title>PatternFly Element: Band Demo</title>
99

10-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
10+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
1111

1212
<!-- Stylesheets for testing light DOM styles.
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap-reboot.css">

elements/pfe-button/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<link href="../../pfelement/dist/pfelement.min.css" rel="stylesheet">
1414

15-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
15+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
1616

1717
<!-- Stylesheets for testing light DOM styles.
1818
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap-reboot.css">

elements/pfe-card/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/typebase.css/0.5.0/typebase.css">
1212
-->
1313

14-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
14+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
1515

1616
<link rel="stylesheet" href="../../pfe-styles/dist/pfe-base.css" />
1717
<link rel="stylesheet" href="../../pfe-styles/dist/pfe-context.css" />

elements/pfe-clipboard/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<link rel="stylesheet" href="../../pfe-styles/dist/pfe-base.css" />
2121
<link rel="stylesheet" href="../../pfe-styles/dist/pfe-context.css" />
2222
<link rel="stylesheet" href="../../pfe-styles/dist/pfe-layouts.css" />
23-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
23+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
2424

2525
<!-- uncomment the es5-adapter if you're using the umd version -->
2626
<script src="/examples/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>

elements/pfe-collapse/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<link href="../../pfelement/dist/pfelement.min.css" rel="stylesheet">
1414

15-
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&family=Red+Hat+Text:wght@400;500&display=swap" rel="stylesheet">
15+
<link rel="stylesheet" type="text/css" href="../../pfe-styles/dist/red-hat-font.min.css">
1616

1717
<!-- uncomment the es5-adapter if you're using the umd version -->
1818
<script src="/examples/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>

0 commit comments

Comments
 (0)