question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The prop `small` for Button has been deprecated in favor of `size`. Please use `size="small"` instead.

See original GitHub issue

What 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 of size. Please use size="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: image

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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
asudohcommented, Aug 9, 2019

OK sounds that it’ll be fixed in the next release, but please don’t hesitate to speak up otherwise!

0reactions
emyarodcommented, Apr 12, 2021

can you create a reduced test case in Code Sandbox for easier testing and debugging?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases — Braid Design System - GitHub Pages
The size of icons has been increased by 20% when used inside of Text and ... This was deprecated back in v29.26.0 in...
Read more >
Breaking changes in v5, part two: core components - Material UI
This is a reference guide to all of the breaking changes introduced in Material v5, and how to handle them when migrating from...
Read more >
Failed prop type: The prop `justify` of `ForwardRef(Grid)` is ...
Note that The prop justify is deprecated, use justifyContent instead. So, replace justify by justifyContent. Before :
Read more >
Change Log - Ant Design
LocaleProvider has been deprecated in 4.x (use <ConfigProvider locale /> instead), we removed the related folder antd/es/locale-provider and ...
Read more >
React Native Elements 1.0
React Native Elements has UI elements that are easy to use ... wrapperStyle prop has been removed - use containerStyle prop instead (#1545) ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found