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(badge): add badge component code #919
Conversation
@if map-has-key($props, 'border') { | ||
border-color: map-get($props, 'border'); | ||
} | ||
|
||
@if map-has-key($props, 'background') { | ||
background-color: map-get($props, 'background'); | ||
} |
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.
@if map-has-key($props, 'border')
@if map-has-key($props, 'background')
As of there are no borderless versions of badges, it is not necessary to test for the presence of the value.
So you can directly write your code as follow:
@mixin set-badge-theme($props) {
color: map-get($props, "text");
border-color: map-get($props, "border");
background-color: map-get($props, "background");
}
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 have read the contributing guidelines
Does this PR introduce a breaking change?
Describe the changes
GitHub issue number or Jira issue URL: https://jira.adeo.com/browse/MZC-130
Other information