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

Generator does not update shadcn.css on component installation #70

Open
LinnJS opened this issue Jul 14, 2024 · 0 comments
Open

Generator does not update shadcn.css on component installation #70

LinnJS opened this issue Jul 14, 2024 · 0 comments

Comments

@LinnJS
Copy link

LinnJS commented Jul 14, 2024

Description

As a user I would expect when installing a component via the generator that all of the dependencies of the component to be installed and when rendering the component that it would render like it does in the docs example.

Current behavior

When installing tooltip it seems it has a dependency on hover_card and you need to install both to get tooltip to work. Furthermore in both of these components they have css variables like bg-tooltip, text-tooltip-foreground, bg-hover_card, and text-hover_card-foreground.

But none of these variables are present in shadcn.css after initial installation then generating these components.

Steps to Reproduce

  1. Follow installation steps as in the docs
  2. Generate the components by running the following command rails generate shadcn-ui tooltip hover-card
  3. Paste in the example component as in the docs on this page.
  4. Tooltip does not have a background since bg-tooltip does not exist in shadcn.css
@LinnJS LinnJS changed the title Generator does not update shadcn.css Generator does not update shadcn.css on component installation Jul 14, 2024
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