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

Slightly blurred text on CommandItem #307

Open
NiumXp opened this issue Sep 26, 2024 · 0 comments
Open

Slightly blurred text on CommandItem #307

NiumXp opened this issue Sep 26, 2024 · 0 comments

Comments

@NiumXp
Copy link

NiumXp commented Sep 26, 2024

All the content I put inside CommandList is getting blurry in Chrome due to border-b class on CommandInput. This is the JSX I'm using:

      <CommandDialog open={openPalette} onOpenChange={setOpenPalette}>
        <CommandInput placeholder="Type a command or search..." />
        <CommandList>
          <CommandEmpty>No results found.</CommandEmpty>
          <CommandGroup heading="Grupo">
            <CommandItem>bla</CommandItem>
            <CommandItem>bla bla</CommandItem>
            <CommandItem>bla bla bla</CommandItem>
            <CommandItem>bla bla bla bla</CommandItem>
          </CommandGroup>
        </CommandList>
      </CommandDialog>

The CommandInput with border-b class:
image
The CommandInput without border-b class:
image
Setting border-radius to unset in Dialog also works (if you are using Radix UI):
image

Notes and Workarounds

  • In Firefox (130.0) it's working perfectlly;
  • With border-b-2 everthing works as expected;
  • Without border-b everthing works as expected;
  • In using Dialog from shadcn/ui: https://ui.shadcn.com/docs/components/command;
  • My Chrome User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36.
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

1 participant