Sticky Footer
Overview
A docked action bar for the one thing the page still needs from the employee. It carries an icon disc, a title and a line of explanation on the left, and the actions on the right.
It is a card, not a full-bleed band, and it sits in the flow at the end of the content it acts on. It is position: sticky: it pins to the bottom of the viewport only while that content runs past it, then settles into its own slot once the end scrolls into view. Because it takes the width of whatever column holds it, the action lands under the content it belongs to rather than out under a sidebar, and nothing on the page is ever hidden underneath it.
Guidelines
Dos
- Use the sticky footer on long pages where the primary action would otherwise be out of view.
- Show it only when there is something to act on, and hide it once the action is done.
- Keep it to one primary action plus a way out — Save and Cancel, Sign and Not now.
- Place it at the end of the content it acts on, inside that content's column. It needs no bottom padding on the page; the bar takes up its own space.
- Match the icon context to the message:
successfor a completed step,warningfor something outstanding.
Don’ts
- Don’t leave it on screen persistently when no action is required.
- Don’t crowd it — the actions area wraps, but three or more buttons make the bar hard to scan.
- Don’t use it as page navigation.
- Don’t duplicate its primary action elsewhere on the page while it is showing.
- Don’t put meaning only in the icon. The disc is decorative; the title and text carry it.
Structure
| Class | Role |
|---|---|
sticky-footer | The sticky positioning shell. Hidden until show is added. |
sticky-footer-success · -info · -warning · -danger | Optional context ring on the card. |
sticky-footer-inner | The card — background, radius, shadow, and the flex row. |
sticky-footer-icon | The icon disc. Add a context class and an icon class. |
sticky-footer-content | Wraps the title and text so they share the growing column. |
sticky-footer-title | The headline, 16px semibold. |
sticky-footer-text | The supporting line, 14px secondary. |
sticky-footer-actions | The buttons. Below sm they drop to their own row. Add mobile-friendly-btn to a button to make it full width on the narrowest screens. |
Visibility
The bar is hidden by default with display: none. Add the show class to show it, and remove it once the action is complete. Because the bar occupies space in the flow, it appears in place rather than sliding in. It sits at z-index: 10, above page content scrolling under it but below the modal and popover range.
Layout at narrow widths
Below sm the actions drop to their own row under the message, indented so the button sits under the title rather than under the disc. Below xs the disc takes a row of its own and everything stacks at the left edge.
Icon contexts
The disc takes the same five contexts as chips: sticky-footer-icon-primary, -info, -success, -warning, -danger. The glyph is decorative, so it only has to clear 3:1 as a graphical object — but do not rely on it to convey the message.
Context rings
When the bar is the page's one call to action, add sticky-footer-success, -info, -warning or -danger to the sticky-footer element. The card takes the same 2px border and 3px halo as the matching alert, over its lift shadow so it still separates from content scrolling beneath it. Match it to the icon context. There is no primary ring, the same as there is no primary alert.
Example
Scroll the box: the bar stays pinned to the bottom while the content runs past it, then settles at the end. On a real page it pins to the viewport instead of this box.
Icon contexts
Related
- Benefits sticky footer — the full-bleed band in the benefits theme.
- Employee chips — shares the five context colors.