-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Create form field number #8634
base: main
Are you sure you want to change the base?
Create form field number #8634
Conversation
`; | ||
|
||
const StyledInputContainer2 = styled.div<{ | ||
multiline?: boolean; |
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.
multiline not needed for number
flex-direction: column; | ||
`; | ||
|
||
const StyledInputContainer = styled.div<{ |
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.
Should be a common Overlay for primitive components
<StyledVariableContainer> | ||
{extractVariableLabel(draftValue)} | ||
|
||
<button |
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.
don't we have a component already for this?
<StyledInputContainer> | ||
<StyledInputContainer2> | ||
{editingMode === 'input' ? ( | ||
<StyledInput |
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.
let's separate:
- FormNumberFieldInput should be a simple number input with a FormOverlay to add design
- Variable button / dropdown should come from the parent
Notes:
FormFieldInput
.To do:
isTextField()
,isNumberField()
, etc. calls in a separateFormField
component that we can reuse across actions