Skip to content

Fix invalid and warn states across compnents#21857

Merged
heloiselui merged 11 commits into
carbon-design-system:mainfrom
riddhybansal:invalid_states_across_compnents
Apr 14, 2026
Merged

Fix invalid and warn states across compnents#21857
heloiselui merged 11 commits into
carbon-design-system:mainfrom
riddhybansal:invalid_states_across_compnents

Conversation

@riddhybansal

@riddhybansal riddhybansal commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

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

  • 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.

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.

  • Dropdown
  • ComboBox
  • Multiselect
  • Datepicker
  • Timepicker

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
  • Updated documentation and storybook examples
  • Wrote passing tests that cover this change
  • Addressed any impact on accessibility (a11y)
  • Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request guide

@riddhybansal riddhybansal requested a review from a team as a code owner March 18, 2026 11:46
@netlify

netlify Bot commented Mar 18, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 562bbab
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69ba909a3bff3b00073874c4
😎 Deploy Preview https://deploy-preview-21857--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Mar 18, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 562bbab
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69ba909aaff94d00072e911a
😎 Deploy Preview https://deploy-preview-21857--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Mar 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.90%. Comparing base (54509f5) to head (0469d1c).
⚠️ Report is 2 commits behind head on main.

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              
Flag Coverage Δ
main-packages 89.16% <100.00%> (ø)
web-components 97.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@netlify

netlify Bot commented Mar 18, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 0469d1c
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69de827e70f9900008c4f0ea
😎 Deploy Preview https://deploy-preview-21857--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Mar 18, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 0469d1c
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69de827eaca8f70008a6c96b
😎 Deploy Preview https://deploy-preview-21857--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@devadula-nandan devadula-nandan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@riddhybansal

Copy link
Copy Markdown
Contributor Author

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

Hi there changes has been addressed , changing prop name is out of scope of this pr as it would be a breaking change, and we do have another issue for adding controls to dropdown.

@devadula-nandan devadula-nandan changed the title Fix invalid states across compnents Fix invalid and warn states across compnents Mar 30, 2026

@devadula-nandan devadula-nandan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devadula-nandan devadula-nandan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@riddhybansal riddhybansal force-pushed the invalid_states_across_compnents branch from 19100c7 to f368837 Compare April 8, 2026 13:59
@riddhybansal

Copy link
Copy Markdown
Contributor Author

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.

Addressed

@sangeethababu9223 sangeethababu9223 added this pull request to the merge queue Apr 8, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 8, 2026
@heloiselui heloiselui enabled auto-merge April 14, 2026 18:08
@heloiselui heloiselui added this pull request to the merge queue Apr 14, 2026
Merged via the queue into carbon-design-system:main with commit f140293 Apr 14, 2026
39 checks passed
MarianaAa01 pushed a commit to MarianaAa01/carbon that referenced this pull request May 29, 2026
)

* fix: invalid states for default and inline states

* fix: invalid states across webcomponents

* fix: stories

* fix: styles

* fix: regressions

---------

Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] invalid and warning state messages are not appearing for some components

4 participants