-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Support 'fullWidth' prop on all text fields #979
Conversation
@@ -90,6 +90,8 @@ export function ComboBoxInput<O, V extends Value>(props: ComboBoxInputProps<O, V | |||
const multilineProps = allowWrap ? { textAreaMinHeight: 0, multiline: true } : {}; | |||
useGrowingTextField({ disabled: !allowWrap, inputRef, inputWrapRef, value: inputProps.value }); | |||
|
|||
console.log("otherProps", otherProps); |
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.
Snuck in
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.
Is the idea that text fields were just getting ridiculous too wide, so 550px is a better default max size? That makes sense...
Per making FormLines be lg, that sgtm but honestly not a ton of places use that yet 🤷 . Should be good though!
No, |
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.
With this PR we are allowing the option to remove the max-width now.
Ah gotcha! Kinda curious but sounds good.
3ddc8eb
to
a2b9fe2
Compare
## [2.327.0](v2.326.1...v2.327.0) (2023-12-07) ### Features * Support 'fullWidth' prop on all text fields ([#979](#979)) ([6bf26ac](6bf26ac))
🎉 This PR is included in version 2.327.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Adds support for a
PresentationFieldProps.fullWidth
property. The following components will respect the property:Updates the
FormLines
component to default to the"lg"
size instead of"full"
. This will hopefully minimize the impact on existing layouts as the previous default width for each field withinFormLines
was 550px. By using thelg
size, we'll continue to default the fields withinFormLines
to 550px.