feat: adapt CustomSelect styles to native select ::picker pseudo-element #5585
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Applies CustomSelect component styling to native
<select>elements using the new CSS::picker(select)pseudo-element for consistent design system appearance across custom and native implementations.Changes
::picker(select)styling: Adapted positioning, z-index, shadows, sizing, overflow, and max-height from.db-custom-select-dropdownand.db-custom-select-listoptionelement styling: Applied padding, backgrounds, border-radius, hover/active states, and checked font-weight from.db-custom-select-list-item@use helpersimport for hover/active mixinsStyling activates within
@supports (appearance: base-select)block, ensuring progressive enhancement.resolves #3654
Types of changes
Further comments
The native select picker now inherits design system styling (elevation, spacing, interactive states) matching the custom select component when browsers support
appearance: base-select. Falls back to default browser styling otherwise.❤️ Thank you!
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
🔭🐙🐈 Test this branch here: https://design-system.deutschebahn.com/core-web/review/copilot/sub-pr-4624