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(number-input): new decorator prop #18020

Conversation

ariellalgilmore
Copy link
Member

@ariellalgilmore ariellalgilmore commented Nov 7, 2024

Closes #18004

Updates numper-input to include new decorator prop

Changelog

New

  • new decorator prop, classes, and styles

Changed

  • deprecated slug prop
  • update rendering slug to render the decorator component but still set the size if it's an AILabel
  • updated tests

Testing / Reviewing

Check dropdown with AILabel storybook and form with AILabel storybook (numberInput & fluid numberInput)

TODO:

  • remove NumberInput with tooltip before merging!

Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 1997190
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/67336d086a37d30008e1e7b5
😎 Deploy Preview https://deploy-preview-18020--v11-carbon-web-components.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 configuration.

Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit b788e78
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/672d284c9f850f0008da3d8b
😎 Deploy Preview https://deploy-preview-18020--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 configuration.

Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit b788e78
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/672d284ca98b7f0008bf9cf9
😎 Deploy Preview https://deploy-preview-18020--v11-carbon-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 configuration.

Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 1997190
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/67336d08a61e470008c7f471
😎 Deploy Preview https://deploy-preview-18020--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 configuration.

Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 1997190
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/67336d08b9098d0008c1f140
😎 Deploy Preview https://deploy-preview-18020--v11-carbon-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 configuration.

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.94%. Comparing base (78a52c8) to head (1997190).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18020      +/-   ##
==========================================
+ Coverage   81.92%   81.94%   +0.01%     
==========================================
  Files         404      404              
  Lines       14095    14107      +12     
  Branches     4413     4430      +17     
==========================================
+ Hits        11548    11560      +12     
  Misses       2384     2384              
  Partials      163      163              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ariellalgilmore ariellalgilmore marked this pull request as ready for review November 7, 2024 21:23
@ariellalgilmore ariellalgilmore requested review from a team as code owners November 7, 2024 21:23
Copy link
Member

@emyarod emyarod left a 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!

Copy link
Member

@annawen1 annawen1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@riddhybansal riddhybansal self-requested a review November 11, 2024 10:20
Copy link
Contributor

@riddhybansal riddhybansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a minified error in playground while setting decorator

image

Copy link
Contributor

@riddhybansal riddhybansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !! just some formatting

@ariellalgilmore ariellalgilmore added this pull request to the merge queue Nov 12, 2024
Merged via the queue into carbon-design-system:main with commit ce8f5e3 Nov 12, 2024
40 checks passed
@ariellalgilmore ariellalgilmore deleted the feat/number-input-decorator branch November 12, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decorator: NumberInput
6 participants