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

guard.min.css 污染全局样式 #257

Open
kirainmoe opened this issue Sep 24, 2023 · 1 comment
Open

guard.min.css 污染全局样式 #257

kirainmoe opened this issue Sep 24, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kirainmoe
Copy link

  • Version: @authing/guard-react18: ^5.3.0
  • Platform: Chrome 116

Severity: Medium

Description:

Authing Guard 组件的样式会给原生元素添加额外的样式,我理解 SDK 组件的样式应该只作用于自身,而不影响用户应用的样式

image

image

Steps to reproduce the error:

引入 guard.min.css 到页面中。

@kirainmoe kirainmoe added the bug Something isn't working label Sep 24, 2023
@kirainmoe
Copy link
Author

ant-design/ant-design#4331

粗看了一下项目推测可能是 antd v4 的问题,是否考虑一下使用 antd 组件的时候只引入对应组件的样式,或者升级到 css-in-js 方案的 antd5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants