-
Notifications
You must be signed in to change notification settings - Fork 47
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(stepper): add custom color for stepper #673
🚀 feat(stepper): add custom color for stepper #673
Conversation
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
Co-authored-by: Luan Lorenzo <[email protected]>
`, | ||
return css` | ||
width: 95px; | ||
margin-top: 10px; |
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.
Codacy has a fix for the issue: Delete ··
margin-top: 10px; | |
margin-top: 10px; |
text-align: center; | ||
`, | ||
return css` | ||
width: 95px; |
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.
Codacy has a fix for the issue: Delete ··
width: 95px; | |
width: 95px; |
: stepper.label.color.inactive}; | ||
font-size: ${stepper.label.font.size}px; | ||
text-align: center; | ||
`; |
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.
Codacy has a fix for the issue: Replace ····
with ··
`; | |
`; |
margin-top: 10px; | ||
margin-left: -40px; | ||
}) => { | ||
const state = secondary ? 'secondary' : 'active'; |
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.
Codacy has a fix for the issue: Delete ··
const state = secondary ? 'secondary' : 'active'; | |
const state = secondary ? 'secondary' : 'active'; |
font-size: ${stepper.label.font.size}px; | ||
text-align: center; | ||
`, | ||
return css` |
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.
Codacy has a fix for the issue: Delete ··
return css` | |
return css` |
? stepper.label.color[state] | ||
: stepper.label.color.inactive}; | ||
font-size: ${stepper.label.font.size}px; | ||
text-align: center; |
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.
Codacy has a fix for the issue: Delete ··
text-align: center; | |
text-align: center; |
); | ||
|
||
const Label = styled(Text.Bold)( | ||
({ | ||
active, | ||
secondary, |
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.
Codacy has a fix for the issue: Replace ····
with ··
secondary, | |
secondary, |
margin-left: -40px; | ||
color: ${active | ||
? stepper.label.color[state] | ||
: stepper.label.color.inactive}; |
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.
Codacy has a fix for the issue: Replace ········
with ······
: stepper.label.color.inactive}; | |
: stepper.label.color.inactive}; |
width: 95px; | ||
margin-top: 10px; | ||
margin-left: -40px; | ||
color: ${active |
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.
Codacy has a fix for the issue: Delete ··
color: ${active | |
color: ${active |
width: 95px; | ||
margin-top: 10px; | ||
margin-left: -40px; | ||
}) => { |
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.
Codacy has a fix for the issue: Delete ··
}) => { | |
}) => { |
return css` | ||
width: 95px; | ||
margin-top: 10px; | ||
margin-left: -40px; |
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.
Codacy has a fix for the issue: Delete ··
margin-left: -40px; | |
margin-left: -40px; |
color: ${active | ||
? stepper.label.color[state] | ||
: stepper.label.color.inactive}; | ||
font-size: ${stepper.label.font.size}px; |
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.
Codacy has a fix for the issue: Delete ··
font-size: ${stepper.label.font.size}px; | |
font-size: ${stepper.label.font.size}px; |
margin-top: 10px; | ||
margin-left: -40px; | ||
color: ${active | ||
? stepper.label.color[state] |
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.
Codacy has a fix for the issue: Delete ··
? stepper.label.color[state] | |
? stepper.label.color[state] |
Description 📄
We add a prop for Stepper receive a custom color.
Platforms 📲
Type of change 🔍
How Has This Been Tested? 🧪
use a stepper component with color prop.
Unit Test
Snapshot Test
Checklist: 🔍
Screenshots 📸