-
Notifications
You must be signed in to change notification settings - Fork 227
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(radio): add component #448
Conversation
Codecov Report
@@ Coverage Diff @@
## rc7.0 #448 +/- ##
==========================================
+ Coverage 96.56% 96.65% +0.09%
==========================================
Files 57 59 +2
Lines 1923 1975 +52
Branches 226 232 +6
==========================================
+ Hits 1857 1909 +52
Misses 66 66
Continue to review full report at Codecov.
|
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.
Also add radio to main README
packages/radio/NativeControl.js
Outdated
|
||
const NativeControl = (props) => { | ||
const { | ||
setRippleActivator, |
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.
can we replace this with rippleActivatorRef
similar to how it is in Checkbox?
packages/radio/index.js
Outdated
const children = React.Children.only(this.props.children); | ||
const updatedProps = Object.assign({}, children.props, { | ||
disabled: this.state.disabled, | ||
setRippleActivator: this.setRippleActivator, |
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.
we can pass the rippleActivator as a ref directly to NativeControl
(see comment above)
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.
remove comment, otherwise LGTM
packages/radio/index.js
Outdated
} | ||
|
||
setRippleActivator = (element) => this.rippleActivator = element; | ||
// setRippleActivator = (element) => this.rippleActivator = element; |
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.
remove comment
fixes #157