-
-
Notifications
You must be signed in to change notification settings - Fork 830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Sass variables with custom properties on _font-weights.pcss
#10554
Replace Sass variables with custom properties on _font-weights.pcss
#10554
Conversation
_font-weights.pcss
_font-weights.pcss
_font-weights.pcss
_font-weights.pcss
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
_font-weights.pcss
--font-semi-bold
on _font-weights.pcss
--font-semi-bold
on _font-weights.pcss
_font-weights.pcss
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.
great, thanks!
Fixing the conflict.. |
Head branch was pushed to by a user without write access
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.
looks like there's still a reference to $font-semi-bold
somewhere which is breaking CI
@@ -27,12 +27,10 @@ $SpaceRoomViewInnerWidth: 428px; | |||
font-weight: $font-semi-bold; |
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.
here, in fact
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.
Right, addressed with 9e30d1b.
This time it finally should be ok.. |
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
For element-hq/element-web#21656 and element-hq/element-web#25073
This PR intends to replace existing Sass variables on
_font-weights.pcss
and declarations with hard-coded value (font-weight: 600
) with CSS custom properties, based on the style guide.Currently there are two custom properties on
_font-weights.pcss
(--font-normal
and--font-semi-bold
). Custom properties for the other weight values are yet to be implemented.The PR is based on the assumption that
font-weight: 600
is always equal tofont-weight: var(--font-semi-bold)
. Please correct me if I am wrong.type: task
Signed-off-by: Suguru Hirahara luixxiul@users.noreply.github.com
Checklist
This change is marked as an internal change (Task), so will not be included in the changelog.