If the back button should work, it is navigation and not tabs. That one test settles most of the argument about which component to reach for, and it is a question about behaviour rather than about how much room there is.
Miguel is rebuilding the student portal for a university in Salamanca: four main areas, nine secondary pages, and a phone that carries most of the traffic.
Tabs are not navigation
Tabs switch a panel and do not change the page. They are a way of showing one of several views of the same thing, and everything about them assumes the person is still where they were: no history entry, no new address, nothing to bookmark.
Behaviour, not appearance
Tabs switch a local view; navigation links move to a new page
Using tabs for top-level sections strips out URLs, history entries, and working bookmarks.
Giving every tab its own tab stop puts four extra presses between keyboard users and the panel content.
Modular Type Scale & CSS Flex/Grid Motion Lab
Test harmonic typography ratios and live Flexbox/Grid layouts with 1-click CSS export.
Used for sections of a site, that behaviour becomes the fault. A student who bookmarks their grades gets the portal's first tab, every time, and reports it as the bookmark not working.
A tab list is one tab stop and the arrows move between tabs, which is the contract people have learned from every other tab set. Building tabs where each one is its own tab stop puts four extra presses between a keyboard user and the content, and it is the commonest way a correct looking tab set is wrong.
The keyboard contract, per component
A menu button opens on Enter, Space or Down and closes on Escape, and focus moves into the menu when it opens and returns to the button when it closes. Three keys and two focus moves, and a menu missing any of them is a menu a keyboard cannot leave.
Per-component expectations
The exact keys, focus moves, and ARIA state each component owes
Different navigation components carry distinct contracts, while all of them share one rule for announcing the active page.
- Menu buttonThree keys and two focus moves
- Opens on Enter, Space, or Down
- Moves focus into menu on open
- Closes on Escape and returns focus
- Current page stateShared across all types
- Set aria-current to page
- Replaces colour-only CSS classes
- Announces position to screen readers
- BreadcrumbZero custom script
- Plain text with standard links
- No extra keyboard contract needed
- Generated from page hierarchy
A menu button missing Escape or focus return leaves keyboard users trapped or lost on close.
A breadcrumb is text with links, and it needs no interaction at all. It has no state, no keyboard behaviour beyond what a link already has, and no maintenance once it is generated from the page's own position.
Then, across all of them, mark the current item with aria-current page. A class name that changes the colour tells a sighted user where they are and tells a screen reader nothing, and the attribute costs one word.
How much a component hides
The six sit on a range from always visible to hidden behind a gesture, and where a component sits on that range is the whole of what it costs the reader.
One portal, six components
Six components, placed by how much they hide
Placed by this studio for this portal rather than measured, because how much hiding is acceptable depends on how often the thing is needed.
how much the component hides, from everything on screen to nothing until asked
- A bottom barthree to five items, all labelled, all reachable with a thumb and never hidden
- A breadcrumbtext with links, no state, no keyboard contract, and the cheapest thing on this range
- Tabsall visible, and not navigation: no history entry and nothing to bookmark
- A sidebarvisible on a wide screen and collapsed on a narrow one, which is two components in practice
- A menu buttonone tap to reveal, and it has to say how many things are behind it
- A gestureinvisible, undiscoverable, and correct only as a shortcut for something already reachable
The placements are about visibility and say nothing about correctness. The third item is the only one on the range that is not navigation at all, and it is the one most often used as it.
A bottom bar holds three to five items on a phone. Four is comfortable at a thumb's width; six produces targets under 44 px and a label that truncates, and the sixth item is always the one somebody needed.
A hamburger costs a tap and hides the count, so it shows the number. A badge saying nine is not decoration, it is the only signal that there is anything behind the icon at all, and without it the menu is a container of unknown size that people stop opening.
What to open
The browser's back button is the test, free, and it replaces deciding whether something is navigation by how it looks. Press it after every interaction on a screen and see whether the result is what a person would expect. Anything that fails is either navigation built as a control or a control that has been given a URL.
What to open
Test every screen with the Back button and mark active items with aria-current
Two built-in browser tools settle component choice and active-state announcement without adding any library.
- 01Press Back after every interaction
- 02Section switch left no history entry
- 03Back button undoes a tiny filter toggle
- 01Browser Back buttonExposes controls disguised as navigation or navigation disguised as controls
- 02Failure sign: stuck on same URLNavigation was wrongly built with tabs or local state
- 03Failure sign: control hijacked URLA local UI control polluted browser history
- 04aria-current attributeReplaces visual-only active classes that tell screen readers nothing
Running the Back button check takes ten seconds and settles arguments about tabs versus links.
aria-current is the other, part of the language and free, and it replaces a class name that styles the current item and announces nothing. It works on a breadcrumb's last item, on a navigation link and on a step in a process, and no component library has to be involved.
Where it stalls: chosen for the space
Navigation components get picked by how much room is left. Six items and a narrow screen produces a hamburger. Four sections and a wide screen produces tabs. Both decisions are made about the layout, and both determine the behaviour of the browser's history for the next four years.
Where selection stalls
Stop choosing components by spare layout room; start with Back button behaviour
Picking hamburgers or tabs to fit leftover pixels locks in wrong browser history for years.
- 01Write the Back button ruleOne sentence in the spec states what Back should do
- 02Keep four items visibleNever hide four fitting links inside a hamburger just to look tidy
- 03Expose hidden item countWhen a menu button is truly needed, badge how many items sit behind it
Without a visible count badge, a collapsed menu becomes an unknown container that people stop opening.
A hamburger is a layout solution applied to a navigation problem. Sometimes it is the right one, when the items genuinely cannot fit and the count is shown. Often it is chosen because it is tidy, on a screen where four items would have fitted, and the cost is a tap on every single navigation for everybody.
The reframe takes one sentence in the specification: write what the back button should do before choosing the component, and the component list shortens to one or two.
What it looks like when it goes wrong
The portal's four main areas were built as tabs, because four fits across the top of a page and it looked clean. Students bookmarked their grades, their timetable and their fee statement, and every bookmark opened the portal's first tab. The support desk logged about sixty tickets a term as browser problems and told students to use the menu instead. Nothing was broken. Four sections had been built as four views of one page, in a component whose defining property is that it does not change the address.
Real portal failure
Why sixty support tickets a term looked like browser bugs when nothing was broken
Building four portal sections as tabs created a loop of broken bookmarks and misdirected advice.
Tabs used as site sections
- 01Four sections built as tabs
- 02Students bookmark grades or fees
- 03Bookmark always opens tab one
- 04Support logs sixty browser tickets
- 01Four sections built as tabsChosen because four items looked clean across the top
- 02Students bookmark grades or feesExpecting direct links to their saved pages
- 03Bookmark always opens tab oneTabs keep one shared URL for every panel
- 04Support logs sixty browser ticketsTells students to use the menu instead while the root fault stays
Nothing in the browser was broken; the component simply did by design what tabs are built to do.
Which of these components a page needs, and what each of the four navigation systems is for, is getting anywhere from anywhere. Where a bar becomes a hamburger is a width decision with evidence behind it, which is where the layout changes, and why there. And each of the six carries a key contract that has to be built rather than assumed, which is focus order, and never trapping it. How these are held as components rather than as screens is one level up, in the parts an interface is assembled from.