-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
chore: wiring ControlLabel to a new FormLabel #10388
Conversation
Creating new simple <FormLabel /> component and wiring all <label> and react-bootstrap.ControlLabel towards it. FormLabel becomes a pivotal point that can be altered to point to AntD when we're ready.
Codecov Report
@@ Coverage Diff @@
## master #10388 +/- ##
==========================================
+ Coverage 70.41% 70.45% +0.03%
==========================================
Files 604 605 +1
Lines 32429 32430 +1
Branches 3298 3301 +3
==========================================
+ Hits 22836 22848 +12
+ Misses 9487 9476 -11
Partials 106 106
Flags with carried forward coverage won't be shown. Click here to find out more.
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.
LGTM with one small note.
Also note that form items in Antd normally would just accept label text as an attribute and does not need a Label
component. Approving nevertheless for the improved consistency.
import React, { ReactNode } from 'react'; | ||
import { ControlLabel } from 'react-bootstrap'; | ||
|
||
interface Props { |
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.
FormLabelProps
would be preferred.
* chore: wiring ControlLabel to a new FormLabel Creating new simple <FormLabel /> component and wiring all <label> and react-bootstrap.ControlLabel towards it. FormLabel becomes a pivotal point that can be altered to point to AntD when we're ready. * lint * ViewportControl * addressing comments
Creating new simple component and wiring all
and react-bootstrap.ControlLabel towards it.
FormLabel becomes a pivotal point that can be altered to point to AntD
when we're ready.