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

Scroll Area cuts off input box highlighted border #1597

Open
brendan-morin opened this issue Jan 3, 2025 · 1 comment
Open

Scroll Area cuts off input box highlighted border #1597

brendan-morin opened this issue Jan 3, 2025 · 1 comment

Comments

@brendan-morin
Copy link

brendan-morin commented Jan 3, 2025

Describe the bug

Not even sure if this is a bug (please close if not), but it was somewhat unexpected so I'd be interested in thoughts. Basic scroll area usage cuts off the edges of input box border highlight on select:

<ScrollArea>
    <div class="py-1">
      <Input />
    </div>
</ScrollArea>

See left/right edges:
Screenshot 2025-01-03 at 12 37 18 PM

Without py-1 the effect is there but difficult to see as it's only tiny pixels in the corners that show up. Adding padding all around resolves this:

<ScrollArea>
    <div class="p-1">
      <Input />
    </div>
</ScrollArea>

Reproduction

See code above, it's a trivial reproduction.

Logs

No response

System Info

N/A

Severity

annoyance

@mattcar15
Copy link

mattcar15 commented Jan 16, 2025

Facing the same issue, it's the general shadcn implementation though, not unique to sveldt

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

No branches or pull requests

2 participants