Skip to content

Commit affd956

Browse files
committed
fix(alert): add missing attr.role=alert
1 parent 8c2044c commit affd956

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

projects/coreui-angular/src/lib/alert/alert.component.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ export class AlertComponent implements AfterContentInit {
8383
}
8484
private _fade = false;
8585

86+
/**
87+
* Default role for alert. [docs]
88+
* @type string
89+
* @default 'alert'
90+
*/
91+
@HostBinding('attr.role')
92+
@Input() role = 'alert';
93+
8694
/**
8795
* Set the alert variant to a solid.
8896
* @type string

0 commit comments

Comments
 (0)