-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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(number-input): update number input controls to new spec #7687
feat(number-input): update number input controls to new spec #7687
Conversation
Deploy preview for carbon-elements ready! Built with commit ce0af49 |
yeah this is caused by an arbitrary max-width we placed on the number inputs |
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 👍 ✅
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit ce0af49 https://deploy-preview-7687--carbon-components-react.netlify.app |
c01daaf
to
9cafbcb
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.
Disabled state
- The - and + icons should not get the bottom rule.
Light variant
- There are small strips of color around the - and + icons that should not be showing up in the input.
Invalid state
- The - and + icons seem to shift down a pixel when the invalid state is applied. This happens with all sizes.
Is it possible to hide the divider rule between the warning state/invalid state icon when hovering on the - icon?
9cafbcb
to
602e9c8
Compare
565588e
to
b491a0c
Compare
the icons shifting seems to be a Firefox only issue but it should be resolved now |
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.
Hover:
- The hover colors on the - and + need to be
hover-light-ui
for the light prop.
Divider rules:
- The divider rules needs to be
decorative-01
in the light prop. - The divider rules needs to be
disabled-02
for the disabled state. Looks a little lighter right now in all themes.
Invalid state:
- When hovering over the - and +, there are little dot glitches at the bottom of the input.
- When hovering over the +, the divider rule between the - and the error/warning icon should not go away.
fe961bd
to
a4a2ea3
Compare
when should the dividers be hidden/not hidden? |
a4a2ea3
to
9bef35b
Compare
got it, the divider rule styles should be updated now |
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.
There are still some issue with the divider rules:
-
Enabled state: the divider rule needs to be present between the - and +. Right now it is not there. Should be:
-
Disabled state: the divider rule isn’t showing up in the disabled state. Needs to be disabled-02. Should be:
-
Invalid/Warning states: need to have two divider rules by default to separate out the icons. Needs to also follow the hovering logic mentioned in my last comment. Should be:
66dcebb
to
e497cfa
Compare
3424998
to
656951a
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.
Looks great! Thanks for updating this component! 🎉
Closes #5417
unblocks #7570
This PR updates the number input step controls and invalid/warning states to match the updated component spec. This PR is only focused on the input controls and the remaining ticket issues will be addressed in separate PRs related to #7570
Testing / Reviewing
Confirm all size variants and warning states for the number input match the new spec