Skip to content

Where should keyboard focus return after closing an enlarged before-and-after comparison?

Return focus to the comparison control that opened the enlarged view when that control still exists. Preserve the reviewer's position in a gallery with many options so they can continue to the next comparison.

NATIVE SOUNDTRACK AND MEDIA FINISHINGAISwapLab team · Editorial methodPublished 2 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file

Test the opening

Press Enter on a result pair and confirm focus moves into the modal. Read its name and ensure the close mechanism is available from the keyboard.

Close by two paths

Use Escape, then repeat with the close button. Verify that focus returns to the originating comparison rather than the top of the page. If a filter removed that card, choose a logical visible replacement near the current list.

Inspect restored state

Keep the selected style and preview context when closing.

Pass condition

A keyboard user can open one pair, close it and continue browsing without losing their place.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example