Skip to content

Commit 6a9a4df

Browse files
committed
Add theme property back & mark it as deprecated
Signed-off-by: Akshat Patel <[email protected]>
1 parent e5c6727 commit 6a9a4df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/modal/modal-header.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { ExperimentalService } from "carbon-components-angular/experimental";
2121
@Component({
2222
selector: "ibm-modal-header",
2323
template: `
24-
<header class="cds--modal-header">
24+
<header class="cds--modal-header {{theme}}">
2525
<ng-content></ng-content>
2626
<button
2727
*ngIf="showCloseButton"
@@ -36,6 +36,11 @@ import { ExperimentalService } from "carbon-components-angular/experimental";
3636
`
3737
})
3838
export class ModalHeader {
39+
/**
40+
* @deprecated since v5
41+
* Sets the style on the modal heading based on its category.
42+
*/
43+
@Input() theme = "default";
3944
/**
4045
* Accessible label for the header close button.
4146
* Defaults to the `MODAL.CLOSE` value from the i18n service.

0 commit comments

Comments
 (0)