Fix invalid and warn states across compnents#21857
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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21857 +/- ##
==========================================
- Coverage 94.93% 94.90% -0.03%
==========================================
Files 541 541
Lines 45256 45256
Branches 6393 6336 -57
==========================================
- Hits 42963 42952 -11
- Misses 2161 2172 +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:
|
✅ Deploy Preview for v11-carbon-react ready!
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. |
devadula-nandan
left a comment
There was a problem hiding this comment.
can you fix the pr title to address invalid and warn states which appears to be the scope of this pr
below components are missing invalid and warn states
dropdown
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-dropdown--with-toggletip-label
the controls aren't available for this story yet to test it. which will be covered in #20909
combobox
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-combobox--controlled&args=invalid:!false;warn:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-combobox--experimental-auto-align&args=invalid:!false;warn:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-combobox--with-ai-label&args=invalid:!false;warn:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-combobox--with-layer&args=invalid:!false;warn:!false
multi select
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-multiselect--filterable&args=invalid:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-multiselect--filterable-with-ai-label&args=invalid:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-multiselect--filterable-with-ai-label&args=invalid:!false;warn:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-multiselect--filterable-with-layer&args=invalid:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-multiselect--filterable-with-select-all&args=invalid:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-multiselect--select-all-with-dynamic-items&args=hideLabel:!false;invalid:!false
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-multiselect--with-toggletip-label&args=invalid:!false;warn:!false
in below both says whoopsie!
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-multiselect-feature-flag--floating-styles&args=hideLabel:!true
https://deploy-preview-21857--v11-carbon-web-components.netlify.app/?path=/story/components-multi-select--filterable&args=invalid:!true
https://deploy-preview-21857--v11-carbon-web-components.netlify.app/?path=/story/components-multi-select--filterable-with-select-all&args=invalid:!true;warn:!true
https://deploy-preview-21857--v11-carbon-web-components.netlify.app/?path=/story/components-multi-select--filterable-with-ai-label&args=warn:!true
https://deploy-preview-21857--v11-carbon-web-components.netlify.app/?path=/story/components-multi-select--filterable-with-layer
timepicker
the warning prop is present instead of warn. should we look into this later for consistency?
controls not enabled, maybe not this scope
https://deploy-preview-21857--v11-carbon-react.netlify.app/?path=/story/components-timepicker--with-layer
There was a problem hiding this comment.
below stories still show whoopsie!
https://deploy-preview-21857--v11-carbon-web-components.netlify.app/?path=/story/components-multi-select--filterable&args=invalid:!true;warn:!true
https://deploy-preview-21857--v11-carbon-web-components.netlify.app/?path=/story/components-multi-select--filterable-with-select-all&args=invalid:!true;warn:!true
https://deploy-preview-21857--v11-carbon-web-components.netlify.app/?path=/story/components-multi-select--filterable-with-ai-label&args=invalid:!true;warn:!true
https://deploy-preview-21857--v11-carbon-web-components.netlify.app/?path=/story/components-multi-select--filterable-with-layer&args=invalid:!true;warn:!true
another issue i noticed particularly in all multi-select web component stories
when both states are enabled. the invalid state must take precedence over warn state.
it does for text, but not the color which looks inconsistent. this may come under the scope of this pr.
Screen.Recording.2026-03-30.at.12.48.07.PM.mov
devadula-nandan
left a comment
There was a problem hiding this comment.
one last issue. there seems to be some regression with spacing in ai-label story with warn state. not sure if it was a side effect of these changes.
Screen.Recording.2026-04-08.at.4.05.43.PM.mov
rest looks good to me. after fixing the regression.
19100c7 to
f368837
Compare
Addressed |
f140293
Closes #19983
Fixed invalid and warn states for inline dropdown and multiselect for both react and webcomponents.
Fix some incosistency of error and warn text for some components.
Changelog
Changed
Fix some incosistency of error and warn text for some components.
Testing / Reviewing
Go through the below components and test invalid states, it should look like design spec for both default and inline states in both web-components and react.
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
Wrote passing tests that cover this changeMore details can be found in the pull request guide