Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Replace Sass variables and hard-coded values with CSS custom properties - _font-sizes.pcss #10555

Closed
wants to merge 3 commits into from
Closed

Conversation

luixxiul
Copy link
Contributor

@luixxiul luixxiul commented Apr 9, 2023

Closes element-hq/element-web#25072
For element-hq/element-web#21656

This PR intends to replace Sass variables and hard-coded font-size values with variables specified on _font-sizes.pcss based on the style guide, adding todo comments to lines which should be addressed.

type: task

Signed-off-by: Suguru Hirahara luixxiul@users.noreply.github.com

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This change is marked as an internal change (Task), so will not be included in the changelog.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
@github-actions github-actions bot added Z-Community-PR Issue is solved by a community member's PR T-Task Refactoring, enabling or disabling functionality, other engineering tasks labels Apr 9, 2023
@luixxiul luixxiul changed the title Css variables font sizes Replace Sass variables with CSS custom properties - _font-sizes.pcss Apr 9, 2023
@luixxiul luixxiul changed the title Replace Sass variables with CSS custom properties - _font-sizes.pcss Replace Sass variables and hard-coded values with CSS custom properties - _font-sizes.pcss Apr 9, 2023
@luixxiul
Copy link
Contributor Author

Updating this line on the code style guide will be required too.

@luixxiul
Copy link
Contributor Author

luixxiul commented Apr 10, 2023

The build fails because there are several lines onres/css/structures/ErrorView.pcss of element-web which depend on the existing variables.

@luixxiul
Copy link
Contributor Author

Closing as I believe this must be irrelevant for Compound stuff, and there are too many conflicts.

@luixxiul luixxiul closed this Apr 21, 2023
@luixxiul luixxiul deleted the css-variables-font-sizes branch April 21, 2023 13:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace hard-coded font-size values with variables specified on _font-sizes.pcss
1 participant