govuk-frontend icon indicating copy to clipboard operation
govuk-frontend copied to clipboard

WCAG 2.2: Investigate thickness of input focus state border

Open owenatgov opened this issue 1 year ago • 0 comments

What

Investigate if the increased black border for the focus state of form inputs needs to be thicker.

Why

During testing of components against WCAG 2.2 criterion 2.4.13: focus appearance as part of https://github.com/alphagov/govuk-frontend/issues/4347, it was discovered that several form input components that use a similar "box highlight" style focus state fail this criterion. This is because the black border isn't thick enough to meet the size requirements for this criterion and the yellow highlight can't count towards this as it's too low contrast against the white background. Increasing the black border could fix this.

This impacts the following components:

It additionally effects radios and checkboxes but for slightly different reasons, although it's valuable to tackle these at the same time.

Further reading

Who needs to work on this

Developers, designers

Who needs to review this

Developers, designers

owenatgov avatar Nov 17 '23 10:11 owenatgov