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

Remove unnecessary use of aria-hidden in the character count #2479

Closed
wants to merge 1 commit into from

Commits on Dec 15, 2021

  1. Remove use of aria-hidden in character count

    The `govuk-character-count__message--disabled` hides the message using `visibility: hidden`, so there is no need to also use the `aria-hidden` attribute.
    
    > If an interactive element is hidden using display:none or visibility:hidden (either on the element itself, or any of the element's ancestors), it won't be focusable, and it will also be removed from the accessibility tree. This makes the addition of aria-hidden="true" or explicitly setting tabindex="-1" unnecessary.
    >
    > https://www.w3.org/TR/using-aria/#4thrule
    36degrees committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    fe9ce84 View commit details
    Browse the repository at this point in the history