From a7b27befc5f0bc8a081a3bc43793d36d9a41985c Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Wed, 29 Jul 2026 20:02:35 -0400 Subject: [PATCH 1/4] fix(form): add status regions, live total, and a11y CSS Dual alert/status slots for form and admin, aria-live on the sticky total, success heading focus target, More/Less affordance styles, and 44px coarse-pointer chip padding. --- src/server/templates/form.css | 58 +++++++++++++++++++++++++++++++ src/server/templates/form.html.j2 | 14 ++++++-- 2 files changed, 69 insertions(+), 3 deletions(-) diff --git a/src/server/templates/form.css b/src/server/templates/form.css index b4c73b7..f8b027c 100644 --- a/src/server/templates/form.css +++ b/src/server/templates/form.css @@ -147,6 +147,28 @@ header p { font-size: 0.85rem; opacity: 0.8; } overflow: hidden; } +.meal-desc.is-expanded { + display: block; + -webkit-line-clamp: unset; + overflow: visible; +} + +.meal-desc-toggle { + display: inline-block; + margin: 0 0 4px; + padding: 0; + border: none; + background: none; + color: var(--color-brand); + font-size: 0.8rem; + font-weight: 600; + font-family: inherit; + cursor: pointer; + text-decoration: underline; +} + +.meal-desc-toggle:hover { opacity: 0.85; } + .qty-control { display: flex; align-items: center; @@ -355,6 +377,42 @@ header p { font-size: 0.85rem; opacity: 0.8; } .qty-control .qty { width: 44px; height: 44px; } .edit-qty button { width: 44px; height: 44px; } .edit-qty span { width: 44px; height: 44px; line-height: 44px; } + .btn-chip { min-height: 44px; padding: 10px 16px; } +} + +.form-status { + max-width: 1400px; + margin: 0 auto 8px; +} + +.sticky-footer .form-status { + margin-bottom: 8px; +} + +.admin-panel > .form-status { + margin: 0 0 12px; +} + +.form-status-msg:empty { display: none; } + +.form-status-msg { + padding: 8px 12px; + border-radius: var(--radius-control); + font-size: 0.85rem; + font-weight: 500; + text-align: center; +} + +.form-status-error { + background: #fef2f2; + color: #991b1b; + border: 1px solid #fecaca; +} + +.form-status-info { + background: #eff6ff; + color: #1d4ed8; + border: 1px solid #bfdbfe; } .discount-banner { diff --git a/src/server/templates/form.html.j2 b/src/server/templates/form.html.j2 index 905eb91..9069467 100644 --- a/src/server/templates/form.html.j2 +++ b/src/server/templates/form.html.j2 @@ -85,7 +85,7 @@
- +
@@ -94,8 +94,12 @@