Accessibility amends for new appeal

This commit is contained in:
2024-02-19 16:53:58 +00:00
parent cb5280b525
commit 114f57aa5d
3 changed files with 22 additions and 28 deletions
+13 -4
View File
@@ -37,7 +37,7 @@ const BuildProgress = (props) => {
<>
<nav
role="navigation"
aria-labelledby="progress-list"
aria-label="progress-list"
className="at-nav"
>
<h2 className="govuk-heading-s govuk-!-font-weight-bold gov-font-dark-grey progress-heading">
@@ -71,7 +71,9 @@ const BuildProgress = (props) => {
}
aria-current="step"
data-show=""
id="check-youre-allowed-to-drive"
id={FieldsTranslations(progObj[index].title)
.replace(/\s+/g, "-")
.toLowerCase()}
>
<div
className="app-step-nav__header js-toggle-panel "
@@ -105,12 +107,19 @@ const BuildProgress = (props) => {
}}
className="app-step-nav__button app-step-nav__button--title js-step-title-button"
aria-expanded="false"
aria-controls="step-panel-check-youre-allowed-to-drive-1"
aria-controls={
"step-panel-" +
FieldsTranslations(
progObj[index].title
)
.replace(/\s+/g, "-")
.toLowerCase()
}
>
<span className="js-step-title-text govuk-!-font-size-16">
{FieldsTranslations(
progObj[index].title
)}
)}{" "}
</span>
</a>
</span>