Builder Header
- HTML/CSS:Dev Ready
- Layout:Desktop Only
Sections
You are currently viewing a sandbox preview version of Summer ’25 | Go back to Spring ’25
About Builder Header#
To learn more about the Builder pattern in general, check out our guidelines, which includes a section about how to use the Builder Header.
Base#
<div class="slds-builder-header_container">
<header class="slds-builder-header">
<div class="slds-builder-header__item">
<a href="#" class="slds-builder-header__item-action" title="Back">
With open dropdown menu#
<div class="slds-builder-header_container">
<header class="slds-builder-header">
<div class="slds-builder-header__item">
<a href="#" class="slds-builder-header__item-action" title="Back">
With tooltip#
Use hover text to show where the builder has launched from. If the builder launches from only one location, hover text should read "Back."
Accessibility Note
The back action's
aria-describedby
attribute must share the same value as the tooltip'sID
.
<div class="slds-builder-header_container">
<header class="slds-builder-header">
<div class="slds-builder-header__item">
<a href="#" class="slds-builder-header__item-action" aria-describedby="example-unique-id-10" title="Back">
Variations#
With a Truncated Name#
<div class="slds-builder-header_container">
<header class="slds-builder-header">
<div class="slds-builder-header__item">
<a href="#" class="slds-builder-header__item-action" title="Back">
With a Toolbar#
<div class="slds-builder-header_container">
<header class="slds-builder-header">
<div class="slds-builder-header__item">
<a href="#" class="slds-builder-header__item-action" title="Back">
With Status text#
Use status text and alerts with action buttons to reinforce status notifications, warnings, and errors.
A status text can include:
- A file (version) state, such as active, inactive, draft (e.g. "Inactive - Modified a few seconds ago")
- Action, plus Last Modified Time, represented with relativeDateTime. (e.g. "Saved 1 day ago")
When the user hovers or focuses status text, use a tooltip to communicate additional details (e.g., Version 2 saved by Johnny Appleseed Today 9:00 AM).
Accessibility Note
The status text's
aria-describedby
attribute must share the same value as the tooltip'sID
.
<div class="slds-builder-header_container">
<header class="slds-builder-header">
<div class="slds-builder-header__item">
<a href="#" class="slds-builder-header__item-action" title="Back">
With Alert#
If the canvas or a canvas element generates a warning or error, an alert icon appears in the toolbar. Clicking or accessing by keyboard a popover's trigger element opens the popover.
Accessibility Note
When a popover is invoked, keyboard focus is moved into the popover and remains trapped until it is closed by the close button or escape key. After the popover is closed, focus is returned to the original triggering element.
Warning#
<div class="slds-builder-header_container">
<header class="slds-builder-header">
<div class="slds-builder-header__item">
<a href="#" class="slds-builder-header__item-action" title="Back">
Error#
When a user attempts to perform an action (e.g. save) and errors are present, an error popover is invoked and actions are disabled.
<div class="slds-builder-header_container">
<header class="slds-builder-header">
<div class="slds-builder-header__item">
<a href="#" class="slds-builder-header__item-action" title="Back">
Warning and Error#
Overview of CSS Classes#
- Selector
- The CSS class being referred to.
- Summary
- A description of what the class does.
- Support
- Whether the class name is dev-ready (meaning it's fully vetted and tested and safe to use) or prototype (which means it's not fully vetted yet).
- Restrict
- The selector that the class name is allowed to be used on.
- Variant
- The base level pattern for a component. A variant can be extended to create another variant of that component, for example, a stateful button is a derivative of the base button.
- Modifier
- A single class that can be added to an HTML element of a component to modify its output. Typically these will be colors, sizing and positioning.
Selector | .slds-builder-header_container |
---|---|
Summary | Container that fixes the builder header to the top of the viewport, contains builder header element |
Support | dev-ready |
Restrict | div |
Variant | True |
Selector | .slds-builder-header |
---|---|
Summary | Creates builder specific global header |
Restrict | .slds-builder-header_container header |
Selector | .slds-builder-header__item |
---|---|
Summary | Direct child descendant item of the builder header |
Restrict | .slds-builder-header div, .slds-builder-header nav |
Selector | .slds-builder-header__item-label |
---|---|
Summary | Label inside of a header item |
Restrict | .slds-builder-header__item span, .slds-builder-header__item div, .slds-builder-header__item h1 |
Selector | .slds-builder-header__item-action |
---|---|
Summary | Action or label inside of a header item |
Restrict | .slds-builder-header__item a, .slds-builder-header__item button |
Selector | .slds-builder-header__nav |
---|---|
Summary | Container around builder header's nav region |
Restrict | .slds-builder-header nav |
Selector | .slds-builder-header__nav-list |
---|---|
Summary | List containing navigation items of a builder header |
Restrict | .slds-builder-header__nav ul |
Selector | .slds-builder-header__nav-item |
---|---|
Summary | Items of the builder headers nav |
Restrict | .slds-builder-header__nav li |
Selector | .slds-builder-header__utilities |
---|---|
Summary | Container around builder header's utiltity region containing the back and help links |
Restrict | .slds-builder-header div |
Selector | .slds-builder-toolbar |
---|---|
Summary | Builder header toolbar |
Support | dev-ready |
Restrict | .slds-builder-header_container div |
Variant | True |
Selector | .slds-builder-toolbar__actions |
---|---|
Summary | Region of Builder header toolbar that contains the document actions |
Restrict | .slds-builder-toolbar div |
Selector | .slds-builder-toolbar__item-group |
---|---|
Summary | Region containing button icon groups of Builder header toolbar |
Restrict | .slds-builder-toolbar div |
Builder Header Release Notes
2.15.0
Changed
- Updates to top bar:
- Changed the color of the border separators to
$color-background-inverse
. - On
:hover
and:focus
for.slds-builder-header__item-action
:- Changed
background-color
to$color-background-inverse
- Changed
color
to$color-gray-1
- Changed
- "Back" action moved to the left-hand side and visible text was removed
- "Link" renamed to "Settings" and moved to the right-hand side next to "Help"
- Changed the color of the border separators to
Added
- Additions to toolbar:
- Icons for canvas settings and toggling a panel
- Status text and alerts that convey status, warnings, and errors
- Popovers for alerts
- Tooltip for the "Back" action
- New examples for "Back" action tooltip, status text, and alerts.
- Added
aria-expanded
to dropdown item
2.14.0
Fixed
- Fixed issue with non-link text color in Builder Header menu dropdowns by adding default text color
- Added an example with an open menu to demonstrate this pattern
2.9.0
Fixed
- Fixed issue where page type content was not being truncated
- Added
slds-has-flexi-truncate
toslds-builder-header__item
element - Added
<span class="slds-truncate" title="...">
inside of<h1 class="slds-builder-header__item-label">
- Added
2.7.0
Added
- Updated design guidelines and design notes.