mi6 / mi6/ic-ui-kit

Internal issue 3238 - Accessibility: ic-stepper doesn't fully support wcag 1.4.4 resize text

Open
#4,457 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## Steps to reproduce

- Open the default ic-stepper react stackblitz from the docs
- Apply the [gov uk resize text bookmarklet](https://accessibility.education.gov.uk/tools-testing/tools/resize-text) - NOTE: bookmarklets are small javascripts that you save as a bookmark in your browser, when activated they run that script
- See that the stepper now overflows and you need to scroll horizontally to see it

I also get the same behaviour without the bookmarklet when I increase the font size in my chrome settings.

## Expected behaviour

When the bookmarklet is applied, the lines between the steps shrink so that the stepper fits on the screen without horizontal scrolling

If the lines would need to shrink below some minimum value that would look weird, the mobile variant of the stepper should be displayed instead.

## Impact

This is causing my app to not meet [WCAG success criterion 1.4.4 resize text|https://www.w3.org/TR/WCAG21/#resize-text] because, while the resize takes place, I believe that the requirement to scroll both horizontally and vertically to use the app counts as “loss of content/functionality”.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the default ic-stepper React StackBlitz from the docs and reproduce the overflow using the GOV.UK resize-text bookmarklet or increased Chrome font size. The change is done when resized text fits without horizontal scrolling, using the mobile stepper variant if the connecting lines would become too short.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.