-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Pass labelProps to DateField and SelectField #485
Conversation
Codecov Report
@@ Coverage Diff @@
## master #485 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 157 157
Lines 1401 1401
=====================================
Hits 1401 1401
Continue to review full report at Codecov.
|
@@ -43,6 +43,7 @@ const renderSelect = ({ | |||
showInlineError, | |||
transform, | |||
value, | |||
labelProps, |
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.
Please keep these ordered.
API.md
Outdated
@@ -1,5 +1,6 @@ | |||
# Table of Contents | |||
|
|||
- [Table of Contents](#table-of-contents) |
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.
It's a good addition. Leave it as it is now, but it's better not to mix purposes of PR.
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.
Oh, vscode did this automatically, didn't mean to do that.
Should be ok. |
Addresses #481.
It turns out there was only
DateField
andSelectField
that can use the extralabelProps
. TheTextField
component, used in most places, can already get aInputLabelProps
prop that will be passed to itsInputLabel
.For the sake of consistency, I changed the
FormLabel
toInputLabel
onDateField
, as I don't think it is required. I'll revert it if there was a specific reason behind it.