Skip to content
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

[Rem converter]: Support for different base font-sizes #196

Merged
merged 13 commits into from
Oct 13, 2023

Conversation

MayaMarjut
Copy link
Contributor

@MayaMarjut MayaMarjut commented Oct 9, 2023

https://jira.funidata.fi/browse/DS-212

Created a new CSS variable fudis-rem-multiplier and a new utility function convertToRemValue, which converts given rem numbers and returns value as a string with 'rem' abbreviation.

Fudis-rem-multiplier is used for changing values if needed from Fudis 16px based system to another REM base system.
Changing REM base requires now that fudis-rem-multiplier- and application font-size is changed in project root styles. Documentation was updated concerning the project setup.

A button was added to Application sandbox, for testing rem base change between 16px -> 10px base.

For testing fudis-rem-multiplier in Karma, karma.style.css file was configured to support 10px base REM values.

All hard coded rem values where checked in project and divided with a new fudis-rem-multiplier.

@github-actions github-actions bot temporarily deployed to docs-DS-212-Foundations-tuki-rem-arvoille October 9, 2023 13:23 Inactive
@MayaMarjut MayaMarjut changed the title [FEATURE]: Fudis rem multiplier [FEATURE/Rem converter]: Rem converter utility function Oct 10, 2023
@MayaMarjut MayaMarjut changed the title [FEATURE/Rem converter]: Rem converter utility function [FEATURE / Rem converter]: Rem converter utility function Oct 10, 2023
@MayaMarjut MayaMarjut added the feature New feature that is presented for the first time label Oct 10, 2023
@MayaMarjut MayaMarjut changed the title [FEATURE / Rem converter]: Rem converter utility function [Rem converter]: Rem converter utility function Oct 10, 2023
@videoeero videoeero changed the title [Rem converter]: Rem converter utility function [Rem converter]: Support for different base font-sizes Oct 10, 2023

##### Define Primary Colors as CSS Variables in Project Root Style
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--> Set Primary Colors

@@ -72,6 +73,27 @@ import { NgxFudisModule } from 'ngx-fudis';
--fudis-color-primary-extra-dark: #hex;
}
```
##### Define Application's REM base CSS Variables in Project Root Style
Copy link
Contributor

@videoeero videoeero Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--> Set Rem Base Value

@github-actions github-actions bot temporarily deployed to docs-DS-212-Foundations-tuki-rem-arvoille October 13, 2023 09:48 Inactive
@github-actions github-actions bot temporarily deployed to docs-DS-212-Foundations-tuki-rem-arvoille October 13, 2023 11:05 Inactive
@github-actions github-actions bot temporarily deployed to docs-DS-212-Foundations-tuki-rem-arvoille October 13, 2023 11:15 Inactive
@github-actions github-actions bot temporarily deployed to docs-DS-212-Foundations-tuki-rem-arvoille October 13, 2023 11:18 Inactive
@github-actions github-actions bot temporarily deployed to docs-DS-212-Foundations-tuki-rem-arvoille October 13, 2023 11:30 Inactive
@RiinaKuu RiinaKuu merged commit 7c48a9a into main Oct 13, 2023
@RiinaKuu RiinaKuu deleted the DS-212-Foundations-tuki-rem-arvoille branch October 13, 2023 11:39
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature that is presented for the first time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants