Banner
Outside the canonFrom the pattern backlog (workshop Banner Component), built for the Invoicing pages: a status-coloured notice under the page header (Payment Types' convenience-fee note) or at the top of a Document page as its conditional alert (sync failed, disputed). Same tokens as Badge. A banner states what is true about the record or the page; what the person's own click just did is a toast instead — see the UX guide "Banner or toast?". A TextLink in a banner takes the banner's own colour (2026-10-28, by request), its dashed underline at half strength at rest and full on hover: rust beside the status colour read as a second signal. Buttons keep theirs; the action that has to be taken is Button contrast.
App: Portal::BannerComponent + dismissible controller
Statuses
#statusesinfo, warning, success and error, with the matching solid icon. actions sit at the right of the banner from sm, centred against the text, and stack under it below that. The action that has to be taken uses Button contrast: ink on colour, because rust and navy both fight the status colour and tertiary disappears into it. A text link takes the banner's own colour (2026-10-28), its dashed underline showing at rest and filling on hover, so it belongs to the message instead of adding a second colour.
This payment is disputed
Next: Choose which customers pay convenience fees
Accounting sync failed
Dismissible
#dismissibleA close button hides it locally (mock); the app's dismissible controller remembers it.
Reports are emailed
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| status | info | warning | success | error | info | |
| title | ReactNode | — | |
| children | ReactNode | — | Body copy |
| actions | ReactNode | — | Right-aligned beside the text from sm, centred against it; stacked under the text below that. Use Button contrast for the action that has to be taken |
| dismissible | boolean | false | Mock: hides locally |