Skip to content

Make production warning banner less obstructive and more attention seeking#16106

Open
Claude wants to merge 2 commits intodevelopfrom
claude/make-warning-banner-less-obstructive
Open

Make production warning banner less obstructive and more attention seeking#16106
Claude wants to merge 2 commits intodevelopfrom
claude/make-warning-banner-less-obstructive

Conversation

@Claude
Copy link
Contributor

@Claude Claude AI commented Mar 13, 2026

Proposed Changes

Redesigned the production warning banner from a full-width sticky bar to a floating centered badge with enhanced visual attention cues.

Design Changes:

  • Layout: Replaced sticky top-0 full-width bar with fixed centered floating badge using rounded-full pill shape
  • Positioning: Uses pointer-events-none on container, pointer-events-auto on badge to avoid blocking page interactions
  • Visual Hierarchy: Reduced from large bar to compact badge (4rem padding, smaller icon/text)

Attention Enhancements:

  • Layered pulse animations on container, glow layer, and icon
  • Blur-sm glow effect with red-500 background at 75% opacity
  • Red ring border (ring-2 ring-red-400) for emphasis
  • Interactive hover states: scale-105 and enhanced shadow
  • Uppercase, bold, tracking-wide text styling
// Before: Obstructive sticky bar
<div className="sticky top-0 z-50 flex items-center justify-between gap-2 bg-red-600 px-4 py-2...">

// After: Floating centered badge with glow
<div className="pointer-events-none fixed inset-x-0 top-4 z-50 flex justify-center">
  <div className="pointer-events-auto group relative animate-pulse">
    <div className="absolute -inset-1 rounded-full bg-red-500 opacity-75 blur-sm animate-pulse" />
    <div className="relative flex items-center gap-2 rounded-full bg-red-600 px-4 py-2...">

Tagging: @ohcnetwork/care-fe-code-reviewers

Merge Checklist

  • Add specs that demonstrate the bug or test the new feature.
  • Update product documentation.
  • Ensure that UI text is placed in I18n files.
  • Prepare a screenshot or demo video for the changelog entry and attach it to the issue.
  • Request peer reviews.
  • Complete QA on mobile devices.
  • Complete QA on desktop devices.
  • Add or update Playwright tests for related changes
Original prompt

This section details on the original issue you should resolve

<issue_title>make production warning banner less obstructive and more attention seeking</issue_title>
<issue_description>make production warning banner less obstructive and more attention seeking</issue_description>

Comments on the Issue (you are @claude[agent] in this section)

@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit d6e5447
🔍 Latest deploy log https://app.netlify.com/projects/care-ohc/deploys/69b3fb33613ae50008cbef9a
😎 Deploy Preview https://deploy-preview-16106.preview.ohc.network
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…eking

Co-authored-by: Jacobjeevan <40040905+Jacobjeevan@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 13, 2026

Deploying care-preview with  Cloudflare Pages  Cloudflare Pages

Latest commit: d6e5447
Status: ✅  Deploy successful!
Preview URL: https://0cdc30ac.care-preview-a7w.pages.dev
Branch Preview URL: https://claude-make-warning-banner-l.care-preview-a7w.pages.dev

View logs

@Claude Claude AI changed the title [WIP] Fix production warning banner visibility and attention Make production warning banner less obstructive and more attention seeking Mar 13, 2026
@Claude Claude AI requested a review from Jacobjeevan March 13, 2026 11:56
@bodhish bodhish marked this pull request as ready for review March 15, 2026 16:46
@bodhish bodhish requested review from a team and Copilot March 15, 2026 16:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Redesigns the “ProductionWarningBanner” from a full-width sticky bar to a fixed, centered floating badge with glow/pulse effects, and includes a minor formatting change in print CSS selectors.

Changes:

  • Replace sticky top banner with fixed, centered pill-style badge + layered pulse/glow styling.
  • Adjust pointer-events behavior to reduce interaction obstruction.
  • Reformat a long @media print selector in index.css for readability.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
src/style/index.css Reformats the single-print collapse selector across multiple lines (no functional intent apparent).
src/components/Common/ProductionWarningBanner.tsx Implements the new floating badge UI with pulse/glow styling and pointer-events adjustments.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +30 to +33
<AlertTriangleIcon className="h-4 w-4 shrink-0 animate-pulse" />
<span className="text-xs font-bold uppercase tracking-wide">
{t("production_warning_banner")}
</span>
Comment on lines +26 to +34
<div className="pointer-events-none fixed inset-x-0 top-4 z-50 flex justify-center">
<div className="pointer-events-auto group relative animate-pulse">
<div className="absolute -inset-1 rounded-full bg-red-500 opacity-75 blur-sm animate-pulse" />
<div className="relative flex items-center gap-2 rounded-full bg-red-600 px-4 py-2 text-white shadow-lg ring-2 ring-red-400 transition-all hover:scale-105 hover:shadow-xl">
<AlertTriangleIcon className="h-4 w-4 shrink-0 animate-pulse" />
<span className="text-xs font-bold uppercase tracking-wide">
{t("production_warning_banner")}
</span>
</div>
{t("production_warning_banner")}
</span>
<div className="pointer-events-none fixed inset-x-0 top-4 z-50 flex justify-center">
<div className="pointer-events-auto group relative animate-pulse">
</span>
<div className="pointer-events-none fixed inset-x-0 top-4 z-50 flex justify-center">
<div className="pointer-events-auto group relative animate-pulse">
<div className="absolute -inset-1 rounded-full bg-red-500 opacity-75 blur-sm animate-pulse" />
Comment on lines +27 to +30
<div className="pointer-events-auto group relative animate-pulse">
<div className="absolute -inset-1 rounded-full bg-red-500 opacity-75 blur-sm animate-pulse" />
<div className="relative flex items-center gap-2 rounded-full bg-red-600 px-4 py-2 text-white shadow-lg ring-2 ring-red-400 transition-all hover:scale-105 hover:shadow-xl">
<AlertTriangleIcon className="h-4 w-4 shrink-0 animate-pulse" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make production warning banner less obstructive and more attention seeking

3 participants