add role alert

This commit is contained in:
Rachid Mrad 2025-03-05 15:37:48 -05:00
parent dd79477157
commit 53abc155fb
No known key found for this signature in database

View file

@ -482,6 +482,7 @@ export class NameserverForm {
// Create a new alert div with appropriate classes based on alert level
const alertDiv = document.createElement("div");
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
const alertBody = document.createElement("div");