Skip to content

Commit 1332273

Browse files
committed
refactor(badge): add PRIMARY enumeration member that replaced DEFAULT
1 parent c03d5c1 commit 1332273

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

projects/igniteui-angular/src/lib/badge/badge.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { IgxIconModule } from '../icon/index';
55
let NEXT_ID = 0;
66

77
export enum IgxBadgeType {
8+
PRIMARY = 'primary',
89
INFO = 'info',
910
SUCCESS = 'success',
1011
WARNING = 'warning',
@@ -52,14 +53,14 @@ export class IgxBadgeComponent {
5253

5354
/**
5455
* An @Input property controlling the type of the badge.
55-
* Allowed values are `default`, `info`, `success`, `warning`, `error`.
56+
* Allowed values are `primary`, `info`, `success`, `warning`, `error`.
5657
* Providing an invalid value won't display a badge.
5758
* ```html
5859
*<igx-badge type="success" icon="check" class="badge-style"></igx-badge>
5960
* ```
6061
*/
6162
@Input()
62-
public type: string | IgxBadgeType = '';
63+
public type: string | IgxBadgeType = IgxBadgeType.PRIMARY;
6364

6465
/**
6566
* An @Input property that sets the value to be displayed inside the badge.

0 commit comments

Comments
 (0)