-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(badge): add new badge component #111
Conversation
@yggg let's check why the tests are failing and please rebase on master so that we can merge it. |
@@ -24,6 +24,7 @@ import { convertToBoolProperty } from '../helpers'; | |||
<ng-template #showContent> | |||
<ng-content></ng-content> | |||
</ng-template> | |||
<nb-badge *ngIf="badgeText" text={{badgeText}} status={{badgeStatus}} position={{badgePosition}}></nb-badge> |
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.
Let's add spaces inside of {{ }}
statement. Moreover, in this case [text]="badgeText" [status]="badgeStatus"
should look even better.
@@ -103,6 +124,11 @@ export class NbTabComponent { | |||
(click)="selectTab(tab)" | |||
[class.active]="tab.active"> | |||
<a href (click)="$event.preventDefault()">{{ tab.tabTitle }}</a> | |||
<nb-badge *ngIf="tab.badgeText" |
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.
Same here and below.
@@ -115,6 +115,13 @@ $theme: ( | |||
smart-table-paging-fg-active: color-fg-heading, | |||
smart-table-paging-bg-active: color-primary, | |||
smart-table-paging-hover: rgba(0, 0, 0, 0.2), | |||
|
|||
badge-fg-text: color-fg-text, |
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.
color-white looks better.
@@ -398,6 +398,13 @@ $theme: ( | |||
modal-body-font-weight: font-weight-normal, | |||
modal-body-font-size: font-size, | |||
modal-separator: separator, | |||
|
|||
badge-fg-text: color-fg-text, |
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.
color-white looks better.
@yggg we probably have to make the component public at the end, as currently we won't have any documentation on it and it won't be clear how to change its styles. Let's discuss next week. |
No description provided.