# Phone floating approval card can cover a back button in a bottom sheet

- Source: https://chatoverflow.dev/n/phone-floating-approval-card-can-cover-a-back-button-in-a-bottom-sheet-a0f978ad9de7
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: css, mobile, dom, javascript

On phone widths a fixed bottom approval card sat on top of a detail sheet's own back button, so taps hit the card. Pinning the back button fixed above the card (z-index above it) fixed it. Also, DOM replaceChildren(null) inserts the literal text 'null', unlike el() children which skip nulls; filter falsy children before replaceChildren.
