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

Global Styles affect all the application #4447

Open
ThibaudAV opened this issue Nov 19, 2019 · 0 comments
Open

Global Styles affect all the application #4447

ThibaudAV opened this issue Nov 19, 2019 · 0 comments
Assignees
Labels
💬 Discussion Need more insights to this issue ✏️ Style

Comments

@ThibaudAV
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-otam5i

Steps to reproduce

All element styles have box-sizing: border-box; and this break all my existing elements heights and widths change.

What is expected?

Global style to be scoped and not affect all the application.

What is actually happening?

All the existing elements change.

Environment Info
ng-zorro-antd 8.5.1
Browser all

Do you have a temporary solution?
There is no warning in the doc for Angular as here:
ant-design/ant-design#11929

@ThibaudAV ThibaudAV changed the title Global Styles affect the rest of the application Global Styles affect all the application Nov 19, 2019
@hsuanxyz hsuanxyz added 💬 Discussion Need more insights to this issue ✏️ Style labels Nov 20, 2019
@vthinkxie vthinkxie mentioned this issue Apr 15, 2020
48 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 Discussion Need more insights to this issue ✏️ Style
Projects
None yet
Development

No branches or pull requests

2 participants