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: readonly radio button group #12412

Merged
merged 7 commits into from
Nov 14, 2022

Conversation

lee-chase
Copy link
Member

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

Contributes to #2177

Closes #12419

Adds the read-only feature to the RadioButtonGroup component.

Note: This does not create a read-only RadioButton as having individual buttons read-only and selected makes the others readonly.

Changelog

Added

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

Testing / Reviewing

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

@netlify
Copy link

netlify bot commented Oct 27, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 26d7b21
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/63729b60c9ba46000803d27d
😎 Deploy Preview https://deploy-preview-12412--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 27, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 26d7b21
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/63729b604ecd3b000750e625
😎 Deploy Preview https://deploy-preview-12412--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.

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.

The visual styles look correct but the cursor interactions need to be updated:

  • As-is: On hover the cursor is changing to a hand
  • To-be: On hover over the icon cursor should remain an arrow and over the label text should become a type cursor. Similar to what is seen here in Checkbox.

@lee-chase lee-chase requested review from aagonzales and removed request for tay1orjones and aledavila November 7, 2022 11:07
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 👍

@kodiakhq kodiakhq bot merged commit d3f351d 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]: RadioButton implementation
4 participants