-
-
Notifications
You must be signed in to change notification settings - Fork 48.8k
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
feat: 💄 Add text type Button #22552
feat: 💄 Add text type Button #22552
Conversation
可以加个变量,但是不建议默认是有背景的,区别还是很大的,有些用户 |
这个 padding 的背景(鼠标手型的点击区域)其实一直存在,也会占据空间,其实和链接还是有区别。 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 9572869:
|
特地去翻了下当初加 如果有了背景,又回到 Button 的原点 |
现在的实现是 hover 才有背景,默认还是一样的。 |
不一样,风格不一样,我个人看法是加个 less 变量默认还是保持现在的风格,或者加个 |
其实我觉得 hover 的时候鼠标手势的变化和文字颜色变淡已经暗示这里是可点击区域了。 |
Any updates on when this will be implemented? |
6800e67
to
f0d7a95
Compare
改为新增一个 text 类型按钮。 |
f0d7a95
to
2ba04e0
Compare
Codecov Report
@@ Coverage Diff @@
## feature #22552 +/- ##
========================================
Coverage 98.53% 98.53%
========================================
Files 364 364
Lines 7255 7255
Branches 1972 2021 +49
========================================
Hits 7149 7149
Misses 106 106
Continue to review full report at Codecov.
|
antd 按钮里没有对应实现的,用现在这个 type text 按钮就能轻松实现了。 |
`<Button type="text" />` close #15892
Co-Authored-By: zefeng <zefengbao@outlook.com>
8a5c9e4
to
18b5326
Compare
我再去 ping 一下设计师 |
@afc163 I think the border should not display when |
PR welcome~ |
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
same as http://overdrive.autoguru.io/?path=/story/components-actions--standard
新增一个 text 类型按钮:
同时增加一个反馈效果,标识出响应区域。
📝 Changelog
type="text"
Button.<Button type="text" />
。☑️ Self Check before Merge