-
-
Notifications
You must be signed in to change notification settings - Fork 828
Conversation
Specifying the font-weight here is harmful when using fonts that support Light or variable weights. Fixes element-hq/element-web#21171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears that there a couple more occurence of font-weight: 300
in the codebase that would probably be suceptible to the same issue you raised. Could you update those ones too?
I looked at @font-face
declaration and it appears that we're loading the following font weights: 400
, 500
, 600
, 700
for Inter
. And 400
and 700
for Inconsolata
Will also loop in the design team to confirm this is a change we're comfortable making
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me.
Please keep the design reviewers on. Without their approval we will not be abe to move this pull request forward
Unsure where those lighter fonts are being used, but, yeah, the current minimum weight should be 400. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the affected components now inheriting the base font-weight of 400
?
Excellent question! As far as I can tell I can't find where I'm not sure what a GroupView is so I can't verify manually in the Element client, but as far as I can tell (with my very limited knowledge here) the default weight for |
It is no longer used, can we kill that entire file as part of this PR please. |
Removing an potentially unused class seems to be unrelated to this issue, and I'd prefer if it were fixed in a separate PR. |
Editing a class which does not cause your bug due to being unused is also unrelated to this issue though? |
@janogarcia To move this along how about instead of removing the That will guarantee correct rendering regardless of context, however it might mean clean up is required in a different PR due to possible redundancy. |
Specifying the font-weight here is harmful when using fonts that support
Light or variable weights.
Signed-off-by: glob [email protected]
Notes: Remove light weight font rendering
This PR currently has no changelog labels, so will not be included in changelogs.
A reviewer can add one of:
T-Deprecation
,T-Enhancement
,T-Defect
,T-Task
to indicate what type of change this is, or addType: [enhancement/defect/task]
to the description and I'll add them for you.Preview: https://pr7880--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.