Uh oh!
There was an error while loading. Please reload this page.
Let FormControl accept any input - #1968
Conversation
… spot we'd normally render a Primer input component
🦋 Changeset detectedLatest commit: aa500e9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
siddharthkp
left a comment
There was a problem hiding this comment.
Minor changes requested in docs, the code looks good!
Approving in advance :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| flexDirection="column" | ||
| width="100%" | ||
| sx={{...(isLabelHidden ? {'> *:not(label) + *': {marginTop: 2}} : {'> * + *': {marginTop: 2}}), ...sx}} | ||
| sx={{...(isLabelHidden ? {'> *:not(label) + *': {marginTop: 1}} : {'> * + *': {marginTop: 1}}), ...sx}} |
There was a problem hiding this comment.
This has nothing to do with accepting different input components.
I looked at this with fresh eyes and thought the elements were spaced too far apart.
* renders any non-FormControl components passed into FormControl in the spot we'd normally render a Primer input component * adds changeset * appease the linter * Update docs/content/FormControl.mdx Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com> * addresses PR feedback Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
Instead of rendering unexpected*
FormControlchildren before the other children, we render them in the same spot we'd normally render an input.* any component that is not a Primer input component or not in the
FormControlnamespaceCloses#1964
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.