Skip to content

Commit

Permalink
fix(chat): make basic default status
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Oct 31, 2019
1 parent 8c3676f commit 9cf8eba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
border-top-right-radius: nb-theme(chat-border-radius);
padding: nb-theme(chat-padding);

color: nb-theme(chat-header-text-color);
font-family: nb-theme(chat-header-text-font-family);
font-size: nb-theme(chat-header-text-font-size);
font-weight: nb-theme(chat-header-text-font-weight);
Expand Down
5 changes: 2 additions & 3 deletions src/framework/theme/components/chat/chat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ import { NbChatMessageComponent } from './chat-message.component';
* chat-text-font-size:
* chat-text-font-weight:
* chat-text-line-height:
* chat-header-text-color:
* chat-header-text-font-family:
* chat-header-text-font-size:
* chat-header-text-font-weight:
Expand Down Expand Up @@ -191,9 +190,9 @@ export class NbChatComponent implements OnChanges, AfterContentInit, AfterViewIn

/**
* Chat status color (adds specific styles):
* `primary`, `success`, `info`, `warning`, `danger`
* `basic` (default), `primary`, `success`, `info`, `warning`, `danger`, `control`.
*/
@Input() status: NbComponentStatus;
@Input() status: NbComponentStatus = 'basic';

/**
* Scroll chat to the bottom of the list when a new message arrives
Expand Down
3 changes: 1 addition & 2 deletions src/framework/theme/styles/themes/_mapping.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,6 @@ $eva-mapping: (
chat-text-font-weight: text-paragraph-font-weight,
chat-text-line-height: text-paragraph-line-height,

chat-header-text-color: text-basic-color,
chat-header-text-font-family: text-subtitle-font-family,
chat-header-text-font-size: text-subtitle-font-size,
chat-header-text-font-weight: text-subtitle-font-weight,
Expand All @@ -1492,7 +1491,7 @@ $eva-mapping: (
chat-large-height: 36rem,
chat-giant-height: 43.5rem,

chat-basic-background-color: background-basic-color-2,
chat-basic-background-color: background-basic-color-1,
chat-basic-text-color: text-basic-color,
chat-primary-background-color: color-primary-default,
chat-primary-text-color: text-control-color,
Expand Down

0 comments on commit 9cf8eba

Please sign in to comment.