-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add size prop for FormLabel component - Fixes #4886 #4893
Conversation
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 fix the lint errors and also update the tests.
src/FormLabel.js
Outdated
* | ||
* @type {('sm'|'lg')} | ||
*/ | ||
size: PropTypes.string, |
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.
This should be merged with the column
prop.
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.
as in column
should take true
or "sm"
or "lg"
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.
I see. But I thought it would be more consistent with FormControl this way?
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.
the issue is that the prop doesn't do anything if you're not specifying column...
Can you review this @taion ? |
www/src/examples/Form/InputSizes.js
Outdated
@@ -1,7 +1,14 @@ | |||
<> | |||
<Form.Group> | |||
<Form.Label size="lg" col> |
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 you fix this to show the actual API, and merge this in with the horizontal form groups section, or else make a new section paralleling the upstream TWBS docs?
Actually scratch that. I just realized that Bootstrap does not have classes for sizing labels when they are not in a column layout. |
thanks! |
Thank you! |
* master: (54 commits) docs: Add Glyphicon removal to "Migrating to v1" doc (react-bootstrap#4967) chore(deps): update all non-major dependencies (react-bootstrap#4964) docs: fixed typos (react-bootstrap#4957) refactor(OverlayTrigger): convert to function component (react-bootstrap#4938) Add missing horizontal in ListGroupProps (react-bootstrap#4864) chore(deps): update all non-major dependencies (react-bootstrap#4953) chore(deps): update dependency cross-env to v7 (react-bootstrap#4949) Label large dropdown as large in playground (react-bootstrap#4945) Fix typographical errors in Button docs (react-bootstrap#4943) docs: fix dropdown typos (react-bootstrap#4944) docs: Fix component spacing in examples (react-bootstrap#4914) chore(deps): update all non-major dependencies (react-bootstrap#4941) chore(deps): update dependency lint-staged to v10 (react-bootstrap#4942) react-bootstrap#4884 add responsive containers (react-bootstrap#4902) feat: add size prop for FormLabel component - Fixes react-bootstrap#4886 (react-bootstrap#4893) tests: added for Modal and OverlayTrigger (react-bootstrap#4931) test: increase test coverage with minor refactor (react-bootstrap#4922) chore(deps): update all non-major dependencies (react-bootstrap#4929) docs: fix element type used for Breadcrumb (react-bootstrap#4926) chore(deps): update dependency husky to v4 (react-bootstrap#4923) ...
No description provided.