-
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
Read only number input #12384
Read only number input #12384
Conversation
✅ 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.
LGTM pending one question to design about the token
packages/styles/scss/components/number-input/_number-input.scss
Outdated
Show resolved
Hide resolved
74294d2
to
382d219
Compare
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.
Looking good! Just a couple comments:
-/+ controls
On hover:
- The cursor should be the Arrow icon, not the pointer icon.
- The browser-based tooltips for decrement/increment should not appear.
- When hovering over the controls area there is a bug with a slight change in color that appears on the divider rule.
@laurenmrice the cursor is arrow on button hover, the tooltip (Chrome 107, Safari 16, Firefox 106) does not display. Perhaps the build was out of date. Fixed the divider color. |
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!
Contributes to #2177
Adjusts the readOnly NumberInput based on #2177.
Closes #12613
Changelog
Changed
Testing / Reviewing
Reviewed the result in Storybook, there is no readOnly test for text input.