Skip to content

Commit

Permalink
feat(alert): remove disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Apr 21, 2019
1 parent 793232e commit 375931a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
nb-theme(alert-scrollbar-background-color),
nb-theme(alert-scrollbar-width));

&.disabled {
color: nb-theme(alert-disabled-text-color);
background-color: nb-theme(alert-disabled-background-color);
}

&.closable {
@include nb-ltr(padding-right, nb-theme(alert-closable-start-padding));
@include nb-rtl(padding-left, nb-theme(alert-closable-start-padding));
Expand Down
12 changes: 0 additions & 12 deletions src/framework/theme/components/alert/alert.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ import { convertToBoolProperty } from '../helpers';
* alert-medium-padding:
* alert-large-height:
* alert-giant-height:
* alert-disabled-background-color:
* alert-disabled-text-color:
* alert-primary-background-color:
* alert-primary-text-color:
* alert-success-background-color:
Expand Down Expand Up @@ -155,16 +153,6 @@ export class NbAlertComponent {
}
protected _closable: boolean = false;

@Input()
@HostBinding('class.disabled')
get disabled(): boolean {
return this._disabled;
}
set disabled(value: boolean) {
this._disabled = convertToBoolProperty(value);
}
protected _disabled: boolean = false;

/**
* Emits when chip is removed
* @type EventEmitter<any>
Expand Down
3 changes: 0 additions & 3 deletions src/framework/theme/styles/themes/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1162,9 +1162,6 @@ $theme: (
alert-large-height: 8.25rem,
alert-giant-height: 9.5rem,

alert-disabled-background-color: color-basic-disabled,
alert-disabled-text-color: text-disabled-color,

alert-primary-background-color: color-primary,
alert-primary-text-color: text-light-color,
alert-success-background-color: color-success,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
<nb-alert accent="info">Info. You have been successfully authenticated!</nb-alert>
<nb-alert accent="warning">Warning. You have been successfully authenticated!</nb-alert>
<nb-alert accent="danger">Danger. You have been successfully authenticated!</nb-alert>
<nb-alert accent="primary" disabled>Primary and disabled. You have been successfully authenticated!</nb-alert>
</nb-card-body>
</nb-card>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
<nb-alert status="info">Info. You have been successfully authenticated!</nb-alert>
<nb-alert status="danger">Danger. You have been successfully authenticated!</nb-alert>
<nb-alert status="warning">Warning. You have been successfully authenticated!</nb-alert>
<nb-alert disabled>Disabled. You have been successfully authenticated!</nb-alert>
</nb-card-body>
</nb-card>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
<nb-alert outline="info">Info. You have been successfully authenticated!</nb-alert>
<nb-alert outline="danger">Danger. You have been successfully authenticated!</nb-alert>
<nb-alert outline="warning">Warning. You have been successfully authenticated!</nb-alert>
<nb-alert disabled outline="primary">Disabled. You have been successfully authenticated!</nb-alert>
</nb-card-body>
</nb-card>

0 comments on commit 375931a

Please sign in to comment.