The prop `small` for Button has been deprecated in favor of `size`. Please use `size="small"` instead.
See original GitHub issueWhat package(s) are you using?
-
carbon-components
-
carbon-components-react
Detailed description
Describe in detail the issue you’re having.
After upgrading to latest version of carbon-react, I have this warning for buttons even if I don’t set up the size attribute!
The prop
small
for Button has been deprecated in favor ofsize
. Please usesize="small"
instead.
Is this issue related to a specific component?
No
What did you expect to happen? What happened instead? What would you like to see changed?
No warning!
What browser are you working in?
Chrome
What version of the Carbon Design System are you using? 7.2.0
What offering/product do you work on? Any pressing ship or release dates we should be aware of?
Steps to reproduce the issue
It happened after upgrading to latest version:
Sandbox: https://codesandbox.io/s/reverent-firefly-pyc03
Please create a reduced test case in CodeSandbox
Additional information
- Screenshots or code
- Notes
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
OK sounds that it’ll be fixed in the next release, but please don’t hesitate to speak up otherwise!
can you create a reduced test case in Code Sandbox for easier testing and debugging?