-
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(number-input): add size variants #5459
feat(number-input): add size variants #5459
Conversation
Deploy preview for carbon-elements ready! Built with commit 164387d |
Deploy preview for carbon-components-react ready! Built with commit ef5a5c0 https://deploy-preview-5459--carbon-components-react.netlify.com |
cd21a5d
to
496ee1a
Compare
Deploy preview for carbon-elements ready! Built with commit cd21a5d |
Deploy preview for carbon-elements ready! Built with commit ef5a5c0 |
packages/components/src/components/number-input/_number-input.scss
Outdated
Show resolved
Hide resolved
packages/components/src/components/number-input/_number-input.scss
Outdated
Show resolved
Hide resolved
packages/components/src/components/number-input/_number-input.scss
Outdated
Show resolved
Hide resolved
packages/components/src/components/number-input/_number-input.scss
Outdated
Show resolved
Hide resolved
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 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.
9615dd6
to
81785b2
Compare
@emyarod @laurenmrice changes made 👍 |
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.
thanks tj ! looks good to me 👍🏻
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, just one note
@@ -28,6 +35,7 @@ const props = () => ({ | |||
max: number('Maximum value (max)', 100), | |||
value: number('Value (value)', 50), | |||
step: number('Step of up/down arrow (step)', 10), | |||
size: select('Field size (size)', sizes, undefined) || undefined, |
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.
size: select('Field size (size)', sizes, undefined) || undefined, | |
size: select('Field size (size)', sizes, undefined), |
do we still need this part?
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.
Not sure, we can make another PR to remove them from each of the size examples though if it is not needed.
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.
Seems like this is still needed. If you swap to a different size and then swap back to default, I'm seeing a console warning.
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!
Closes #5441
Adds in
sm
andxl
versions ofNumberInput
.Changelog
New
xl
andsm
styles forNumberInput
Testing / Reviewing
Go to
NumberInput
-->knobs
and change the size. Ensure the arrows focus border is correct, as well as mobile variant button sizing.