Skip to content

Conversation

dimovpetar
Copy link
Contributor

@dimovpetar dimovpetar commented Apr 28, 2022

  • Added new colors
  • Deleted logic for active badge

Related to #5006

@dimovpetar dimovpetar requested review from fifoosid and a team April 28, 2022 08:31
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) */
Copy link
Contributor

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?

Copy link
Contributor Author

@dimovpetar dimovpetar Apr 29, 2022

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);
Copy link
Contributor

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?

Copy link
Contributor Author

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

@dimovpetar dimovpetar requested a review from a team May 3, 2022 09:05
@dimovpetar dimovpetar closed this May 3, 2022
@dimovpetar dimovpetar reopened this May 3, 2022
@dimovpetar dimovpetar closed this May 3, 2022
@dimovpetar dimovpetar reopened this May 3, 2022
@dimovpetar dimovpetar merged commit 74470fe into master May 3, 2022
@dimovpetar dimovpetar deleted the badge_horizon branch May 3, 2022 15:09
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