Skip to content

Custom aria-describedby property in hmpoRadios component #166

@GDainton

Description

@GDainton

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions