We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tdesign 的全局样式中将所有的元素都改成了box-sizing: border-box;,对于老项目来说很不友好,很多组件是基于 content-box 来写的,一引入样式就都乱了。
tdesign
box-sizing: border-box;
content-box
只改 tdesign 的组件的样式。
[class^='t-'] { box-sizing: border-box; }
The text was updated successfully, but these errors were encountered:
👋 @moecasts,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
这个功能解决了什么问题 tdesign 的全局样式中将所有的元素都改成了box-sizing: border-box;,对于老项目来说很不友好,很多组件是基于 content-box 来写的,一引入样式就都乱了。 你建议的方案是什么 只改 tdesign 的组件的样式。 [class^='t-'] { box-sizing: border-box; }
还有诸如全局的行高、字体等也会造成对老项目的样式覆盖,也建议在 [class^='t-'] 内部定义
下版本准备全面移除reset样式代码,预计6.17日前完成
0.36.0 fixed
No branches or pull requests
这个功能解决了什么问题
tdesign
的全局样式中将所有的元素都改成了box-sizing: border-box;
,对于老项目来说很不友好,很多组件是基于content-box
来写的,一引入样式就都乱了。你建议的方案是什么
只改
tdesign
的组件的样式。The text was updated successfully, but these errors were encountered: