-
Notifications
You must be signed in to change notification settings - Fork 331
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
[ColorPicker] 样式问题 #2567
Labels
Comments
👋 @baron04,感谢给 TDesign 提出了 issue。 |
感谢 @baron04 您的建议,欢迎PR!!! |
HaixingOoO
added
🎨 design
Something about design or style
and removed
good first issue
Good for newcomers
labels
Oct 25, 2023
@uyarn ColorPicker要不要调整成border-box呢? |
这个issue @carolin913 来跟进 |
16 tasks
fixed 1.4.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
重现链接
https://codesandbox.io/s/tdesign-react-demo-forked-gmhj6r?file=/src/main.jsx
重现步骤
在全局样式增加 * { box-sizing: border-box; } 代码,会造成
ColorPicker
组件的系统预设颜色、最近使用颜色样式出现问题。原因是div.t-color-picker__swatches--items没有指定box-sizing,默认是content-box,如果被全局样式影响,就会造成样式不正常。期望结果
1、.t-color-picker__swatches--items 元素指定box-sizing;
2、TDesign组件库内部box-sizing有的是border-box,有的是content-box,建议统一;
实际结果
The text was updated successfully, but these errors were encountered: