Commit e12322f
fix(frontend): roboto font loading DEV-887 (#6199)
### 💭 Notes
Firefox has a feature that protects users from being targeted using
their available system fonts. This feature causes our Roboto font to not
be properly loaded when using Private browsing. I'm updating the way in
which we load Roboto to avoid the problem.
### 👀 Preview steps
1. Use Private browsing in Firefox
2. Open any KPI route (don't even need to be logged in)
3. 🔴 [on main] notice that the font used is the default sans-serif
browser font
4. 🟢 [on PR] notice that the font used is Roboto
ℹ️ The easiest way is to use Dev Tools, and in "Inspector" tab selecting
"Fonts" sub-tab on the right. "All Fonts on Page" should list only
`k-icons` and few different `Roboto` (all comming from
`/static/compiled/…`).
---------
Co-authored-by: Paulo Amorim <[email protected]>1 parent e90401d commit e12322f
File tree
5 files changed
+14
-127
lines changed- jsapp
- js
- scss
- fonts
5 files changed
+14
-127
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
13 | 23 | | |
14 | 24 | | |
15 | 25 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments