shibro
Show the version of “The mobile add-to-cart bar appears only after the main button scrolls away”

Commerce · SU-272

The mobile add-to-cart bar appears only after the main button scrolls away

Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.

  • In-page button visible, repeated below
  • Thumbnail 40px
  • Bar on from load · 0px inset
  • Bar 56px · after the button scrolls off
  • Safe area 34px inset

What changes

Bad
The bar is on from load, repeating the in-page button 100px above it, and with no safe-area padding its button sits under the home indicator.
Good
Once the button has scrolled off the top, a 56px bar slides in with a 40px thumbnail, $96, Navy · M and the same label, above a 34px safe-area inset.

The rules

  • SU-272

    The mobile add-to-cart bar appears only after the main button leaves. A bottom bar at least 56px tall plus safe-area-inset-bottom shows a 40px thumbnail, the price with a variant summary, and the same button label. It appears only once the in-page button has scrolled out of view above the viewport, sits below sheets and never over the consent banner or a focused field, and if no variant is chosen its tap opens the variant sheet. It slides in with a 200ms transform.