Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: feature card background overlapping rounded corners on hover in dark mode #1677

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aqandrew
Copy link

@aqandrew aqandrew commented Oct 9, 2024

πŸ”— Linked issue

NA

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

In dark mode, hovering over a feature card makes its background overlap the card's rounded corners:

image

This is caused by setting a background color on the card's content in dark mode:

background: 'dark:bg-gray-900/50'

At first I thought maybe it'd be best to address this in Nuxt UI, but Nuxt UI deliberately does not set overflow-hidden on the Card component that UPageCard extends: nuxt/ui#806 (comment). So I've added overflow-hidden to the ui object here which contains the buggy style.

@xxhertz
Copy link

xxhertz commented Oct 13, 2024

Adding rounded-xl produces the same result, fwiw

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.

2 participants