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

fix(ui5-avatar): Fixed font-size and color-scheme #3799

Merged
merged 19 commits into from
Oct 8, 2021

Conversation

PetyaMarkovaBogdanova
Copy link
Contributor

No description provided.

Copy link
Contributor

@nnaydenow nnaydenow left a comment

Choose a reason for hiding this comment

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

Hi @PetyaMarkovaBogdanova ,

You have to extract the font-size in variable which value to be changed when the theme is changed. In belize and quartz themes the font size is different.

@@ -1,5 +1,6 @@
@import "../base/sizes-parameters.css";
@import "../base/Avatar-parameters.css";
Copy link
Member

Choose a reason for hiding this comment

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

you can remove
@import "../base/Avatar-parameters.css";

as you import
@import "./Avatar-parameters.css";

@nnaydenow
Copy link
Contributor

Hi @ilhan007,

For me it's look okey.

@@ -0,0 +1,7 @@
:root {
Copy link
Member

@ilhan007 ilhan007 Oct 5, 2021

Choose a reason for hiding this comment

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

The Convention that is currently in use is: here in sap_fiori_3_dark/Avatar-parameters.css
we import the base params
@import "../base/Avatar-parameters.css";

and then in sap_fiori_3_dark/parameters-bundle.css leave only the theme specific import
@import "./Avatar-parameters.css";

and removing @import "../base/Avatar-parameters.css"; from sap_fiori_3_dark/parameters-bundle.css
as it will be imported above

And this applies for all the themes that you introduce a theme specific params file (as sap_fiori_3_dark/Avatar-parameters.css )

The way you did it, it works as well, but it's not consistent will all the other components params.

Copy link
Member

@ilhan007 ilhan007 left a comment

Choose a reason for hiding this comment

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

One comment below

@ilhan007 ilhan007 self-requested a review October 8, 2021 05:45
@ilhan007
Copy link
Member

ilhan007 commented Oct 8, 2021

+1 from my side

@ilhan007 ilhan007 merged commit ea8ef59 into master Oct 8, 2021
@ilhan007 ilhan007 deleted the fix-avatar-fontsize-color-2 branch October 8, 2021 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants