Skip to content

Conversation

@mfranzke
Copy link
Collaborator

@mfranzke mfranzke commented Nov 26, 2025

Proposed changes

  • Adapted correct color intensity (from 80 to 90)
  • Made a valid message optional to display the dependent green border

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 to select-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 class db-color-yellow on a wrapping HTML element. This is resulting in the following rendering:
image

Types of changes

  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (improvements to existing components or architectural decisions)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Further comments

🔭🐙🐈 Test this branch here: https://design-system.deutschebahn.com/core-web/review/fix-form-elements-colors

@mfranzke mfranzke self-assigned this Nov 26, 2025
@mfranzke mfranzke added the 🐛bug Something isn't working label Nov 26, 2025
@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2025

🦋 Changeset detected

Latest commit: e8e8443

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@db-ux/core-components Patch
@db-ux/ngx-core-components Patch
@db-ux/react-core-components Patch
@db-ux/wc-core-components Patch
@db-ux/v-core-components Patch
@db-ux/core-foundations Patch
@db-ux/core-stylelint Patch
@db-ux/core-migration Patch
@db-ux/agent-cli Patch

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

@mfranzke mfranzke marked this pull request as ready for review November 26, 2025 14:06
@mfranzke mfranzke enabled auto-merge (squash) November 26, 2025 14:06
@mfranzke mfranzke requested a review from Copilot November 26, 2025 14:13
Copilot finished reviewing on behalf of mfranzke November 26, 2025 14:14
Copy link
Contributor

Copilot AI left a 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

@mfranzke mfranzke moved this from 🏗 In progress to 🎁 Ready for review in UX Engineering Team Backlog Nov 26, 2025
@mfranzke mfranzke changed the title fix(form elements): colors fix(form elements): valid background- and border-colors Nov 26, 2025
@github-actions github-actions bot added the 📕documentation Improvements or additions to documentation label Nov 26, 2025
@sarahbrng sarahbrng moved this from 🎁 Ready for review to 👀 Actively In Review in UX Engineering Team Backlog Nov 27, 2025
Copy link
Contributor

@sarahbrng sarahbrng left a comment

Choose a reason for hiding this comment

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

Image

Could reproduce bug fix.

@github-project-automation github-project-automation bot moved this from 👀 Actively In Review to ⏰ready for release in UX Engineering Team Backlog Nov 27, 2025
@mfranzke mfranzke merged commit 8f07e55 into main Nov 27, 2025
71 checks passed
@mfranzke mfranzke deleted the fix-form-elements-colors branch November 27, 2025 11:08
@github-project-automation github-project-automation bot moved this from ⏰ready for release to ✅ Done in UX Engineering Team Backlog Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛bug Something isn't working 🏘components 📕documentation Improvements or additions to documentation postReview

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Verhalten von Form-Komponenten (Valid / Invalid) auf adaptive Background

3 participants