Skip to content

feat: xs select component#22036

Merged
riddhybansal merged 8 commits intocarbon-design-system:mainfrom
riddhybansal:select_component
Apr 28, 2026
Merged

feat: xs select component#22036
riddhybansal merged 8 commits intocarbon-design-system:mainfrom
riddhybansal:select_component

Conversation

@riddhybansal
Copy link
Copy Markdown
Contributor

@riddhybansal riddhybansal commented Apr 15, 2026

Closes #21759
Closes #22031

This PR adds xs size for select component for both react and web components with contextual layout tokens.

Changelog

New

  • Added xs size
  • Adoption of contextual layout tokens for select component

Changed

Removed

  • Hardcoded styles for sizes

Testing / Reviewing

Verify all sizes of select component for both react and web-components are as per spec.

NOTE: A WithLayoutContext story is added to test if the layout context system is adopted properly. It will be deleted before merging.

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 April 15, 2026 17:02
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 0b543da
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69dfc4aa32f0230008d5a470
😎 Deploy Preview https://deploy-preview-22036--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
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

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

Name Link
🔨 Latest commit 0b543da
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69dfc4aa527063000979aba6
😎 Deploy Preview https://deploy-preview-22036--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.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e6656a0
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69dfc542914e6c000810d071
😎 Deploy Preview https://deploy-preview-22036--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
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

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

Name Link
🔨 Latest commit e6656a0
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69dfc542274fa100086428a4
😎 Deploy Preview https://deploy-preview-22036--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.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 071c927
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69f07e648db52100084753fa
😎 Deploy Preview https://deploy-preview-22036--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
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

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

Name Link
🔨 Latest commit 071c927
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69f07e64163d6100089532dd
😎 Deploy Preview https://deploy-preview-22036--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
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.07%. Comparing base (ff54a38) to head (071c927).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22036      +/-   ##
==========================================
- Coverage   95.09%   95.07%   -0.03%     
==========================================
  Files         541      541              
  Lines       45179    45179              
  Branches     6544     6510      -34     
==========================================
- Hits        42965    42954      -11     
- Misses       2085     2096      +11     
  Partials      129      129              
Flag Coverage Δ
main-packages 89.16% <ø> (ø)
web-components 97.87% <100.00%> (ø)

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.

Copy link
Copy Markdown
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me! just needs some snapshot updates to pass CI

@riddhybansal riddhybansal requested a review from a team as a code owner April 16, 2026 04:24
Copy link
Copy Markdown
Member

@alina-jacob alina-jacob left a comment

Choose a reason for hiding this comment

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

Hi @riddhybansal, thanks for working on this!
The WC version is good to go! 🚀

Noting down 3 bugs in the React version

  • The overall field input needs to be centre aligned to that of the label and the helper text. Currently, the React version looks like its top aligned. The WC version is implemented correctly.
Image
  • The invalid and error states are showing up incorrectly for the Inline styling. This could also be because the component is fundamentally buggy, not your PR's doing.
  • FYI: While reviewing @maradwan26's PR on XS Text Input i could find other related PRs which may be the root cause. PR in reference, Issue opened to resolve the same.
Image Image
  • The Inline standalone story, for Invalid state's helper text throws a rendering error. Again, seems like a fundamental issue and not your PR's doing.
Image

I think for this PR to be visually approved and keep it at a manageable scope, pointer number 1 needs to be resolved. The other pointers need to be triaged before resolving.

Copy link
Copy Markdown
Member

@alina-jacob alina-jacob left a comment

Choose a reason for hiding this comment

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

Revisiting pointer number 1 of this comment, looks like its an overall styling issue with the Inline variant which needs to be resolved and addressed with this issue.

Rest is good to go! 🚀

@riddhybansal riddhybansal enabled auto-merge April 28, 2026 09:31
@riddhybansal riddhybansal added this pull request to the merge queue Apr 28, 2026
Merged via the queue into carbon-design-system:main with commit cdca471 Apr 28, 2026
39 checks passed
@riddhybansal riddhybansal deleted the select_component branch April 28, 2026 10:05
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.

cds-select to use contextual layout system [Condensed components] Select: Implementation

4 participants