feat(text-input): new xs size#22038
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #22038 +/- ##
==========================================
- Coverage 94.91% 94.89% -0.02%
==========================================
Files 539 539
Lines 45015 45055 +40
Branches 6352 6419 +67
==========================================
+ Hits 42727 42756 +29
- Misses 2156 2167 +11
Partials 132 132
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hi @maradwan26, thanks for working on this.
Everything from an XS size implementation perspective looks good to go! 🚀
Extra thanks for the detailed PR description, super helpful!
To address some of your open questions, I had to go down the history lane to find Inline Text input's introduction
- I think the Inline Text input was implemented without a design spec.
- This PR doesn't fully resolve error and warning states for Inline components, attaching screenshot for reference.
- For now, in context of this PR, your current implementation looks better than existing buggy implementation, but definitely worth having a solid opinion on all Inline field input components. I have created an issue for the same.
8959b3a
* feat(text-input): new xs size * fix: password input, flex wrap * fix(form): break word on overflow * feat(storybook): new size control and inline story * chore: update snapshots * feat(skeleton): size

Closes #21781
Partially addresses #21969
Contributes to #21786
Adds
xssize to TextInput with contextual layout token support in Web ComponentsChangelog
New
xssize and updated storybook control accordinglysizeprop/attribute to TextInputSkeleton, along with the newxssizecds--form-requirementclass not breaking words to wrap textChanged
inlinevariant with design specai-label -> invalidtoinvalid -> ai-labelinvalidTextwould not render when ininlinevariantinvalidTextdid not have the colour$text-errorwhen ininlinevariantmax-inline-sizeof the label/helper/invalid/warn-text from 128px to 142px to align with the design spec and fit "Error message goes here" into one line and not overflow into a second lineRemoved
cds--label--inline--lgclass from the stylesTesting / Reviewing
xs,sm,md, andlgshould render as expectedPR Checklist
As the author of this PR, before marking ready for review, confirm you:
[ ] Wrote passing tests that cover this change