From 67951fa0316f9af067fb9497a856a10b97154629 Mon Sep 17 00:00:00 2001 From: Jeffrey Hales Date: Wed, 17 Jun 2026 14:16:57 -0700 Subject: [PATCH] refactor(faqs): replace decorative search icon with live site button-inline form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original search field used a decorative
with an outline SVG icon floating outside the
— a HubSpot pattern that made the icon non-interactive and the label invisible only by luck. Replaces it with the structure the live site actually uses: - hs-search-field__bar--button-inline with a real
- - @@ -324,9 +316,20 @@ padding-block: 1rem 0.75rem; } + .sr-only { + clip: rect(0, 0, 0, 0); + border: 0; + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + white-space: nowrap; + width: 1px; + } + .hs-search-field { margin-inline: auto; - position: relative; width: min(780px, 100%); } @@ -336,12 +339,11 @@ .hs-search-field__bar { display: block; - position: relative; width: 100%; } - .hs-search-field__bar form { - display: block; + .hs-search-field__form { + display: flex; margin: 0; width: 100%; } @@ -349,15 +351,15 @@ .hs-search-field__input { appearance: none; background: #fff; - border: 1px solid rgba(37, 64, 128, .2); - border-radius: 999px; + border: 2px solid rgba(37, 64, 128, .2); + border-radius: 4px; color: var(--color-primary); - display: inline-block; + flex: 1; font: inherit; line-height: 1.5; min-height: 3.125rem; - padding: .9rem 3rem .9rem 1.5rem; - width: 100%; + min-width: 0; + padding: .9rem 1.25rem; box-shadow: 0 1px 2px rgba(37, 64, 128, .06); } @@ -366,26 +368,24 @@ opacity: 1; } - .ac-btn-search--icon, - .ac-btn-search--close { + .hs-search-field__button { align-items: center; - inset-inline-end: 1rem; + background: #fff; + border: 2px solid rgba(37, 64, 128, .2); + border-radius: 4px; + box-shadow: 0 1px 2px rgba(37, 64, 128, .06); + cursor: pointer; display: flex; - height: 24px; + flex: 0 0 auto; justify-content: center; - position: absolute; - top: 50%; - transform: translateY(-50%); - width: 24px; - pointer-events: none; - } - - .ac-btn-search--icon { + margin-left: 2px; + min-height: 3.125rem; opacity: .85; + padding-inline: 1rem; } - .ac-btn-search--close { - display: none; + .hs-search-field__button:hover { + opacity: 1; } .faq-accordion {