mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 12:13:45 +00:00
Add role="alert" to callouts only when enforceAlert is passed (#528)
* Add role="alert" to callouts when enforceAlert is passed * Remove ElementRef and do a different way * Rename input variable
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<div class="callout callout-{{calloutStyle}}" [ngClass]="{'clickable': clickable}" role="alert">
|
||||
<div #callout class="callout callout-{{calloutStyle}}" [ngClass]="{'clickable': clickable}"
|
||||
[attr.role]="useAlertRole ? 'alert' : null">
|
||||
<h3 class="callout-heading" *ngIf="title">
|
||||
<i class="fa {{icon}}" *ngIf="icon" aria-hidden="true"></i>
|
||||
{{title}}
|
||||
|
||||
Reference in New Issue
Block a user