Aabestfontgenerator.
THE TYPE NOTEBOOK

Font Awesome Hamburger Menu Icon and Button Labels

Choose the Font Awesome bars icon for the installed release, label the button and check keyboard and expanded-state behavior.

Use the bars icon inside a real button. Give the control a readable label and keep its expanded state synchronized with the navigation it shows.

Sources reviewed .

01

Look up the bars icon for the actual release

Font Awesome’s version 4 icon page documents fa-bars and shows the decorative icon hidden from accessibility tools. If your project uses another release, check the corresponding icon and style in its documentation. Put the icon inside a button with a visible Menu label or an appropriate accessible name. The icon is the visual mark, while the button carries the action.

02

Synchronize the disclosure state with the navigation

W3C’s disclosure pattern describes a button with aria-expanded reflecting whether its controlled content is shown. Keep that state aligned with the visible result. A related aria-controls reference can identify the controlled element. Try activating the button with Enter and Space and verify that the links can be reached when visible.

03

Proof the control even when the icon fails to render

Open the narrow layout and test the labelled button without its icon resource. The action and state should remain understandable. Check the button next to the longest navigation label at enlarged text size. The Font Awesome version guide covers the installed resource. Try the homepage copyable lettering tool for a separate project caption.

GOOD QUESTIONS

Your questions, answered.

What is the Font Awesome 4 name for the hamburger icon?

The documented version 4 class is fa-bars. Check the current project’s release before copying the example.

Does the bars icon open a menu by itself?

The button and its behavior control the navigation. The icon only provides a visual cue.

Sources & background

Sources supporting this page’s explanations. Practical examples are our editorial suggestions.