Commit a1d3775
authored
fix: Set correct font-weight to variable font (#4550)
Some `font-weight` CSS directives do not work on Cozy apps. For example,
in this screenshot from cozy-settings, "Add an additional security
level" has `font-weight: 500` set by cozy-ui but it is not taken into
account.
<img width="551" height="664" alt="Screenshot 2025-07-18 at 16 53 52"
src="https://github.com/user-attachments/assets/e311ba69-1a75-4c8c-8aa8-b3d4d52d8022"
/>
It seems that setting a range in
[@font-face](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-weight#syntax)
like in this PR solves the issue. It worked by changing it directly in
Firefox developer tools but in this PR it does not.
So to summarize :
- There is an issue with font weight
- I think it is related to how we use @font-face
- This PR does not fix it
Did I miss something ?4 files changed
Lines changed: 7347 additions & 7569 deletions
File tree
- assets/fonts
- web/statik
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
0 commit comments