-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 toggle #12402
feat: readonly toggle #12402
Conversation
@quarryboy current implementation assumes 1px offset of readonly switch 'md' size was a mistake and commission of check mark at small sizes an oversight. Both are easy to fix. |
✅ Deploy Preview for carbon-components-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment, but otherwise looks great
// ---------------------------------------- | ||
// readonly | ||
// ---------------------------------------- | ||
// should this be a token of it's own? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we've determined we won't be making tokens for these
// should this be a token of it's own? |
There was a problem hiding this 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!
Contributes to #2177
Closes #12407
Adds the read-only feature to the Toggle component
Changelog
Added
Testing / Reviewing
Reviewed the result in Storybook and a added read-only test.