Skip to content

Hover states for checkboxes and radios aren't visible in Windows High Contrast Mode #3695

Closed
@dav-idc

Description

@dav-idc

This issue is from May 2023 external accessibility audit report.

Usability issue
A component did not display a change of state to indicate mouse hover.

Issue ID:
DAC_Usability_Mouse_Hover_01

URLs:
Example page link: https://govuk-frontend-pr-3503.herokuapp.com/full-page-examples/search

Relevant guidance pages: Checkboxes and Radios.

Screen shots

A set of radio options within a search filter module, shown in Windows High Contrast Mode. The mouse pointer is hovering over the first radio input and there is no visual change to indicate a hover state. A set of checkboxes within a search filter module, shown in Windows High Contrast Mode. The mouse pointer is hovering over the first checkbox input and there is no visual change to indicate a hover state.

The checkboxes and radio buttons do not display a visible change when receiving mouse hover in high contrast mode. This means that some users may not be able to distinguish when they are able to activate the component and form.

Current code ref(s)

#main-content > form > div.govuk-grid-row > div.govuk-grid-column-one-third > ul > li:nth-child(4) > div > fieldset > div > div:nth-child(1)

<div class="govuk-checkboxes__item">
    <input class="govuk-checkboxes__input" id="organisation" name="organisation" type="checkbox" value="hmrc">
    <label class="govuk-label govuk-checkboxes__label" for="organisation">HM Revenue and Customs (HMRC)</label>
</div>

User comments

Low vision user

“I noticed that each radio button/checkbox does not become highlighted when hovering the pointer over them. I found this to be an issue because my eye condition prevents me from clearly seeing the pointer change state. Therefore, I rely on highlighted elements on the radio buttons etc, to visibly indicate to me which radio button I am hovering over. It would be beneficial for me that each button is to become highlighted with an underline for example, that appears/disappears on the text when mouse hover occurs, as this will help me to determine which radio button/checkbox/button I am hovering over also to help me determine that the component can be selected.”

Solution

Consider adding a clear indication for users when hovering over inputs and forms with a mouse to indicate that they are interactive.
Example:

.govuk-radios__input {
    cursor: pointer;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done 🏁

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions