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:typography): add typography component #3119

Merged
merged 10 commits into from
Jun 26, 2019

Conversation

hsuanxyz
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] 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: #2777

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link

netlify bot commented Jun 19, 2019

Deploy preview for ng-zorro-master ready!

Built with commit 2c06ca9

https://deploy-preview-3119--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Jun 19, 2019

Codecov Report

Merging #3119 into master will decrease coverage by 0.01%.
The diff coverage is 93.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3119      +/-   ##
==========================================
- Coverage   95.43%   95.42%   -0.02%     
==========================================
  Files         686      698      +12     
  Lines       14091    14482     +391     
  Branches     1877     1913      +36     
==========================================
+ Hits        13448    13819     +371     
- Misses        229      237       +8     
- Partials      414      426      +12
Impacted Files Coverage Δ
components/i18n/languages/zh_CN.ts 100% <ø> (ø) ⬆️
components/i18n/languages/tr_TR.ts 100% <ø> (ø) ⬆️
components/i18n/languages/ru_RU.ts 100% <ø> (ø) ⬆️
components/i18n/languages/zh_TW.ts 100% <ø> (ø) ⬆️
components/icon/nz-icon.service.ts 98.11% <ø> (ø) ⬆️
components/i18n/languages/it_IT.ts 100% <ø> (ø) ⬆️
components/i18n/languages/en_US.ts 100% <ø> (ø) ⬆️
components/i18n/languages/es_ES.ts 100% <ø> (ø) ⬆️
components/ng-zorro-antd.module.ts 98.47% <100%> (+0.02%) ⬆️
components/core/public-api.ts 100% <100%> (ø) ⬆️
... and 31 more

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 107e731...2c06ca9. Read the comment docs.

@Component({
selector: 'nz-demo-typography-basic',
template: `
<nz-typography>
Copy link
Member

@vthinkxie vthinkxie Jun 26, 2019

Choose a reason for hiding this comment

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

should be <article nz-typography>

@Input() nzEllipsisRows = 1;
@Input() nzType: 'secondary' | 'warning' | 'danger' | undefined;
@Input() nzCopyText: string | undefined;
@Output() readonly nzChange = new EventEmitter<string>();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@Output() readonly nzChange = new EventEmitter<string>();
@Output() readonly nzContentChange = new EventEmitter<string>();

@Input() nzCopyText: string | undefined;
@Output() readonly nzChange = new EventEmitter<string>();
@Output() readonly nzCopy = new EventEmitter<string>();
@Output() readonly nzExpand = new EventEmitter<void>();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@Output() readonly nzExpand = new EventEmitter<void>();
@Output() readonly nzExpandChange = new EventEmitter<void>();

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.

LGTM

@vthinkxie vthinkxie merged commit 4d739ef into NG-ZORRO:master Jun 26, 2019
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
* feat(module:typography): add typography component

* test(module:typography): add test

* style: fix lint

* docs: add static path

* test(module:typography): add test

* docs: fix API

* test(module:typography): fix ci test

* test(module:typography): fix ci test

* fix(module:typography): fix ellipsis content

* Update components/components.less

Co-Authored-By: vthinkxie <[email protected]>
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
* feat(module:typography): add typography component

* test(module:typography): add test

* style: fix lint

* docs: add static path

* test(module:typography): add test

* docs: fix API

* test(module:typography): fix ci test

* test(module:typography): fix ci test

* fix(module:typography): fix ellipsis content

* Update components/components.less

Co-Authored-By: vthinkxie <[email protected]>
@hsuanxyz hsuanxyz deleted the new/text branch August 5, 2020 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants