-
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
fix(text-field): add missing prop style
#184
fix(text-field): add missing prop style
#184
Conversation
TextField component is not passing `otherProps`, because of that we cannot use style prop. It seems like it's your intention not passing `otherProps` to the root element, so I have explicitly added `style` prop.
Hmmm is the correct thing to do to actually pass ...otherProps? I think it is. It is just the wrapper component, but are there other events that this component should handle as well? Also if we decide to just keep style on here, we will need tests. |
I understand your concern, but it seems like a bit weird in that I can add |
Oh no I am agreeing with you. But I'm saying someone should be able to pass whatever they want including |
Yeah, I like that. Actually, it's better. 👍 |
Cool! Would you mind doing the changes? Also adding a test case for the style object being passed? |
Yep. I will try! 😄 |
Thanks :) We appreciate the help! |
Codecov Report
@@ Coverage Diff @@
## master #184 +/- ##
==========================================
+ Coverage 98.78% 98.78% +<.01%
==========================================
Files 21 21
Lines 821 824 +3
Branches 76 76
==========================================
+ Hits 811 814 +3
Misses 10 10
Continue to review full report at Codecov.
|
I just added |
I understand what you're saying but if we have one for classNames we should also have one for styles. In case someone wants to refactors the implementation, we'll know that styles needs to be included. |
It makes sense. I will add the test! 😄 |
Thanks! |
I just added the test case. I think it's enough to check if Please check this out! 😄 |
@simsim0709 sorry I dropped the ball on this one. Looking now |
Running tests on #184 |
@simsim0709 can you also sign it for the CLA please |
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.
@simsim0709 I thik you might need to add isRtl to the props blacklist. Getting a warning in the screenshot tests. See image:
@moog16 . I just added Thanks. |
@simsim0709 you have to sign each PR you submit. Thanks! |
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.
looks good - we can merge this once the Test's PR #204 test's pass and @simsim0709 signs this PR
Hmm, @moog16 Can you give me an instruction? Thanks. |
@simsim0709 I'm not sure what you're referring to, but it looks like that cla/google check has passed. We are good to go. |
#204's tests are passing - merging! |
Then, no problem. I saw CI warning yesterday. Have a good day! 👍 |
TextField component is not passing
otherProps
, because of that we cannot use style prop.It seems like it's your intention not passing
otherProps
to the root element, so I have explicitly addedstyle
prop.