-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(ui): Tweak form field layout #6879
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
Conversation
Generated by 🚫 danger |
| width: 50%; | ||
| padding-left: 10px; | ||
| position: relative; | ||
| overflow: hidden; |
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.
Prevent controls with a long string from overflowing
|
|
||
| const FormFieldWrapper = styled(({highlighted, ...props}) => <Flex {...props} />)` | ||
| padding: 15px 20px; | ||
| padding: 15px 0 15px 20px; |
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.
Removed right padding because of whitespace from control state icons
| const FormFieldIsSaved = styled.div` | ||
| color: ${p => p.theme.green}; | ||
| animation: ${fadeOut} 0.3s ease 2s 1 forwards; | ||
| position: absolute; |
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.

Had to change FormField layout a bit, only noticeable change is the padding-right which we can tweak a bit.
Reason for this is in a future PR where we have a field that overflows (API keys) and had to do various nesting of flex/non-flex boxes to support it (the error with
position: absolutemake things trickier)