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

Pass labelProps to DateField and SelectField #485

Merged
merged 5 commits into from
Nov 13, 2018

Conversation

Floriferous
Copy link
Contributor

@Floriferous Floriferous commented Nov 8, 2018

Addresses #481.

It turns out there was only DateField and SelectField that can use the extra labelProps. The TextField component, used in most places, can already get a InputLabelProps prop that will be passed to its InputLabel.

For the sake of consistency, I changed the FormLabel to InputLabel on DateField, as I don't think it is required. I'll revert it if there was a specific reason behind it.

@Floriferous Floriferous requested a review from radekmie as a code owner November 8, 2018 19:05
@codecov
Copy link

codecov bot commented Nov 8, 2018

Codecov Report

Merging #485 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #485   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         157    157           
  Lines        1401   1401           
=====================================
  Hits         1401   1401
Impacted Files Coverage Δ
packages/uniforms-material/src/DateField.js 100% <ø> (ø) ⬆️
packages/uniforms-material/src/SelectField.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b9084f7...cd6da2f. Read the comment docs.

@radekmie radekmie added the Type: Feature New features and feature requests label Nov 12, 2018
@@ -43,6 +43,7 @@ const renderSelect = ({
showInlineError,
transform,
value,
labelProps,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep these ordered.

packages/uniforms-material/src/DateField.js Show resolved Hide resolved
API.md Outdated
@@ -1,5 +1,6 @@
# Table of Contents

- [Table of Contents](#table-of-contents)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@Floriferous
Copy link
Contributor Author

Should be ok.

@radekmie radekmie merged commit 6e38522 into vazco:master Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New features and feature requests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants