-
Notifications
You must be signed in to change notification settings - Fork 85
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
InputWidth is not working in Textbox for "carbon-react": "106.6.5", #5234
Comments
Hi @harpalsingh, I don't think we had a requirement for this previously but we have a team asking for the new validation message to be 100% width of a Form but have the input width a different size. Do you know if this is something coming in the near future or will it be new designs? |
@DipperTheDan I've seen a few requests for this. It would be a variation/prop needed where can specify a fixed width override on the input field only where. By default though, the field width should be 100% the width of the wrapper that contains the label, hint text and error message. See attached a similar solution that i've just added for date picker in our figma library. On our end, i'll add a ticket for us to add to our figma library. However, does this unblock you for now? |
Awesome thanks for the update @ljemmo, I noticed the DS docs on |
FE-5506 |
surfaces the `maxWidth` prop on `Textarea`, `Textbox`, `Decimal`, `GroupedCharacter`, `Number`, `Search`, `MultiSelect`, `FilterableSelect` and `SimpleSelect` components to allow consumers to set max-width on the input and to allow label and validation strings to exceed its width fix #5494, fix #5234
surfaces the `maxWidth` prop on `Textarea`, `Textbox`, `Decimal`, `GroupedCharacter`, `Number`, `Search`, `MultiSelect`, `FilterableSelect` and `SimpleSelect` components to allow consumers to set max-width on the input and to allow label and validation strings to exceed its width fix #5494, fix #5234
surfaces the `maxWidth` prop on `Textarea`, `Textbox`, `Decimal`, `GroupedCharacter`, `Number`, `Search`, `MultiSelect`, `FilterableSelect` and `SimpleSelect` components to allow consumers to set max-width on the input and to allow label and validation strings to exceed its width fix #5494, fix #5234
surfaces the `maxWidth` prop on `Textarea`, `Textbox`, `Decimal`, `GroupedCharacter`, `Number`, `Search`, `MultiSelect`, `FilterableSelect` and `SimpleSelect` components to allow consumers to set max-width on the input and to allow label and validation strings to exceed its width fix #5494, fix #5234
surfaces the `maxWidth` prop on `Textarea`, `Textbox`, `Decimal`, `GroupedCharacter`, `Number`, `Search`, `MultiSelect`, `FilterableSelect` and `SimpleSelect` components to allow consumers to set max-width on the input and to allow label and validation strings to exceed its width fix #5494, fix #5234
🎉 This issue has been resolved in version 111.13.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Current behaviour
Hi Team,
The inputwidth property is not supported in "carbon-react": "106.6.5" when using the new validation.
Expected behaviour
The Width of Textbox should be change with inputWidth property when using the new validation.
CodeSandbox or Storybook URL
https://codesandbox.io/s/withered-sun-vglx64?file=/src/index.js
JIRA Ticket (Sage Only)
SBS-33224
Suggested Solution
No response
Carbon Version
106.6.5
Design Tokens Version
No response
What browsers are you seeing the problem on?
Chrome
What Operating System are you seeing the problem on?
Windows
Anything else we should know?
No response
Confidentiality
The text was updated successfully, but these errors were encountered: