From e464a4160defa93bce1b94e23529998b8c002cab Mon Sep 17 00:00:00 2001 From: Kerim Atilgan Date: Fri, 15 May 2026 17:48:04 +0200 Subject: [PATCH] Fix Stitch redesign: border defaults, tab underline, 3-col carrier grid Three small but visible regressions in the previous step: 1. Tailwind's "border" utility only sets the width; with preflight disabled the style fell back to the browser default (none), so the carrier cards in step 1 rendered without any visible outline. Add a minimal *,::before,::after rule that restores border-style: solid and a sensible default border-color, mirroring the relevant slice of preflight without breaking legacy screens. 2. The active tab underline was a mix of Tailwind border-b-2 utility classes on the button and a CSS border-bottom override. Because the button used flex items-center inside an li, the underline floated somewhere in the middle of the header instead of hugging the bottom. Drop the Tailwind border-* classes and switch to a single inset box-shadow at the bottom of the button, which always anchors to the header's lower edge regardless of padding. 3. The carrier grid was 4 columns on lg, which made 6 providers wrap awkwardly. Match the Stitch mockup: 2 cols on small screens, 3 on lg. Card corner radius shrunk from rounded-lg back to rounded (4px) to match the Stitch tool-style aesthetic. Co-Authored-By: Claude Opus 4.7 (1M context) --- public/index.html | 55 +++++++++++++++++++++++++---------------------- public/script.js | 2 +- 2 files changed, 30 insertions(+), 27 deletions(-) diff --git a/public/index.html b/public/index.html index 6f5dee8..92401ec 100644 --- a/public/index.html +++ b/public/index.html @@ -86,6 +86,12 @@ .material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; } + /* Tailwind preflight is disabled to keep legacy screens working; + manually restore the border defaults Tailwind utilities expect. */ + *, ::before, ::after { + border-color: #c3c6d7; + border-style: solid; + }