mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
add role alert
This commit is contained in:
parent
dd79477157
commit
53abc155fb
1 changed files with 1 additions and 0 deletions
|
@ -482,6 +482,7 @@ export class NameserverForm {
|
||||||
// Create a new alert div with appropriate classes based on alert level
|
// Create a new alert div with appropriate classes based on alert level
|
||||||
const alertDiv = document.createElement("div");
|
const alertDiv = document.createElement("div");
|
||||||
alertDiv.className = `usa-alert usa-alert--${level} usa-alert--slim margin-bottom-2`;
|
alertDiv.className = `usa-alert usa-alert--${level} usa-alert--slim margin-bottom-2`;
|
||||||
|
alertDiv.setAttribute("role", "alert"); // Add the role attribute
|
||||||
|
|
||||||
// Create the alert body to hold the message text
|
// Create the alert body to hold the message text
|
||||||
const alertBody = document.createElement("div");
|
const alertBody = document.createElement("div");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue