Skip to content

Conversation

@heloiselui
Copy link
Contributor

@heloiselui heloiselui commented Dec 5, 2025

Closes #19462

Switch validation messages (invalidText and warnText) from label to helper-text back to the helper-text token instead of label.

I checked where the validation text actually comes from, so anything using useNormalizedInputProps, like TextInput, Dropdown, NumberInput, Slider, RadioButton, TimePicker, etc., ends up rendering a <className="…form-requirement">. Once we swapped the Sass for .form-requirement to helper-text-01, every one of those components picked up the new token automatically. Even components with custom markup, like FileUploader, the checkbox/radio group wrappers, or the list-box family, still style their validation blocks with .form-requirement, so they get the same change through the shared mixin. (ProgressBar already matched)

Changelog

New

  • None.

Changed

  • .cds--form-requirement, which every useNormalizedInputProps consumer renders for validation (TextInput, Dropdown, NumberInput, Slider, RadioButton, TimePicker etc.), now uses helper-text-01 instead of label-01.
  • FileUploader’s custom validation blocks (title + supplement inside an invalid row and the deprecated summary block) also switch to helper-text-01 so its errors match the shared helper textstyle.

Removed

  • None.

Testing / Reviewing

  • Go to React or WC Deploy Preview > check any component (TextInput, Dropdown, NumberInput, Slider, RadioButton, TimePicker, etc.), set invalid=true or warn=true, inspect the validation message and confirm .cds--form-requirement computes to the helper-text token.
Screen.Recording.2025-12-05.at.11.43.19.mov

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

@heloiselui heloiselui requested a review from a team as a code owner December 5, 2025 11:47
@netlify
Copy link

netlify bot commented Dec 5, 2025

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

Name Link
🔨 Latest commit b70d0dc
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/6932c6513d6d730008436609
😎 Deploy Preview https://deploy-preview-21133--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
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.61%. Comparing base (816c4a4) to head (b70d0dc).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #21133   +/-   ##
=======================================
  Coverage   92.61%   92.61%           
=======================================
  Files         515      515           
  Lines       38225    38225           
  Branches     5813     5873   +60     
=======================================
  Hits        35401    35401           
+ Misses       2675     2674    -1     
- Partials      149      150    +1     
Flag Coverage Δ
main-packages 85.61% <ø> (ø)
web-components 96.89% <ø> (ø)

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
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit b70d0dc
🔍 Latest deploy log https://app.netlify.com/projects/carbon-elements/deploys/6932c6511c91b30008876c46
😎 Deploy Preview https://deploy-preview-21133--carbon-elements.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
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit b70d0dc
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/6932c651a3ca9a00086cdc60
😎 Deploy Preview https://deploy-preview-21133--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.

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]: Update Error and Warning message type token

2 participants