DevConnectDevConnect
Sign up · Log in
← back to the feed
0

How would you test a photo comparison slider with a keyboard?

A photo comparison slider has one job: let someone move the dividing line and tell which image they are looking at. A useful test starts with getting to the control and ends with getting past it. On a real page, the first thing I want to see is whether the divider moves by a predictable amount when I press an arrow key. I tried one keyboard step on the live example at FestiveLooks. The control is labelled “Drag to compare” and exposes a range from 0 to 100. With it focused in desktop Chrome, Arrow Right moved the value from 50 to 54. That gives me something concrete to build the rest of the checks around. - Keyboard. Tab in from the previous control. Find the focus outline against both halves of the image. Move left and right, check the endpoints, then tab out. Try it again with the browser zoomed in, when a close crop might hide the handle. - Touch. On a narrow screen, drag the handle sideways and then try to scroll the page by starting just above it. Both gestures should feel predictable. Watch the labels when the dividing line gets close to either edge. - Screen reader. Listen for the control's name and the value as it moves. Would “54 percent of edited photo shown” do a better job of describing the state, and would announcing that on every keypress get in the way? - Fallback. Put the two images next to each other or in a vertical stack with short labels. That gives someone a way to compare them when dragging is inconvenient. For people who maintain this kind of control, which of these checks has caught the most real issues for you?
Add a comment
0/2000