-
Notifications
You must be signed in to change notification settings - Fork 278
feat(u5-badge): implement SAP Horizon theme family #5143
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
Conversation
text-transform: uppercase; | ||
letter-spacing: inherit; | ||
font-size: var(--ui5-badge-font-size); /* origin from --sapFontSmallSize (0.75rem) */ | ||
font-size: 0.75em; /* origin from --sapFontSmallSize (0.75rem) */ |
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.
Why don't we use the variable var(--sapFontSmallSize?
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.
Because it's in rem
. Badge uses em
since #729, I didn't want to change that
border-radius: 0.5rem; | ||
box-sizing: border-box; | ||
font-family: "72override", var(--sapFontFamily); | ||
font-weight: var(--_ui5-badge-font-weight); |
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.
shoudn't we use the variables, so it is easear for restyling later?
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.
I removed it because it's not used in any theme and only brings extra complexity
Related to #5006