Skip to contentWolf-Rayet

Section message

A section message alerts users to one section of the screen.

When to use

  • Something people need to know about the section it sits in, such as why a list is empty or what a setting will affect.
  • A message that should stay on screen, rather than appear briefly and disappear.
  • Information people would otherwise only find out by trying something and failing.

When not to use

  • A message about the whole product. That is a banner, at the top of the screen.
  • Confirmation of something just done. That is a flag.
  • A validation error on a field. That belongs under the field.
  • Ordinary page content. A section message interrupts, so using it for normal text makes the page too loud.

Guidance

Do

Nothing to sync

Connect a repository and its branches will appear here.

Say what is happening and what to do next.

Don't

Warning

Something may be wrong.

Do not use the appearance as the title, and do not warn people without saying what the problem is.

Intensity

How much attention each of this component's grounds uses, scored against the ladder in both themes.

AppearanceGroundLightDark
section-messageaccent-blue-subtlest0.042Ambient0.062Substrate
section-message--discoveryaccent-purple-subtlest0.038Ambient0.070Substrate
section-message--erroraccent-red-subtlest0.042Ambient0.071Ambient
section-message--informationaccent-blue-subtlest0.042Ambient0.062Substrate
section-message--successaccent-lime-subtlest0.022Ambient0.076Ambient
section-message--warningaccent-yellow-subtlest0.029Ambient0.086Ambient

Substrate, Ambient and Marked are measured. Directed depends on what else is in the region. Demanded is declared, and its use is limited. So neither of those two depends on the component alone. See intensity.

Content

What to write, and what to leave out.

  • The title says the situation, not the severity. Nothing to sync, not Warning.
  • Two or three sentences. For more, link to a fuller explanation.
  • Label an action with what it does, so Connect a repository rather than Learn more.