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

Tag 删除 textColor 属性,使用 CSS style 代替 textColor 属性。 #47

Closed
ickg5 opened this issue Oct 21, 2021 · 0 comments
Closed

Comments

@ickg5
Copy link
Contributor

ickg5 commented Oct 21, 2021

在 taroify 中,可以 使用 css 解决的样式问题,将不在提供具体的属性。

删除 textColor 属性,使用 css s设置样式。

<Tag style={{ backgroundColor: "#7232dd" }} children="标签" />
<Tag style={{ backgroundColor: "#ffe1e1", color: "#ad0000" }} children="标签" />
<Tag style={{ color: "#7232dd" }} variant="outlined" children="标签" />
@ickg5 ickg5 closed this as completed Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant