accessibility amends for reps
This commit is contained in:
+80
-21
@@ -39,11 +39,7 @@ const RepresentationProgress_s78 = (props) => {
|
||||
} = props;
|
||||
|
||||
return (
|
||||
<nav
|
||||
role="navigation"
|
||||
aria-labelledby="progress-list"
|
||||
className="at-nav"
|
||||
>
|
||||
<nav role="navigation" aria-label="progress-list" className="at-nav">
|
||||
<div
|
||||
id="step-by-step-navigation"
|
||||
data-module="gemstepnav"
|
||||
@@ -64,7 +60,9 @@ const RepresentationProgress_s78 = (props) => {
|
||||
}
|
||||
aria-current="step"
|
||||
data-show=""
|
||||
id="check-youre-allowed-to-drive"
|
||||
id={t("myrepresentations:s78-section-heading-one")
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()}
|
||||
>
|
||||
<div
|
||||
className="app-step-nav__header js-toggle-panel "
|
||||
@@ -96,7 +94,14 @@ const RepresentationProgress_s78 = (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-" +
|
||||
t(
|
||||
"myrepresentations:s78-section-heading-one"
|
||||
)
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()
|
||||
}
|
||||
>
|
||||
<span className="js-step-title-text govuk-!-font-size-16">
|
||||
{t(
|
||||
@@ -117,7 +122,9 @@ const RepresentationProgress_s78 = (props) => {
|
||||
}
|
||||
aria-current="step"
|
||||
data-show=""
|
||||
id="check-youre-allowed-to-drive"
|
||||
id={t("myrepresentations:s78-section-heading-two")
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()}
|
||||
>
|
||||
<div
|
||||
className="app-step-nav__header js-toggle-panel "
|
||||
@@ -149,7 +156,14 @@ const RepresentationProgress_s78 = (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-" +
|
||||
t(
|
||||
"myrepresentations:s78-section-heading-two"
|
||||
)
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()
|
||||
}
|
||||
>
|
||||
<span className="js-step-title-text govuk-!-font-size-16">
|
||||
{t(
|
||||
@@ -170,7 +184,9 @@ const RepresentationProgress_s78 = (props) => {
|
||||
}
|
||||
aria-current="step"
|
||||
data-show=""
|
||||
id="check-youre-allowed-to-drive"
|
||||
id={t("myrepresentations:s78-section-heading-three")
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()}
|
||||
>
|
||||
<div
|
||||
className="app-step-nav__header js-toggle-panel "
|
||||
@@ -202,7 +218,14 @@ const RepresentationProgress_s78 = (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-" +
|
||||
t(
|
||||
"myrepresentations:s78-section-heading-three"
|
||||
)
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()
|
||||
}
|
||||
>
|
||||
<span className="js-step-title-text govuk-!-font-size-16">
|
||||
{t(
|
||||
@@ -223,7 +246,9 @@ const RepresentationProgress_s78 = (props) => {
|
||||
}
|
||||
aria-current="step"
|
||||
data-show=""
|
||||
id="check-youre-allowed-to-drive"
|
||||
id={t("myrepresentations:s78-section-heading-four")
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()}
|
||||
>
|
||||
<div
|
||||
className="app-step-nav__header js-toggle-panel "
|
||||
@@ -255,7 +280,14 @@ const RepresentationProgress_s78 = (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-" +
|
||||
t(
|
||||
"myrepresentations:s78-section-heading-four"
|
||||
)
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()
|
||||
}
|
||||
>
|
||||
<span className="js-step-title-text govuk-!-font-size-16">
|
||||
{t(
|
||||
@@ -276,7 +308,9 @@ const RepresentationProgress_s78 = (props) => {
|
||||
}
|
||||
aria-current="step"
|
||||
data-show=""
|
||||
id="check-youre-allowed-to-drive"
|
||||
id={t("myrepresentations:s78-section-heading-five")
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()}
|
||||
>
|
||||
<div
|
||||
className="app-step-nav__header js-toggle-panel "
|
||||
@@ -308,11 +342,18 @@ const RepresentationProgress_s78 = (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-" +
|
||||
t(
|
||||
"myrepresentations:s78-section-heading-five"
|
||||
)
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()
|
||||
}
|
||||
>
|
||||
<span className="js-step-title-text govuk-!-font-size-16">
|
||||
{t(
|
||||
"myrepresentations:s78-section-heading-five"
|
||||
"myrepresentations:s78-section-heading-three"
|
||||
)}
|
||||
</span>
|
||||
</a>
|
||||
@@ -329,7 +370,9 @@ const RepresentationProgress_s78 = (props) => {
|
||||
}
|
||||
aria-current="step"
|
||||
data-show=""
|
||||
id="check-youre-allowed-to-drive"
|
||||
id={t("myrepresentations:s78-section-heading-six")
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()}
|
||||
>
|
||||
<div
|
||||
className="app-step-nav__header js-toggle-panel "
|
||||
@@ -361,11 +404,18 @@ const RepresentationProgress_s78 = (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-" +
|
||||
t(
|
||||
"myrepresentations:s78-section-heading-six"
|
||||
)
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()
|
||||
}
|
||||
>
|
||||
<span className="js-step-title-text govuk-!-font-size-16">
|
||||
{t(
|
||||
"myrepresentations:add-files-label"
|
||||
"myrepresentations:s78-section-heading-six"
|
||||
)}
|
||||
</span>
|
||||
</a>
|
||||
@@ -382,7 +432,9 @@ const RepresentationProgress_s78 = (props) => {
|
||||
}
|
||||
aria-current="step"
|
||||
data-show=""
|
||||
id="check-youre-allowed-to-drive"
|
||||
id={t("myrepresentations:s78-section-heading-seven")
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()}
|
||||
>
|
||||
<div
|
||||
className="app-step-nav__header js-toggle-panel "
|
||||
@@ -414,7 +466,14 @@ const RepresentationProgress_s78 = (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-" +
|
||||
t(
|
||||
"myrepresentations:s78-section-heading-seven"
|
||||
)
|
||||
.replace(/\s+/g, "-")
|
||||
.toLowerCase()
|
||||
}
|
||||
>
|
||||
<span className="js-step-title-text govuk-!-font-size-16">
|
||||
{t(
|
||||
|
||||
Reference in New Issue
Block a user