Skip to content

Commit ff7fd6b

Browse files
authored
Merge pull request #230 from cal-smith/deprecate
last minute breaking fixes
2 parents 5995f4d + 9e53431 commit ff7fd6b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/modal/alert-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import { BaseModal } from "./base-modal.class";
4848
@Component({
4949
selector: "ibm-alert-modal",
5050
template: `
51-
<ibm-modal [modalType]="modalType" [modalLabel]="modalTitle">
51+
<ibm-modal [theme]="modalType" [modalLabel]="modalTitle">
5252
<ibm-modal-header (closeSelect)="closeModal()">
5353
<p class="bx--modal-header__label bx--type-delta">{{modalLabel}}</p>
5454
<p class="bx--modal-header__heading bx--type-beta">{{modalTitle}}</p>

src/modal/modal-header.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { I18n } from "./../i18n/i18n.module";
99
/**
1010
* ***Inputs***
1111
* ```html
12-
* <ibm-modal-header [modalType]="default">Header text</ibm-modal-header>
12+
* <ibm-modal-header>Header text</ibm-modal-header>
1313
* ```
1414
*
1515
* ***Outputs***
@@ -23,7 +23,7 @@ import { I18n } from "./../i18n/i18n.module";
2323
@Component({
2424
selector: "ibm-modal-header",
2525
template: `
26-
<header class="{{modalType}} bx--modal-header">
26+
<header class="{{theme}} bx--modal-header">
2727
<div class="bx--modal-header">
2828
<ng-content></ng-content>
2929
</div>
@@ -54,7 +54,7 @@ export class ModalHeader {
5454
* @type {"default" | "warning" | "error"}
5555
* @memberof ModalHeader
5656
*/
57-
@Input() modalType = "default";
57+
@Input() theme = "default";
5858
/**
5959
* Accessible label for the header close button.
6060
* Defaults to the `MODAL.CLOSE` value from the i18n service.

src/notification/toast.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from "@angular/core";
77

88
import { NotificationService } from "./notification.service";
9-
import { NotificationContent } from "./notification-content.interface";
9+
import { NotificationContent, ToastContent } from "./notification-content.interface";
1010
import { Notification } from "./notification.component";
1111

1212
/**
@@ -49,7 +49,7 @@ export class Toast extends Notification implements OnInit {
4949
* `message` is message for notification to display
5050
*
5151
*/
52-
@Input() notificationObj: NotificationContent;
52+
@Input() notificationObj: ToastContent;
5353

5454
@HostBinding("attr.id") toastID = "notification";
5555
@HostBinding("class.bx--toast-notification") toastClass = true;

0 commit comments

Comments
 (0)