Messages, toasts and undo. A system that acts on the user's behalf has to say what it did, what went wrong, and what is still going on, and each of those has a right surface: the field, the page, the edge of the screen, or a dialog that stops everything. The decisions that keep the messages proportionate to what they report: which surface, how long it stays, who dismisses it, and what the words say.
Five surfaces carry everything a product says about itself, and they differ along two axes: how much they interrupt, and how long they stay. The inline message sits at its cause and stays until it's fixed. The banner sits at the top of the page and stays while its condition holds. The toast appears at the edge of the screen and leaves on its own. The dialog stops everything until it's answered. The badge counts what is waiting somewhere else. Pick by those two axes, never by how important the message feels to whoever wrote it.
| Surface | Interrupts | Stays | Dismissed by | Sits |
|---|---|---|---|---|
| Inline message | No one; read when the eye reaches its field | Until the cause is fixed | The fix | At the field or section, in the helper slot |
| Banner | No one; seen on arrival | While the condition holds | The condition ending; × only when it's informational | Under the page header; above the frame for the system |
| Toast | The edge of attention, briefly | 4–8 s; with an action, until acted on | Time, ×, or its action | Bottom-start of the window, level 4 |
| Dialog | Everyone; the page is blocked | Until answered | A decision | Centred across, top at 12vh, over the scrim |
| Badge | No one; a count of what waits elsewhere | Until those things are seen | Opening what it counts | On the control that leads to them |
Interruption and persistence are the whole decision, and they're independent. A dialog interrupts and stays; a toast barely interrupts and leaves; a banner doesn't interrupt and stays; an inline message is the quietest of all and stays the longest, because a field that is wrong stays wrong until someone changes it. The failures in this chapter are nearly all one surface standing in for another: a toast reporting an error that needs fixing, a dialog announcing a success, a banner pinned to the window for a notice read once. Each borrows a persistence or an interruption its message doesn't have.
Nothing here depends on hue. This chapter is written before Color (01), deliberately, so every kind of message is told apart by things that survive greyscale, colour blindness and a bright deck in the sun: the icon's shape (a circle with an i for information, a circle with a check for success, a triangle for a warning, an octagon for an error), the first word ("Couldn't", "Check", "Saved"), the weight of the sentence the user must act on, the strength of the edge, and the position next to the cause. When Color arrives it adds a hue to each, and none of the rules below change. An error that is only red looks, to about one man in twelve, like the text beside it.
The boundaries, stated once. Modal I owns the dialog, the scrim and the confirmation; this page uses them. Elevation I §VII put the toast at level 4, z 1300, above every scrim, and Motion I §IV gave it its entrance. Type III §VI set the voices: errors never smaller than the UI voice, a toast at the UI voice with its action underlined. Status, Badges & Counts (planned) owns the badge and the status word; Forms (planned) owns when validation runs; Loading & Skeleton States (planned) owns the spinner and the skeleton. The notification tray, the list of things other people did to your things, is Part II of this chapter.
Three questions, in order, choose the surface. Must the user decide before going on? Then a dialog, and nothing else. If not, what does the message belong to: a field, the page, an action just taken, or the whole product? A field gets an inline message, the page a banner, the product a system banner. An action gets a toast, unless the result must still be there when the user comes back, in which case it becomes the record's own state.
Blocking comes first because it overrides everything else. A message that needs a decision, a move that will charge the passengers more, a delete that can't come back, is a dialog whether it belongs to a field or to the whole product, because every other surface lets the user carry on without answering. Most messages don't need a decision, and the commonest overuse of dialogs is for messages that only inform. Modal I §I gives the dialog's own test; this page adds that a dialog which only informs (an OK and nothing else) should be one of the other four surfaces.
Ownership decides the place. A message belongs where its cause is, so the user finds it by looking at the thing that's wrong. A wrong value belongs to its field, and the message sits under the field. A condition of the record (held, cancelled, read-only) belongs to its page, and the banner sits under the page's title. A fact about the product (maintenance, a degraded service, a trial ending) belongs to every page at once, so the banner moves above the frame. An action the user just took has no place on the screen, because the user is already somewhere else; that's the toast's job, and the only one.
Persistence decides between the toast and the record. A toast is gone in seconds, so anything the user may need later, "where did that booking go?", can't live only in a toast. The answer is to put the result where the user will look for it: the booking shows its new sailing and a line saying who moved it and when. The toast can still confirm the move as it happens; it just isn't the record of it. Things that happen while the user is away, done by other people, are the tray's, in Part II.
A message about a field sits under the field, in the helper's slot, and stays until the value changes. It is the UI voice at the ink, never smaller, with the icon of its kind on the first line, and the field's edge goes to 2px. A message about a group of fields sits under the group's title in the same voice. Inline is the default for anything the user typed: the cause and the message are in one glance.
The helper's slot is the message's place, because the eye that finds the wrong field is already there. The message replaces the helper (the format hint is no use while the error states the problem) and sits on the field's left edge, so it reads as part of the field and not of the one below. It is 13/20 at the ink, a step up from the helper's 12/16, because Type III §VI ruled that an error is never smaller than the UI voice. The slot is 20 tall at rest, holding the helper, so the message that replaces it moves nothing below, which is Forms' (planned) rule for a field checked on blur. The field's own edge goes from the 1px strong hairline to 2px of ink, which Checkbox I §XIII keeps legible on its own at 3:1 and above. The octagon names the kind, the 2px names the field, and the sentence names the fix, so none of them needs a colour. The full field state matrix is Inputs II §XI's.
The summary alone is the common failure, and it ships because it's one component instead of one per field. It tells the user how many things are wrong and leaves them to find which. On a long form the summary is right as well as the field messages, never instead of them: a list at the top whose items name each field and link to it, which is what GOV.UK's error summary does and why it's copied so often. The tooltip saves the space and loses the message: on touch there is no hover, and a reason that only appears when the user points at the exact icon is a reason most users never read. When validation runs (on blur, on submit, while typing) belongs to Forms (planned); wherever it runs, this is where the message goes.
Inline success only where the check was the user's question. A booking reference that resolves, a vessel name that is free, a promo code that applies: the user typed it to find out, so the answer belongs in the slot, in the helper's voice with the check. A tick under every field that merely isn't wrong is noise, and it costs the error its contrast: one error among three "Looks good" lines is one line of four at the same weight and size. In the accessibility tree the field takes aria-invalid and the message is its aria-describedby, so a screen reader hears the reason when it reaches the field; on submit, focus moves to the first invalid field.
A banner reports a condition of the page, and sits under the page's header, on the content's edge, the width of the content, scrolling with it. One per page. It has a × only when it informs about something that doesn't change what the page can do; a banner about the page's state stays until the state ends. A banner about the whole product moves above the frame and spans it.
Four kinds, five signals, no hue. The icon's outline is the first: a circle for the two kinds that report, a triangle for the warning, an octagon for the error, the road-sign shapes most readers learned before they learned an interface. The first words are the second: an error starts with what failed ("Couldn't publish"), a warning with what to check, a success with what is now true. The edge is the third: information and success take the .14 hairline of a container, warning and error the .52 strong edge of a control, 3.22:1, because they're asking for something. Weight is the fourth: the sentence to act on is 600, the one emphasis the UI voice allows; an informational banner has nothing to act on and stays at 400. Position is the fifth, and the next specimen's subject. The tinted set is how a hue-only system reads for the reader who can't see the hues, and in print, and on a projector: four grey boxes, 1.03:1 apart.
Under the header, because the banner explains the page. The user arrives, reads where they are, and the next line says what's unusual about it; then the content. Above the title the notice outranks the page's own name, which is backwards for a page the user chose to open. The banner sits on the content's edge, the width of the content column, 16 below the header and 16 above the content, md 8 like any object on the page (Border I §II), at level 0 with no shadow. It scrolls with the page. Pinned under the top bar, it takes the same 48px at every scroll position for a sentence the user read once, and in a 296px viewport that's a sixth of the screen. A condition urgent enough to follow the user down the page is urgent enough to be a dialog, or it's the product's, and goes above the frame.
One banner per page. Two banners make the second one the same size as the first whatever it says, and a page with a hold and a feature announcement in identical boxes has told the user they matter equally. When two conditions are true at once the more severe one shows; the other waits until the first is resolved. A page that regularly needs two has put the second one in the wrong place: a feature announcement belongs in the tray or nowhere, and a condition of one field belongs to the field.
The × follows the condition. A banner that informs, the new export, the forecast, can be dismissed, and the dismissal is remembered per user and per object, so it doesn't return on the next visit to the same sailing. A banner that describes the page's state ("held", "cancelled, bookings are read-only") has no ×, because the user can't dismiss the state, and a closed banner on a held sailing is a page that lies by omission; it leaves when the state ends. The system banner spans the window above the top bar with no corners, as Border I gives every region of the frame, on the selected tone with the strong edge under it. It's dismissable for the session, comes back an hour before the window it announces, and there is only ever one. For assistive technology a banner present when the page loads is plain content; one that appears in response to something is a role="status" region, or role="alert" if it's an error.
A toast confirms an action the user just took, from the bottom-start corner of the window, at level 4, one at a time. Without an action it leaves on its own after 4 to 8 seconds, by its length; with an action it stays until it's used or closed. It never reports an error the user has to fix, and it never asks a question.
A toast is the UI voice on a raised, opaque surface. The event is 13/20 at 400, the detail, if there is one, 12/16 in the muted ink under it, and the action an underlined word at 400 (Type III §VI). The surface is level 4's: white with the level's key and ambient pair and a .10 edge, md 8, never glass (Elevation II §III). The dark chip many products use is a good toast in a system whose tooltips aren't dark; in this one the dark chip is the tooltip (Popover I §XI), and a toast that looks like one reads as a label for whatever is under the pointer. Width comes from the text, 288 to 420, and two lines is the most a toast holds; a message that needs three is a banner or a page. The icon is optional, and when it's there it's the kind's shape, at 16 on the first line.
| Rule | Value | Why |
|---|---|---|
| Position | bottom-start · 24 from both edges | Clear of the drawer and dialog footers at the end edge, where the commit buttons are; one place, learned once |
| Width | 288–420 · 1–2 lines | From its text; a third line means it isn't a toast |
| Duration, no action | 4 s one line · 6 s with detail · 8 s ceiling | Long enough to read twice at the edge of attention |
| Duration, with action | until used, closed, or replaced | An action on a timer is a time limit; WCAG 2.2.1 |
| Clock | stops on hover, focus, hidden tab | A toast never runs out while the user is reading it or away |
| Count on screen | 1 | The newest replaces the current one, unless the current one carries an action: then it holds and the newer waits; repeats merge into a count |
| Motion | in slow 300 · out base 200 | Opacity and 16px up in, fading in place out (Motion I §IV) |
| Level | 4 · z 1300 | Above every scrim, so it outlives the dialog that caused it |
Bottom-start, because the end edge is taken. Drawers open from the end edge and dialogs put their commit at the end of their footer, so a toast in the bottom-end corner lands on Save, or on the very drawer the user is still working in. Top positions cover the page header and its actions, the most used row on the screen. The bottom-start corner is over the foot of the sidebar or the start of the content, the least busy place in most frames, and Material's snackbar converged on it for the same reasons. Any corner is better than two, though: the position is decided once for the product and never per message.
The newest replaces the current one. The toast the user is waiting for is the one about what they just did, and in a queue it waits behind the confirmation of the thing before; three quick actions put the third toast ten seconds late. So a new toast replaces the visible one at once, the old fading out as the new rises, and three of the same event become one, "3 bookings moved · Undo". Stacked, the corner fills with a column of messages, each with its own clock, in the order nobody reads them, and the Undo the user wants is one of three that look alike. One exception: a toast that carries an action is never replaced. "Link copied" arriving while "Moved to the 9:50 · Undo" is up waits behind it, because the Undo is the one the user may need and the copy is already done. A dismissed Undo isn't lost either: ⌘Z still takes back the last action, and the record keeps its history (section VI).
Never an error the user has to fix. The toast in the third frame is the most common misuse in the chapter: the save fails, the form stays as it was with nothing marked, and the only true thing on the screen is 180px from its cause and gone in five seconds. An error that blocks the user's goal belongs to its cause, inline, or in a banner at the top of the surface that failed (section XI). The toast can carry a failure only when nothing on screen is wrong and nothing needs fixing: "Couldn't send the crew list. It will retry at 10:45." Assistive technology hears a toast through a polite live region, never role="alert", and a toast never takes focus; its action is reachable with Tab from the end of the page or a shortcut, and the toast stays while focus is in it.
What can be taken back is done at once and offered back: the row goes, and a toast says what went with an Undo that restores it exactly. What can't be taken back gets a dialog that names it and counts it. A confirmation for a reversible action is a tax on every use to insure against a rare mistake, and it doesn't even work: users who confirm everything stop reading the question.
Undo makes the common case free and the rare case recoverable. A dispatcher removes forty passengers a day and removes the wrong one perhaps once a month. A confirmation charges two clicks and a reading for each of the forty, so after a week the reading stops and the dialog is pressed through by reflex, which means it no longer protects the forty-first. Undo charges one click for each removal and two for the mistake, and it works when the mistake is noticed, which is after the act, not before it. This is Checkbox I §IX's optimistic update applied to verbs: show the result at once, keep the means of reversing it, and report the reversal in the same place.
Undo has to be true. It restores the object exactly: the row comes back in its old position, with its seat, and focus returns to it. That requires the action to be reversible underneath, which usually means a soft delete: the record is marked removed, hidden, and purged later, so restoring is a flag, not a re-creation that loses the seat to someone else. It also means anything that leaves the system waits. The passenger's email, a refund, a message to the vessel can't be recalled, so they're held until the undo window closes. The third frame is the failure: the Undo restores the row, but the "you've been removed from your booking" email went out the moment the row disappeared, so Undo has quietly done half of what it says.
The toast's clock and the undo window are different things. An Undo toast carries an action, so it stays until it's used, closed, or replaced (section V). The window is the server's: how long the soft delete is held before the side effects go. Make the window longer than the toast can plausibly last, at least the 10 seconds a user needs to notice, and keep Undo available after the toast has gone: ⌘Z for the last action, and the record's history ("Removed by you at 10:42 · Restore") for thirty days. When the window is genuinely short, because the emails go at the top of the minute, the toast says when: "Iris Calder will be emailed at 10:43 · Undo". The toast should never be the only way back; if closing it makes a change permanent, the user has been handed a timer they didn't know about.
A refund paid, an email sent, a sailing cancelled with 184 passengers told: these get the confirmation dialog of Modal I §X, with the object and the count in the title and on the verb, the consequence in the body, and focus on the safe button. The dialog isn't the opposite of Undo; it's what's left when Undo can't be built. Which is why the work of reversibility is worth doing: every action that can be made undoable is a dialog that never has to exist. The toggle that makes the same argument for settings is Checkbox I §IX's "reversal is the undo".
The change itself is the best confirmation, so show the changed thing and add nothing when it's in view. A document that saves itself says "Saved · 10:42" by its title and nowhere else. A surface that closes on Save hands over to a toast that names the object. A create lands on the new record, which is its own confirmation; a toast there says only what the page can't. A success never gets a dialog.
| After | Show | Because |
|---|---|---|
| An edit in place | Nothing | The new value is under the user's eye; Tables I §X shows a failure there |
| A toggle | Nothing | The knob moved; "Saving…" only after 1000ms (Checkbox I §IX) |
| A document's autosave | "Saved · 10:42" by the title | Nothing on the page changes; the time is the evidence (Forms, planned) |
| A drawer or dialog that closes | A toast naming the object | The surface that showed the change has gone |
| A create that opens the new record | The record; a toast only for what it doesn't show | Its title says it exists; where it went and Undo don't show |
Say "Saved" only where the user can't see that it was. A document that saves itself looks exactly as it did before the save, so its one evidence is the state by its title, "Saved · 10:42", in the helper's voice, which Forms (planned) fixes with its "Saving…" and "Couldn't save · Retry": the time is how the user knows the save they're relying on is this one. A transaction ends by leaving its surface, and then the toast takes over, naming the object ("09:05 Ostrand – Carrow updated") because the user may have edited three sailings in a row, while the row that changed carries the new value, which is the real confirmation. A create lands on the new record, and its heading says it exists; a toast that repeats the heading is decoration, and one that says what the page can't (where it went, who was told) with an Undo is not.
Nothing at all is the right answer more often than teams allow. An inline cell committed on Enter, a toggle, a drag that reorders: the result is the thing the user is looking at, and a message about it moves their eyes away from it to read what they already know. The success dialog is the opposite mistake: it blocks the page, traps focus, and dims everything to report a non-event, and its OK is the most reflexively pressed button in software. The autosave toast fires every few seconds while the user types, so the corner never empties, and the one autosave that fails arrives in the same box as the forty that didn't. Autosave reports a state in the one place by the title, and never a toast per save.
An error says what happened, then what to do, in that order and in the user's words. What happened names the object ("Couldn't move BK-40712"); the cause follows it when it changes what the user will do; the fix is a sentence in the imperative, and a link when the product can take them there. The error code is last, in the mono, for whoever the user will call.
| Part | Rule | Example |
|---|---|---|
| What happened | "Couldn't" + the verb + the object, in the past, at 600 | Couldn't move BK-40712. |
| Why | Only when it changes what the user does next; in their terms | The 09:50 has 2 seats left and the booking has 3 passengers. |
| What to do | The imperative; a link when the product can take them there; at most two ways on | Choose another sailing, or split the booking. |
| The reference | Last, its own line, mono 12/16 muted, selectable | Ref 409-CAP-7712 |
| A field's error | The field or the person by name, and the fix | Enter Ruth Okafor's date of birth. |
What happened comes first because it's what the user is checking. They pressed Move and expected a moved booking; the first words should confirm or deny exactly that, with the object named, so a user who made three moves knows which one failed. "Couldn't" is shorter and less alarming than "Failed to" and "Unable to", and it doesn't sound like the machine is the one with feelings. The cause follows only when it changes the next step: "the 09:50 has 2 seats left" tells the dispatcher a split will work and a retry won't. A cause the user can do nothing with ("a server error") is left out, because it only adds a sentence to read. The fix is an instruction, "Choose another sailing", not a description of a possibility, and when the product can do it the instruction is a link. Two ways on is the limit; three is a menu written as a sentence.
The grades are all things good teams ship. The code is what an API returns, passed straight through; "Something went wrong" is the catch-all written once for every failure, which is why it's everywhere, and its "try again" is wrong whenever the failure is deterministic. The system's words leak from a validation layer that knows the reason and phrases it for a developer. The breezy one comes from a voice guide that asked for warmth; warmth in an error reads as not taking the user's problem seriously, and "later" is a guess. The fix alone is the most respectable and still fails: a user who deliberately chose the 09:50 needs the reason to choose differently. NN/g's guidelines and GOV.UK's error messages agree on the essentials: say what happened and how to fix it, plainly, without blame or jokes.
The error that names the field. "This field is required" is the inline version of "Something went wrong": the user has to work out which field and what it wants. Name it, and use the user's name for it, the passenger rather than "Passenger 3 DOB": "Enter Ruth Okafor's date of birth." In a summary at the top of a long form, the same sentence is the link to the field. The reference has one job, letting support find the failure in the logs, so it goes last on a line of its own in the mono, selectable, and never in the headline. Show it when the user may have to quote it; a validation error the user fixes themselves doesn't need one.
An empty region says why it's empty and offers the one next step that fits the reason. There are four reasons and they must never share a message: nothing exists yet (explain and offer Create), nothing matches (name the filters and offer Clear), the work is done (say so, and stop), and it couldn't load (say what failed and offer Try again, with any data already had).
Each reason has its own next step, and the message is there to offer it. First use is the only one that explains the object, because it's the only time the user may not know what a vessel record is for; one sentence of purpose and the Create action, with the toolbar hidden because there's nothing yet to search. No results keeps the whole frame, quotes the query and the filters back, and offers the reversal, as Layout III §VII placed it and Tables I §XV drew it inside a table. All done is the empty state teams forget to design, and the one users see most in a queue: say plainly that the work is finished, without confetti, and point to the next work if there is any. Couldn't load is an error, with the error's copy (section VIII), and it keeps whatever data the user already had, dated.
The Wrong frame is the commonest empty-state bug, and it's a logic error more than a design one: the component checks "no rows" and shows the first-use state, when the rows are only filtered out. The dispatcher with ten sailings is told to create their first, which reads as if the timetable has been lost. The fix is to test for the reason, records or no records, before choosing the message. The voices are Type III §VI's: the title at the section step, 20/28, never the page title's size, the explanation in the UI voice at the muted ink, a normal button. Whether a first-use state carries a picture, and what kind, belongs to Illustration (planned); none of these needs one to work.
Progress is a message about work in flight, and it says two things in words: which step the work is on, and how much is done in the user's units, "Matching vessels · 412 of 1,284 sailings". When the length can't be known, it says what it's waiting for instead. Past ten seconds the user may leave, a banner follows them to the pages the work affects, and a toast says when it's done.
| Moment | Say | Where |
|---|---|---|
| Under 300 ms | Nothing | The result is the feedback |
| To 10 s | An indicator; past 4 s, a number or a reason | Where the result will land |
| Past 10 s | The step, the count, time left after 10%, and that the user may leave | The region doing the work |
| The user has left | The step and the count | A banner on the pages the work affects |
| Done | What finished and the one thing to look at | A toast, which stays: it has an action |
| Failed | Section VIII's copy, and what was kept | The region; a toast that leads there if the user has left |
Count in the user's units and name the step. "412 of 1,284 sailings" says how far, how much is left, and what is being counted; "32%" says only the first, and it reads as a guess even when it isn't. The step matters because steps rarely take equal time: matching vessels may be most of the job and writing the results a moment, and the user who sees "Step 2 of 3 · Matching vessels" knows the long part is under way. Time left comes once the rate is steady, coarsely and in words. When nothing can be counted, the words carry it: what the work is waiting for, and how long it has been. The bar that eases to 90% and waits is the trick everyone recognises, and after the first time it sits there for two minutes the user trusts no bar in the product. The bar's geometry, its motion, the indeterminate line and the spinner are Loading & Skeleton States' (planned); this section is what the words say and where they go.
Long work lets the user go, and finds them afterwards. Past ten seconds the region says the user can leave and the work carries on, and then it has to: the import runs on the server, a banner on the pages it affects carries the step and the count, and when it finishes a toast says so with the one thing worth looking at, "3 need a vessel · Review". That toast has an action, so it stays until it's dismissed (section V). If it fails, the failure is an error with section VIII's copy, in the region that ran it; a user who has gone elsewhere gets a toast that leads back there, the one kind of failure a toast may carry, because nothing on their screen is wrong.
A failure inside a dialog or a drawer is reported inside it: on the fields that caused it, and, when the submit itself failed, in a banner at the top of the body, under the header, where focus moves. The footer holds only buttons. A success closes the surface, and the toast that confirms it sits outside at level 4, where it survives the close.
The surface the user is in is where they're looking. A dialog has their whole attention, by design: it dimmed the page to get it. A failure reported anywhere else, in a toast at the window's corner or a banner on the dimmed page, is reported to the one place the user has been told to ignore. So the field that caused it is marked as in section III, and the submit's own failure, "Couldn't save the 09:05", goes in a banner at the top of the body, 16 under the header, the first thing in reading order. Focus moves to it on a failed submit, so a screen reader announces it, and Tab goes on into the fields. The dialog grows down from its anchored top as the banner arrives, as Modal I §VI designed it to, and the scrim doesn't change.
Not the footer. It is visible at every scroll position, which is why teams put messages there, but it holds the commit, and a reason squeezed in beside Save is cut to fit, reads as a caption for the buttons, and is the last thing a reader reaches. If the body is long enough that its top scrolls away, the failed submit scrolls the body back to the banner. A drawer follows the same rule, banner under its header, fields marked, footer buttons only. Success leaves the surface: the dialog closes and the toast confirms from level 4, z 1300, above every scrim, rendered at the root so it outlives the dialog (Modal I §XI). A toast is never inside a dialog, and never reports the dialog's failure.
On a phone the banner spans the screen with no corners, under the top bar; the toast moves to the bottom, 16 in from each side and 16 above the tab bar, as wide as the screen allows; inline messages don't change at all. The surfaces keep their jobs and their rules; only the toast's corner gives way, because a phone has no corners to spare.
The banner becomes a region. At 320 the content column is the screen, so the banner takes its full width, loses its corners as anything touching the frame does (Border I §II), and keeps its edge as a rule above and below it, the strong one for a warning or an error. It stays under the top bar and above the content, and it still scrolls. The system banner, if there is one, sits above it in the same form; two banners on a phone are a hundred pixels of a six-hundred-pixel screen, which is the strongest argument for keeping the system banner rare.
The toast goes to the bottom, inset 16, above the tab bar, where the thumb is and where nothing the user needs is covered except the content they just acted on, which has already changed. It takes the width the screen allows, 288 on a 320 screen, and the event shortens to fit one line ("Moved to the 09:50", the booking is the page). Undo and × grow to 44px targets without the toast growing taller, since the extra height is inside its 14px inset. The top of the screen is the wrong place on a phone for the same reason as on desktop and one more: it covers the back button and the title, and it is the part of the screen the thumb reaches last. A system toast from the operating system may also be arriving there. Inline messages don't change: the field's helper slot is under the field at every width, and only the voice steps to 14/20 with the field, as touch posture asks.
In dark mode the toast climbs to level 4's #363636 with a white edge brighter at the top; banners and fields stay on the page's #1a1a1a with their edges in white, each alpha chosen to match the light ratio: the container edge .10 (1.34:1), the strong edge .36 (3.31:1). Every kind keeps its shape, word and weight, which is why none of them needed a colour to port.
Match the ratio, not the alpha. The paper-tinted edges that separate a banner and mark an error in light mode are dark on dark: the strong edge falls from 3.22:1 to 1.09:1, so the error banner and the warning lose the one structural signal that sets them apart from information, and the field in error loses its 2px. White at .36 brings the strong edge back to 3.31:1, the same step it was in light; white at .10 gives the container edge 1.34:1 against light's 1.31. The muted ink becomes #b0b0ae, 8.0:1 on the page and 5.56:1 on the toast. The octagon, the triangle and the first words carry over untouched, which is the dividend of having told the kinds apart without a colour: there's no red to re-derive for a dark surface.
The toast keeps its level, not its colour. Ported as white, it is 17.4:1 against the page, the brightest object on the screen, and on a dark screen the brightest small object reads as an alert even when it's reporting a sent crew list. At level 4's #363636 it sits 1.44:1 off the page, and the white edge, .16 at the top and .10 around, draws its outline where the shadow can't, as Elevation I §VI gives every raised surface in the dark. Everything stays opaque in both modes (Elevation II §IX), and the scrim under a dialog goes to black at .60 (Modal I §XIV).
Decide each message in this order; each step assumes the ones before it.
Steps one, two and eight are the judgement; the rest are contracts written once and inherited by every message. The audit: trigger every error a screen can produce and find each one's cause from its message alone; turn the screen to greyscale and tell the four kinds apart; remove a passenger, close the toast, and find the way back; press three actions in a second and count the toasts; empty every list by filtering, then by deleting, and read the two messages; leave a long import and see where it tells you it's done; open a dialog, make it fail, and find where the reason is.
Part II takes the notification tray: what earns a notification, grouping by object, read and unread, the badge count and what clears it, and what a notification opens. Status, Badges & Counts (planned) owns the badge's shape and the status words; Forms (planned) owns validation timing, the error summary's full form and autosave; Loading & Skeleton States (planned) owns the spinner and the skeleton; Color (planned) adds a hue to each kind, and changes none of these rules.
Part I of Feedback & Notification.
Say it where it happened, as loudly as it matters, for as long as it's true.