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

I want antd component css to not interfer with other elements #6118

Closed
bchenSyd opened this issue May 12, 2017 · 3 comments
Closed

I want antd component css to not interfer with other elements #6118

bchenSyd opened this issue May 12, 2017 · 3 comments

Comments

@bchenSyd
Copy link
Contributor

What problem does this feature solve?

I'm interested in using antd date-picker, but after I referenced that component along with its css (modularized version, i.e. only import 'antd/lib/date-picker/style'), my entire website has got the antd styles, like font-size, color..etc. This is not acceptable for a commercial website.

is it possible to limit antd component css/less to the component itself?

What does the proposed API look like?

here is an example that won't have a global css impact
https://github.com/Hacker0x01/react-datepicker

@bchenSyd
Copy link
Contributor Author

an alternative is to provide the css for date-picker myself but that would involve a lot of work.

again, why can't we limit the css to the component itself?

@benjycui
Copy link
Contributor

Duplicated: #4331

@lock
Copy link

lock bot commented May 12, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants