Skip to content

fix: campaign banner close button styling#677

Open
RisingOrange wants to merge 1 commit intoPauseAI:mainfrom
RisingOrange:fix-campaign-close-button
Open

fix: campaign banner close button styling#677
RisingOrange wants to merge 1 commit intoPauseAI:mainfrom
RisingOrange:fix-campaign-close-button

Conversation

@RisingOrange
Copy link
Contributor

@RisingOrange RisingOrange commented Feb 28, 2026

Fixes the campaign banner close button hover effect, which appeared as an oval instead of a circle because the button was stretching to the full banner height.

Summary

  • The campaign banner close button used top: 0; bottom: 0 which stretched it to the full banner height
  • With border-radius: 50%, this produced an oval hover background instead of a circle
  • Fixed by using top: 50%; transform: translateY(-50%) to give the button a fixed size and proper vertical centering

How to test

The campaign banner is currently disabled in +layout.svelte. To reproduce, temporarily restore this version of the condition, and hover over the close button on a multiline banner.

Before / After

Before After
Before After

Use top:50%/transform:translateY(-50%) instead of top:0/bottom:0 so the
button has a fixed size and border-radius:50% produces a circle on hover.
@netlify
Copy link

netlify bot commented Feb 28, 2026

Deploy Preview for pauseai ready!

Name Link
🔨 Latest commit 78f8d1a
🔍 Latest deploy log https://app.netlify.com/projects/pauseai/deploys/69a34e472e9f3a0008e7fca0
😎 Deploy Preview https://deploy-preview-677--pauseai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 76 (🔴 down 10 from production)
Accessibility: 90 (no change from production)
Best Practices: 92 (no change from production)
SEO: 99 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@RisingOrange RisingOrange changed the title fix: center campaign banner close button vertically fix: campaign banner close button styling Feb 28, 2026
@RisingOrange RisingOrange marked this pull request as ready for review February 28, 2026 20:29
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.

1 participant