Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom aria-describedby property in hmpoRadios component #166

Open
GDainton opened this issue Apr 12, 2024 · 0 comments
Open

Custom aria-describedby property in hmpoRadios component #166

GDainton opened this issue Apr 12, 2024 · 0 comments

Comments

@GDainton
Copy link

The current hmpoRadios version always uses the fieldset hint property when rendering the aria-describedby html tag, which is used by accessibility screen readers to describe the fieldset in question. If the hint property is removed in the code like so:

{{ hmpoRadios(ctx, {
id: "couldNotMatchChoice",
namePrefix: "couldNotMatchChoice",
fieldset: {
legend: {
html: "<h2 class="govuk-!-margin-bottom-0">What would you like to do?",
isPageHeading: false,
classes: "govuk-fieldset__legend--m"
}
}
}) }}

then the aria-described still populates with value couldNotMatchChoice-hint. This means that nothing is read out, but there is no way to use other values as is a current requirement in a BAV CRI screen. Can this component be updated to accept other values or no values at all for the aria-describedby element in the HTML?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant