Skip to content

Alert Component#86

Merged
100stacks merged 2 commits intomasterfrom
alert
Apr 16, 2020
Merged

Alert Component#86
100stacks merged 2 commits intomasterfrom
alert

Conversation

@nicko-winner
Copy link
Contributor

2020-04-10_19-23-49

@netlify
Copy link

netlify bot commented Apr 10, 2020

Deploy preview for helix-react ready!

Built with commit 504885e

https://deploy-preview-86--helix-react.netlify.com

Copy link
Contributor

@michaelmang michaelmang left a comment

Choose a reason for hiding this comment

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

👍 Looks good. I think it would be good at some point to do a pull request to add eslint and prettier to have consistent rules and code formatting.

status: PropTypes.string,
cta: PropTypes.string,
onOpen: PropTypes.func,
onClose: PropTypes.func
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it makes sense to specify which props should be marked with isRequired.

Copy link
Contributor Author

@nicko-winner nicko-winner Apr 13, 2020

Choose a reason for hiding this comment

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

I think just children may be the only required item do you see others?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you are correct. Also, I noticed that the persist prop is missing from the propTypes.

Do we want to default the persist and type props?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch. i'm tempted to not use default propTypes and just let helix-ui pick the defaults. That way our wrapper defaults wont get in the way of what Helix may set as defaults in the future. (makes the wrapper slightly more light weight). @100stacks you have an any opinion on if we should be setting defaults props/attributes before passing them on to helix?

Copy link
Member

Choose a reason for hiding this comment

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

@HelixDesignSystem/helix-react-core I think we left this open during our sync today. Balancing explicit defaults vs. implied HelixUI defaults.

We can address again as needed.

@100stacks
Copy link
Member

Fixes #19 (<Alert/>)

Copy link
Member

@100stacks 100stacks left a comment

Choose a reason for hiding this comment

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

Dev LGTM

status: PropTypes.string,
cta: PropTypes.string,
onOpen: PropTypes.func,
onClose: PropTypes.func
Copy link
Member

Choose a reason for hiding this comment

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

@HelixDesignSystem/helix-react-core I think we left this open during our sync today. Balancing explicit defaults vs. implied HelixUI defaults.

We can address again as needed.

@100stacks 100stacks merged commit 62651ee into master Apr 16, 2020
@100stacks 100stacks deleted the alert branch April 16, 2020 21:54
@100stacks 100stacks mentioned this pull request May 16, 2020
@100stacks 100stacks added this to the v1.0.0-rc.0 milestone Jul 21, 2020
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