Skip to content
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

feat: add readonly functionality to select #12405

Merged
merged 7 commits into from
Nov 14, 2022

Conversation

lee-chase
Copy link
Member

@lee-chase lee-chase commented Oct 26, 2022

Contributes to #2177

Closes #12423

Adds the read-only feature to the Select component

Changelog

Added

  • Adds readOnly property to Select and functionality
  • Adds test for read-only Select
  • Adds styling for read-only Select.

Testing / Reviewing

Reviewed the result in Storybook and a added read-only test.

Unfortunately, a way could not be found to test read-only preventing the selection of a value;

@netlify
Copy link

netlify bot commented Oct 26, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b57e231
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/635974a128a4440008d5e7f4
😎 Deploy Preview https://deploy-preview-12405--carbon-components-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 site settings.

@netlify
Copy link

netlify bot commented Oct 26, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit b57e231
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/635974a1059b10000944040e
😎 Deploy Preview https://deploy-preview-12405--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 site settings.

@netlify
Copy link

netlify bot commented Oct 26, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 71b31c5
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/6372b14c72a08a0008ea20b4
😎 Deploy Preview https://deploy-preview-12405--carbon-components-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 site settings.

@netlify
Copy link

netlify bot commented Oct 26, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 71b31c5
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6372b14cf7c5530009de2854
😎 Deploy Preview https://deploy-preview-12405--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 site settings.

@lee-chase
Copy link
Member Author

@quarryboy it was pointed out by @sstrubberg that we have no design for select. Can you rectify this?

Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

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

Cursor should remain as the arrow and should not be switched to a hand

Below is showing the incorrect implementation
Nov-01-2022 14-55-18

@lee-chase
Copy link
Member Author

@aagonzales cursor updated as requested.

Did consider using 'text' cursor following last week's review, however, it does not appear possible to make text in a <select > component selectable.

Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

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

Visually looks good, matches spec 👍

Copy link
Member

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM 👍 ✅

@kodiakhq kodiakhq bot merged commit 99db21a into carbon-design-system:main Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Read-only inputs]: Select implementation
4 participants