-
Notifications
You must be signed in to change notification settings - Fork 13
fix(form elements): valid background- and border-colors
#5526
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
Conversation
🦋 Changeset detectedLatest commit: e8e8443 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes form element validation styling by correcting color intensities and simplifying the conditional logic for displaying valid state borders.
- Updated color emphasis from 80 to 90 for valid/invalid floating labels
- Simplified valid state detection by removing the requirement for a visible success message to display the green border
Co-authored-by: Copilot <[email protected]>
valid background- and border-colors
sarahbrng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

Proposed changes
resolves #5525
Reproduce this fix
To test and review this change, you could open https://design-system.deutschebahn.com/core-web/review/fix-form-elements-colors/components/data-input/select/overview?page=variant and need to set the validation manually (add

data-custom-validity="valid"-HTML-attribute toselect-HTML-element within the component) on those two types of components, and ensure that the messages isn't included. If you'd like to reproduce the setup out of the original issue #5525, you could set the classdb-color-yellowon a wrapping HTML element. This is resulting in the following rendering:Types of changes
Further comments
🔭🐙🐈 Test this branch here: https://design-system.deutschebahn.com/core-web/review/fix-form-elements-colors