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

ngClas NzRadio #2611

Closed
zqzy opened this issue Dec 10, 2018 · 6 comments · Fixed by #2660
Closed

ngClas NzRadio #2611

zqzy opened this issue Dec 10, 2018 · 6 comments · Fixed by #2660

Comments

@zqzy
Copy link

zqzy commented Dec 10, 2018

Version

7.0.0-rc.0

Environment

angular 7

Reproduction link

https://ng-zorro-antd-start-arzmzc.stackblitz.io/

Steps to reproduce

ngclass 子组件冲突

What is expected?

解决方法

What is actually happening?

等待

Other?

@cipchk
Copy link
Member

cipchk commented Dec 10, 2018

没毛病,绝大多数 CSS 样式子节点会自动继承父节点的样式,其中 color 也遵守这一规则。

@cipchk cipchk closed this as completed Dec 10, 2018
@zqzy
Copy link
Author

zqzy commented Dec 10, 2018

不是继承 这个意思 。。
是 在父级 用了 ngclass 然后 nzRadio 选中就不行了

@cipchk
Copy link
Member

cipchk commented Dec 10, 2018

@zqzy 麻烦提供一个完整的重现示例,且人类看得明白的示例。

@zqzy
Copy link
Author

zqzy commented Dec 10, 2018

@vthinkxie
Copy link
Member

vthinkxie commented Dec 10, 2018

#2567 一样的原因,我们在下个版本会改变实现方式,避免 ContentChildren 的问题

@zqzy
Copy link
Author

zqzy commented Dec 12, 2018

我 发现 input 的父级 加了ngclass 和ngstyle 也会出现类似的情况

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

Successfully merging a pull request may close this issue.

3 participants