-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(module:radio): add solid button style #1892
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1892 +/- ##
==========================================
+ Coverage 95.95% 95.97% +0.01%
==========================================
Files 468 468
Lines 11242 11245 +3
Branches 1474 1474
==========================================
+ Hits 10787 10792 +5
+ Misses 131 130 -1
+ Partials 324 323 -1
Continue to review full report at Codecov.
|
components/radio/doc/index.en-US.md
Outdated
@@ -34,6 +34,7 @@ radio group,wrap a group of `nz-radio`。 | |||
| `[nzDisabled]` | Disable all radio buttons | boolean | false | | |||
| `[nzSize]` | Size, only on radio style | `large` `default` `small` | `default` | | |||
| `(ngModelChange)` | the callback function when current selected `nz-radio` value change | `EventEmitter<string>` | - | | |||
| `[nzButtonStyle]` | style type of radio button | `outline` \| `solid` | `outline` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 应该换成 中文的 丨
components/radio/doc/index.zh-CN.md
Outdated
@@ -36,6 +36,7 @@ title: Radio | |||
| `[nzDisabled]` | 设定所有 `nz-radio` disable 状态 | boolean | false | | |||
| `[nzSize]` | 大小,只对按钮样式生效 | `large` | `default` | `small` | `default` | | |||
| `(ngModelChange)` | 选中变化时回调 | `EventEmitter<boolean>` | - | | |||
| `[nzButtonStyle]` | RadioButton 的风格样式,目前有描边和填色两种风格 | `outline` \| `solid` | `outline` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| can not be render correct now, please replace it with 丨
close NG-ZORRO#1891 remove redundant property
close #1891
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #1891
What is the new behavior?
Same as https://ant.design/components/radio/#components-radio-demo-radiobutton-solid.
Does this PR introduce a breaking change?
Other information
I temporarily add style in
index.less
.