@flamingo-stack/openframe-frontend-core 0.0.411 → 0.0.412
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -233,14 +233,21 @@ export function AnnouncementBar({
|
|
|
233
233
|
styles win over the variant's hover classes on every state,
|
|
234
234
|
so hover feedback is opacity (the bar's original treatment);
|
|
235
235
|
nothing can render dark-on-dark. Hidden on mobile, where the
|
|
236
|
-
whole bar is the tap target.
|
|
236
|
+
whole bar is the tap target.
|
|
237
|
+
|
|
238
|
+
In-bar geometry: size="small" is 32px tall — nearly flush in
|
|
239
|
+
the 44px strip (6px clearance). Banner pills run ~28px with
|
|
240
|
+
horizontal-dominant padding (Polaris micro, Vercel/Tailwind UI
|
|
241
|
+
banners), so the bar pins h-7 (28px = 8px clearance, above the
|
|
242
|
+
24px WCAG 2.5.8 floor) and swaps the uniform pad for
|
|
243
|
+
py-0 px-sf (12px sides at every breakpoint). */}
|
|
237
244
|
{hasCta && displayAnnouncement.cta_text && (
|
|
238
245
|
<div className="hidden md:flex flex-shrink-0 ml-2 md:ml-4">
|
|
239
246
|
<Button
|
|
240
247
|
onClick={handleCtaClick}
|
|
241
248
|
variant="outline"
|
|
242
249
|
size="small"
|
|
243
|
-
className="transition-opacity hover:opacity-90"
|
|
250
|
+
className="h-7 md:h-7 py-0 px-[var(--spacing-system-sf)] transition-opacity hover:opacity-90"
|
|
244
251
|
style={{
|
|
245
252
|
backgroundColor: displayAnnouncement.cta_button_background_color || ANNOUNCEMENT_CTA_DEFAULTS.background,
|
|
246
253
|
color: displayAnnouncement.cta_button_text_color || ANNOUNCEMENT_CTA_DEFAULTS.text,
|