Skip to content

Commit

Permalink
refactor(tooltip): allow empty value for status
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Apr 4, 2019
1 parent cfb55f0 commit 23cf49b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class NbTooltipComponent implements NbRenderableContainer {
}

@Input()
context: { icon?: string, status?: NbComponentStatus } = {};
context: { icon?: string, status?: '' | NbComponentStatus } = {};

get statusClass() {
return this.context.status ? `status-${this.context.status}` : '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class NbTooltipDirective implements OnInit, OnChanges, AfterViewInit, OnD
* @param {string} status
*/
@Input('nbTooltipStatus')
set status(status: NbComponentStatus) {
set status(status: '' | NbComponentStatus) {
this.context = Object.assign(this.context, {status});
}

Expand Down

0 comments on commit 23cf49b

Please sign in to comment.