Skip to content

Shadcn CSS has global side effects (outline is lost) #787

@kachar

Description

@kachar

Describe the bug

The styles applied with shadcn/style.css have global effects and the outline is getting disabled for all components

Lines that have the side effect are:

:focus-visible {
outline: none;
}

When we import react/style.css instead of shadcn/style.css the outline of inputs is visible.

To Reproduce
https://stackblitz.com/edit/github-jywdw6?file=App.tsx

Import the shadcn.css

import '@blocknote/shadcn/style.css';

Misc

  • Node version: 20
  • Package manager: pnpm
  • Browser: chrome

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions