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

ConfigProvider componentSize is not applied on Tabs component #28549

Closed
1 task done
bn3t opened this issue Dec 25, 2020 · 0 comments
Closed
1 task done

ConfigProvider componentSize is not applied on Tabs component #28549

bn3t opened this issue Dec 25, 2020 · 0 comments
Labels

Comments

@bn3t
Copy link
Contributor

bn3t commented Dec 25, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Encapsulate the tabs component with the ConfigProvider and specify componentSize other than the default (for instance 'large'). the Tabs component still appears as the default (not large) like it would with explicitly setting size="large" directly on it.

What is expected?

The Tabs component should follow configured component size in ConfigProvider. Tabs component should follow sizing like Input, Select and other components are doing.

What is actually happening?

The Tabs component does not modify its size. It is still necessary to set a prop size="large' for instance to modify its size to large.

Environment Info
antd 4.9.4
React 16
System MacOS
Browser Chrome

Thank you for your help. This problem is not related to a specific Os or browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants