Skip to content
← All stories

A keyboard-first interface check

Keep keyboard focus visible on every control. A demonstration editing brief; supply your own evidence and details.

A lit candle next to an open notebook and laptop
Photography for visual inspiration · Yen Vu / Unsplash

Editorial focus

Keep keyboard focus visible on every control.

The idea in plain language

Name the task before showing the code. Explain what the reader should be able to do at the end, and keep the first example small enough to understand without switching between several tools.

CSS layout · Lesson 5 of 6

What you will practise

Path
CSS layout
Approach
Read → try → review
Resources
On this page

A small example

a:focus-visible, button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
/* Tab through every control; never remove focus outlines. */
Show a reflection prompt

Explain the example to a person who has not seen the code. Which part does the most useful work?

Try one change

Copy the small example, then alter one part. Describe the difference you observe. If the result is unexpected, return to the smallest working version and compare the change carefully.

Review what you made

Read the result without its decoration and navigate it with the keyboard. A clear structure and a useful explanation should survive when the optional enhancements are unavailable.

The learning desk

Make room for a new idea.

A notebook, a small example and the time to work through a question.

Illustrative photography, not evidence of the sample project, recipe or reported event.

No comments:

Street notebook

A neighbourhood is a thousand stories.

Storefronts, shared tables and the small details that make a street.

A street corner with a store called aloh
01 / On the cornerCHEN HENG / Unsplash
People sitting at outdoor cafe tables under orange umbrellas on a city street
02 / Shared tablesPeter Wilkinson / Unsplash
Woman walks past cafe with patrons seated outside
03 / Passing throughJim Luo / Unsplash

Photography for visual inspiration; the people, places and objects are not the subjects of the fictional demo stories.