AddThisFeature

Sticky Action Bar

Keep the primary actions visible when the page is longer than the screen.

simple UI & Polish

What it adds

A bar that pins the save, submit, or apply actions to the viewport once they would otherwise scroll away.

What your agent is told to do

5
  1. 1

    Find the long forms and detail pages where the primary action sits below the fold, and pin those actions.

  2. 2

    Let the bar sit inline in the normal flow until it is about to leave the viewport, then stick. Reserve its height so nothing shifts at the moment it changes state.

  3. 3

    Keep the bar's DOM position fixed in source order so tab order does not change when it sticks. Moving the element on scroll breaks keyboard navigation.

  4. 4

    Mirror the real state of the form in the bar: disabled while invalid, pending while saving, hidden when the user has no permission to act.

  5. 5

    Do not stack a sticky action bar on top of an existing sticky header, mobile bottom navigation, or cookie banner. Pick one owner of the bottom edge.

Edge cases it handles

6
  • The bar must respect safe-area insets so it clears the iOS home indicator.
  • An on-screen keyboard on mobile will fight a bottom-fixed bar — decide whether it rides above the keyboard or unsticks entirely.
  • Page content must gain bottom padding equal to the bar's height, or the last field is unreachable.
  • If permissions change mid-session, the bar's actions must update, not go stale.
  • On short viewports where the bar would take a third of the screen, fall back to inline actions.
  • Validation errors summarised in the bar must link to the offending field, not just say the form is invalid.

Definition of done

7
  • The primary action is reachable at any scroll position on a page longer than the viewport.
  • Nothing jumps when the bar transitions between inline and stuck.
  • Tab order and accessible labels are identical in both states.
  • No content is trapped under the bar, including on notched devices.
  • Disabled, pending, and no-permission states in the bar match the form's real state.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.