[grade=A urn:ump:hcafqotzptwezjtp2ml7o2ckjm4z4omfbuc7fnzghbuaacaxisda] ux(DC-171): chunk 2 — modal action bars always visible (sticky footer)

Edit/Add/Delete service modals (.weather-modal-content, max-height 90vh,
scrollable) rendered Cancel/Save at the END of the scrollable content — on
the Edit Service form (920px content in a 413px viewport) Save Changes sat
below the fold. The action bar is now position:sticky bottom:0 inside the
scroll container, bleeding to the modal's real edges (24px base / 14px
add-service, which also had an earlier !important margin-top rule — the new
scoped rule is authoritative) with a border-top separator and card-base
background: a footer bar that is ALWAYS reachable.

Verified live (authenticated Chromium): Edit SamiMail saveVisible:true
(920px content scrolling behind the pinned bar); Add Service footer
visible + bleeds both edges + sticky. Short modals unaffected — sticky
only engages when content overflows. CSS-only, no markup/JS changes.

Frontend 68/68. r1 grade C (footer bleed mismatch) fixed and live-reverified.
This commit is contained in:
Hermes committed 2026-11-19 01:08:44 -08:00
1 parent bc4df53684
commit f0a12b4da0
1 file changed
+22
+22
View File
@@ -1372,6 +1372,28 @@ button:focus-visible {
justify-content: flex-end justify-content: flex-end
} }
/* UX pass chunk 2: modal action bars (Cancel/Save) must stay reachable on
tall forms — sticky to the visible bottom of the scrollable modal instead
of living below the fold. Bleeds to the modal edges so it reads as a
footer bar. */
.weather-modal-content > .weather-modal-buttons {
position: sticky;
bottom: 0;
margin: 24px -24px -24px;
padding: 12px 24px;
background: var(--card-base);
border-top: 1px solid var(--border);
z-index: 2;
}
/* add-service modal: content padding is 14px (verified computed) and an
earlier !important rule sets margin-top:10px — authoritative footer
geometry: keep the 10px top gap, bleed 14px to the real container edges */
#add-service-modal .weather-modal-content > .weather-modal-buttons {
margin: 10px -14px -14px !important;
padding: 10px 14px;
}
.weather-modal button { .weather-modal button {
margin: 0 margin: 0
} }