Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): announce the API key name length hint to screen readers

Yudhi Armyndharisbb7df5d66e2a
diff --git a/dashboard/src/pages/ApiKeys.tsx b/dashboard/src/pages/ApiKeys.tsx
index e9208cb47..911b140d0 100644
--- a/dashboard/src/pages/ApiKeys.tsx
+++ b/dashboard/src/pages/ApiKeys.tsx
@@ -580,7 +580,9 @@ export function ApiKeys() {
<span className="key-field-hint">{t('apiKeys.nameTooShort')}</span>
)}
{nameTooLong && (
- <span className="key-field-hint">{t('common.fieldTooLong', { max: 100, count: nameLength })}</span>
+ <span className="key-field-hint" role="status">
+ {t('common.fieldTooLong', { max: 100, count: nameLength })}
+ </span>
)}
<label htmlFor="ak-2">{t('common.role')}</label>
<select