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

feat: CU-1n5w3vb add loading and variants to badge #167

Conversation

snqb
Copy link
Contributor

@snqb snqb commented Dec 6, 2021

Card: https://app.clickup.com/t/1n5w3vb

This PR adds:

  • the awaited loading state for the badge
  • bordered mode
  • icon prop
  • minor changes to the color scheme

BREAKING:

this PR removes these values from variant prop:

  • bold, which is replaced with default now
  • border, we now use the mode="bordered"

To be noted:

  • the warning variant colors are changed, but this should not lead to changes to the code, as the semantics stay the same

DEMO:

bandicam.2021-12-06.21-40-51-888.mp4

@giardiv
Copy link
Contributor

giardiv commented Dec 6, 2021

Task linked: CU-1n5w3vb Badges: update and clean code

}

// this is a workaround because styled-system does not support theme colors for `linear-gradient`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@snqb snqb force-pushed the CU-1n5w3vb_Badges-update-and-clean-code_Esen-Dzhailobaev branch from 098eb2c to 29d02db Compare December 6, 2021 15:34
@@ -69,7 +69,8 @@ const theme: ITheme = {
red: '#EB5757',
orange: '#f2994a',
purple: '#9B51E0',
yellow: '#FFF066',
yellow: '#FFE600',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this yellow was just wrong, see Figma

'> span': {
color: 'white',
color: 'grayShade3',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the base color was changed

@snqb snqb marked this pull request as ready for review December 6, 2021 15:41
@snqb snqb changed the title feat: add loading and variants to badge feat: CU-1n5w3vb add loading and variants to badge Dec 6, 2021
@snqb snqb self-assigned this Dec 6, 2021
@giardiv giardiv merged commit 5c51cdb into logicalclocks:dev Dec 7, 2021
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