Sub topic 8
Choosing visual, auditory, and haptic feedback
This chapter covers how to pick the channel (visual, auditory, haptic) that carries a piece of feedback. It assumes you know the interaction loop, the difference between affordances and signifiers, and the basics of feedback timing from earlier chapters. You should also be comfortable reading simple HTML, CSS, and JavaScript.
Why the channel is a design decision
Feedback tells a user that the system received an action, what it is doing, and what happened. The content of that message matters. So does the sensory channel that carries it. The same message ("your payment went through") can be shown as a green banner, played as a chime, or felt as a short vibration. Each channel has different strengths, different failure conditions, and different costs to the user.
Three questions drive the choice:
- Where is the user's attention? A person looking at the screen can take in a visual change. A person walking with the phone in a pocket cannot.
- What is the environment? A noisy train defeats sound. A silent meeting forbids it. Bright sunlight washes out subtle color shifts.
- What can the user perceive? Some users are blind or have low vision. Some are deaf or hard of hearing. Some have reduced sensation in their hands. No single channel works for everyone.
The practical rule is to pick a primary channel that fits the context, then add a second channel for anything the user must not miss.
The three channels compared
| Channel | Strengths | Weaknesses | Typical uses |
|---|---|---|---|
| Visual | Rich and precise. Can show text, state, and location. Persists until dismissed. Silent. | Needs the user's eyes on the screen. Easy to miss in peripheral vision. Unavailable to blind users without a text alternative. | Button states, inline validation, toasts, progress bars, badges |
| Auditory | Reaches users who are not looking. Good for urgent or time-critical events. Works hands-free. | Disturbs others. Fails in noise or when muted. Fleeting, so it cannot be reviewed. Unavailable to deaf users without an alternative. | Alarms, incoming-call tones, voice assistant confirmations, success and error tones |
| Haptic | Private and personal. Works without sight or sound. Feels immediate when tied to a touch. | Limited vocabulary. Needs hardware support. Not available on most desktops. Can be switched off or go unnoticed through a case or glove. | Keyboard taps on a phone, a toggle detent, a confirmation buzz, a silent alarm on a watch |
No row in this table says one channel is best. Each one trades something away.
Visual feedback
Visual feedback is the default on screens, and it carries the most information. It ranges from tiny changes (a button darkening on hover) to large ones (a full-page error state).
Match the size of the change to the size of the event
Feedback should be proportional to the action. A hover needs a small color shift. A completed purchase deserves a clear confirmation. A destructive action that succeeded deserves a visible record and, where possible, an undo.
A common failure is the opposite: a full-screen modal for a trivial success, or a barely visible change for a failed submission.
Use more than color
Color alone is not enough. About 1 in 12 men and 1 in 200 women have some form of color vision deficiency, and everyone loses color accuracy in glare. Pair color with at least one other cue: an icon, a text label, a shape, or a position change.
For example, a red border on an invalid field should also come with an error icon and a text message. A green "Saved" label should include the word, not only a green dot.
Place feedback near the action
Put the response where the user is already looking. An error shown at the top of a long form, far from the broken field, forces a search. Inline messages next to the control keep the cause and the response together. Reserve global banners for events that affect the whole page or session.
Control how long it stays
Transient visual feedback, such as a toast that vanishes after a few seconds, suits low-stakes confirmations. It is a poor fit for errors or for anything the user must act on, because users read at different speeds and may look away. Messages that require action should persist until resolved.
Auditory feedback
Sound reaches users who are not looking at the screen. That makes it valuable for events that happen outside the user's focus, such as an incoming message or a timer ending.
Use sound sparingly and make it optional
Sound is the most intrusive channel because it affects everyone nearby. Follow these guidelines:
- Never make sound the only carrier of important information.
- Respect the device's mute switch and volume setting.
- Offer a setting to turn interface sounds off.
- Avoid autoplay sound on page load.
- Keep sounds short, and keep them distinct. A success tone and an error tone should differ in more than pitch, since pitch is hard to judge for some listeners. A rising two-note pattern for success and a lower, single flat tone for failure is easier to tell apart.
Earcons and spoken feedback
An earcon is a short, abstract sound that stands for an event, such as the swoosh when an email is sent. Earcons are quick to play but must be learned. Spoken feedback, such as a voice assistant saying "Timer set for ten minutes," needs no learning but takes longer and is harder to ignore.
Choose earcons for frequent, low-information events. Choose speech when the content is specific and the user may not be looking.
Haptic feedback
Haptic feedback is feedback you feel, usually as vibration. On phones and watches it is created by a small motor. Game controllers, trackpads, and some car controls also use it.
What haptics do well
Haptics work best when they are tied directly to a touch. A light tap when you press a virtual key makes the key feel pressed. A click when a toggle snaps into place confirms the new state. Because the signal arrives through the same body part that acted, it feels immediate and needs no attention to the screen.
Haptics are also private. A smartwatch buzz tells the wearer about a notification without telling the room.
Limits of haptics
Users cannot easily tell many different vibration patterns apart. Treat haptics as a small vocabulary: perhaps a light tap for acknowledgement, a firmer pulse for success, and a double or longer pattern for a warning or error. More than three or four patterns become guesswork.
Haptics also depend on hardware and settings. Many laptops and desktop displays have no motor. Users disable vibration to save battery. A phone in a bag or a heavy winter glove can mask the signal. For these reasons, haptic feedback should reinforce another channel, not replace it.
Using the Vibration API
Web pages can request a short vibration on supported devices. Support is uneven: it exists on many Android browsers and is absent on iOS Safari, so you must test for it and treat it as an enhancement.
The page below combines a visual status message with an optional vibration. The status message works for everyone, and the vibration adds a second cue where available.
<button id="save" type="button">Save</button>
<p id="status" role="status"></p>
<script>
const button = document.getElementById("save");
const status = document.getElementById("status");
function buzz(pattern) {
if ("vibrate" in navigator) {
navigator.vibrate(pattern);
}
}
button.addEventListener("click", async () => {
button.disabled = true;
status.textContent = "Saving…";
try {
const response = await fetch("/api/save", { method: "POST" });
if (!response.ok) throw new Error("HTTP " + response.status);
status.textContent = "Saved.";
buzz(30);
} catch (error) {
status.textContent = "Could not save. Check your connection and try again.";
buzz([60, 40, 60]);
} finally {
button.disabled = false;
}
});
</script>The success buzz is a single 30 millisecond pulse. The failure buzz is two 60 millisecond pulses with a 40 millisecond pause, so the two outcomes feel different. The "vibrate" in navigator check keeps the code from failing on browsers that lack the API.
Combining channels
Using more than one channel is called redundant coding. It protects against the failure of any one channel and helps users with different abilities. It does not mean using every channel at once. Overuse is its own problem: constant sound and vibration make users switch the feedback off, and then even the important signals are lost.
A workable approach is to rank events by importance and assign channels by rank.
| Event importance | Example | Suggested channels |
|---|---|---|
| Low | Hover over a button, focus moves to a field | Visual only |
| Routine | Message sent, setting toggled | Visual, plus a light haptic tap on touch devices |
| Important | Payment completed, file saved after a long wait | Visual with text, plus a short haptic or tone |
| Urgent | Connection lost during a transaction, alarm, safety warning | Persistent visual with text, plus sound and a strong haptic pattern |
Edge cases and common mistakes
- Sound as the only error signal. A user on mute, or a deaf user, sees nothing change. Always pair a tone with a visible message.
- Color as the only status signal. A red and green dot looks the same to many users with color vision deficiency. Add text or an icon.
- Haptic overload. Vibrating on every tap, scroll, and notification trains users to disable it. Keep haptics for moments that carry meaning.
- Assuming haptics exist. Desktop users and iOS Safari users on the web will not feel your vibration. Never put information only in a vibration.
- Fleeting feedback for important events. A toast that disappears in three seconds is easy to miss. If the user must read it, keep it on screen.
- Mismatched channels. A cheerful chime paired with an error message sends contradictory signals. The tone, color, and wording should agree.
- Ignoring context shifts. A fitness app used on a run needs audio or haptic feedback because the user cannot look at the screen. A banking app used in a meeting needs silent feedback. Consider offering a setting or detecting a mode.
- Respecting user preferences. Operating systems expose settings such as reduced motion and silent mode. Honor them. The next chapter extends this point with screen reader announcements and other accessibility requirements.
Practical checklist
Before shipping a piece of feedback, ask:
- Which channel is primary, and why does it suit the user's context?
- If this channel fails (muted, no motor, not looking), does the user still learn what happened?
- Is the strength of the signal proportional to the importance of the event?
- Do the channels agree in meaning and tone?
- Can the user turn off or reduce the non-essential channels?
Exercise
A ride-sharing app tells the driver "New ride request" only with a loud tone. Name two problems with this design and propose a fix that uses at least two channels.
Show answer
Problem 1: a driver in a noisy car, or with the phone muted, will miss the signal, and a deaf or hard-of-hearing driver never receives it. Problem 2: sound is the only channel, so any failure of that channel loses a time-critical event. Fix: show a persistent visual card with the pickup location and a countdown, keep the tone, and add a strong haptic pulse so a driver who feels the phone but cannot hear it still notices. Offer a setting to adjust or silence the tone.
Exercise
You add a short vibration to the "Saved" confirmation on a web form. A tester on an iPhone says nothing happens. Is this a bug in your code? What should the design rely on?
Show answer
Not necessarily. Safari on iOS does not support the Vibration API, so the vibration call has nothing to run on. The design should rely on the visible "Saved." text in the role="status" region, which works on every device and is announced by screen readers. The vibration is an optional extra, guarded by a check such as "vibrate" in navigator.
Exercise
Why should a success tone and an error tone differ in more than pitch?
Show answer
Some listeners find it hard to judge pitch, and a device speaker may distort it. Differences in rhythm, length, or number of notes (for example a rising two-note pattern for success and a single low flat tone for an error) are easier to tell apart. The tone should also never be the only signal, so a visible message must accompany it.