Skip to content
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

Merged
merged 1 commit into from
Aug 3, 2018

Conversation

wzhudev
Copy link
Member

@wzhudev wzhudev commented Jul 28, 2018

close #1891

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

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?

[ ] Yes
[x] No

Other information

I temporarily add style in index.less.

@codecov
Copy link

codecov bot commented Jul 28, 2018

Codecov Report

Merging #1892 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
components/radio/nz-radio-group.component.ts 100% <100%> (ø) ⬆️
components/table/nz-table.component.ts 95.93% <0%> (+1.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1f5625...be286a7. Read the comment docs.

@@ -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` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

| 应该换成 中文的 丨

@@ -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` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

Copy link
Member

@vthinkxie vthinkxie left a 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 丨

@vthinkxie vthinkxie merged commit 945a924 into NG-ZORRO:master Aug 3, 2018
@wzhudev wzhudev deleted the solid-radio branch August 20, 2018 11:21
wenqi73 pushed a commit to wenqi73/ng-zorro-antd that referenced this pull request Aug 27, 2018
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[radio] support solid styles
3 participants