liveBook · Manning

Fitts' law

As explained in Architecting Accessibility

Fitts' law is a model predicting the time and difficulty of reaching a target from its distance and size.

Fitts’ law links the time needed to reach a target accurately to its distance and size. Small or distant targets take longer to select and invite errors; larger, well-spaced controls reduce effort, especially for people using imprecise pointing such as eye tracking. section 5.5.2

Pagination controls

A pagination control with small, crowded targets can be difficult to use. The example CSS gives links a minimum width and height of 50px and spaces them by 8px. For checkboxes and radio buttons, programmatically associated labels enlarge the clickable area. section 5.5.2

.pagination ul { #A
  gap: 8px; #B
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.pagination a { #C
  min-width: 50px; #D
  min-height: 50px; #E
  padding-inline: 1rem; #F
  padding-block: 0.625rem; #G
  font-size: 1rem; #H
  line-height: 1.2;
  border: 1px solid var(--control-border);
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

See the CSS example for pagination links with larger minimum target dimensions and space between controls. section 5.5.2

How Architecting Accessibility covers it

How deep it goes
Defines the distance-and-size relationship, then applies it to pagination and imprecise pointing.
Examples
Contrasts crowded pagination targets with larger spaced targets and notes how associated labels expand checkbox and radio-button click areas.
What you can do after
Apply the principle by enlarging and spacing pagination controls and associating labels with checkboxes and radio buttons.
How it connects
Connects target size and spacing with pointing accuracy, eye tracking, and accessible interaction design.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.