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

icon components #234

Merged
merged 4 commits into from
Feb 15, 2020
Merged

icon components #234

merged 4 commits into from
Feb 15, 2020

Conversation

ainneo
Copy link
Member

@ainneo ainneo commented Feb 7, 2020

Icon components have been created and ready for review

@ainneo ainneo requested a review from sellnat77 February 7, 2020 05:48
@ainneo ainneo mentioned this pull request Feb 7, 2020
@ExperimentsInHonesty
Copy link
Member

Fixes #226

color: PropTypes.string,
size: PropTypes.oneOf(['small', 'medium', 'large']),
iconTag:PropTypes.string,
iconSize:PropTypes.string,
Copy link
Member

Choose a reason for hiding this comment

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

Do you think we can add a PropTypes.oneOf here similar to how you did the size proptype, but with the FontAwesome size variations?

Copy link
Member

Choose a reason for hiding this comment

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

Added propTypes options for iconSize.

handleClick: PropTypes.func,
color: PropTypes.string,
size: PropTypes.oneOf(['small', 'medium', 'large']),
iconTag:PropTypes.string,
Copy link
Member

Choose a reason for hiding this comment

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

Can we change the word iconTag to icon?

Copy link
Member

Choose a reason for hiding this comment

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

Changed as requested.

[`is-${size}`]: size, //for small, meduim, large, span tag
[`has-text-${color}`]: color,
[`fas-fa${iconSize}`]:iconSize //for fa-lg, fa-2x, fa-3x, icon tag
});
Copy link
Member

Choose a reason for hiding this comment

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

add icon to the classNames function so we can just add the name of the icon without the fa-

Copy link
Member

Choose a reason for hiding this comment

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

Completed.

Copy link
Member

@brodly brodly left a comment

Choose a reason for hiding this comment

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

Just a few comments to address before we push, but overall great job

@sellnat77 sellnat77 added the Role: Frontend React front end work label Feb 12, 2020
@adamkendis adamkendis linked an issue Feb 14, 2020 that may be closed by this pull request
@brodly brodly merged commit 4d34e91 into dev Feb 15, 2020
@brodly brodly deleted the icons branch February 15, 2020 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Role: Frontend React front end work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Icon Component
5 participants