-
Notifications
You must be signed in to change notification settings - Fork 12
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(icon): variant property #118
Conversation
shibulijack-fd
commented
Feb 18, 2020
•
edited
Loading
edited
- add new property
- propogate changes to dependent addons
- test case
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.
get _classNames() { | ||
let customClass = this.get('customClass'); | ||
let size = this.get('size') ? this.get('size') : 'medium'; | ||
let classNames = `nucleus-icon nucleus-icon--${size}`; | ||
let size = this.get('size') ? this.get('size') : DEFAULT_SIZE; |
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.
Do we need the conditional statement anymore?
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.
You're right, we don't need it. Refactored.