-
-
Notifications
You must be signed in to change notification settings - Fork 47.7k
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
Button 增加 danger type #1308
Labels
💄 Design
It is a UI design issue
Comments
type 目前是按照 Ant Design 的设计规范来配置的,应该不会支持 danger success 这些按钮。 我这里去掉 type 的限制提示,方便上层业务扩展。 |
已经提交设计师讨论。 |
@mongris 2.6 里已新增。 |
Thank you! |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
除了目前支持的 types 外,往往在 UI 上还需要区分出比较危险的按钮,比如 “删除”
在我们的项目中,我复制了 antd styles,对 button 的样式做了这方面的扩展(增加了 danger, success 类型)。但是在最新的 antd 中,type prop 做了限定。虽然运行不会有什么问题,但还是会输出大量的 warning。
不知道对这个建议是否会采纳,如果需要的话,可以 PR。
The text was updated successfully, but these errors were encountered: