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(icon): variant property #118

Merged
merged 4 commits into from
Feb 18, 2020
Merged

feat(icon): variant property #118

merged 4 commits into from
Feb 18, 2020

Conversation

shibulijack-fd
Copy link
Contributor

@shibulijack-fd shibulijack-fd commented Feb 18, 2020

  • add new property
  • propogate changes to dependent addons
  • test case

@shibulijack-fd shibulijack-fd changed the base branch from master to release February 18, 2020 06:54
Copy link
Contributor

@abhilashlr89 abhilashlr89 left a comment

Choose a reason for hiding this comment

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

Nice

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

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?

Copy link
Contributor Author

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.

@shibulijack-fd shibulijack-fd changed the base branch from release to master February 18, 2020 11:57
@shibulijack-fd shibulijack-fd merged commit 7905cac into master Feb 18, 2020
@shibulijack-fd shibulijack-fd deleted the nucleus-icon-fix branch February 18, 2020 12:12
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