Inline message
An inline message tells you about a condition of the page in front of you, such as an inbox that needs reconnecting or a candidate list that only partly loaded. It sits at the top of what it concerns and stays until the condition is resolved.
Example
When to use it
Anatomy
One sentence that says what is true and what you can do, then at most one action at its end. The sentence wraps and is never cut off.
The band runs flush across the top of a list or a column. The box sits inside content, such as the top of a dialog or a form.
- Band height
- 36 px, 44 px on touch
- Band side padding
- 12 px, 16 px on a phone or touch
- --space-3
- Box corner radius
- 8 px
- --radius-lg
- Box padding
- 8 px by 12 px
- Sentence
- Regular weight, on as many lines as it needs
- Gap before the action
- 8 px
- --space-2
- Action
- Small secondary button, 36 px
- Close, neutral only
- Quiet icon button, 32 px
Tones
Neutral states a fact. Warning says something will go wrong unless someone acts. Error says work cannot go on until someone acts.
Behavior
Content
Accessibility
Permitted and not permitted
Permitted
You are offline. Changes will save when the connection is back.
The condition, then what happens next.
Not permitted
Error: request failed (500)
A code and no next step.
A close button on an error
Closing it hides the message and leaves the problem.
A message floating over the content
It covers your work. Push the content down.