Skip to content
Hazine

Floating and sticky actions

0 of 4 shipped. Nothing has shipped here yet. The list below is what this family will hold, and how each structure differs.

Planned 4

  • Sticky Save Bar

    Always present and position: sticky inside the form flow (not fixed to the viewport); an IntersectionObserver sentinel toggles the elevated style, and the component sets scroll-padding-bottom on the container so focused fields are never hidden behind it.

  • Unsaved Changes Bar

    Conditional and viewport-fixed: appears on the first change without stealing focus, announces itself once through role=status, is reachable as a labelled region, shakes briefly (static highlight under reduced motion) when navigation is attempted, and reserves bottom scroll padding while visible.

  • Floating Action Speed Dial

    A menu button rendered as a floating circle whose items fan upward with visible text labels beside each icon; the main icon rotates between plus and close, arrow keys move through the actions, and placement respects safe-area insets with a configurable corner.

  • Scroll to Top with Progress

    Doubles as a reading progress indicator through an SVG ring driven by scroll position; hidden with the inert attribute until the threshold, uses instant scrolling under prefers-reduced-motion, and sends focus to a main landmark target so keyboard position follows the scroll.