Skip to content

Customizing Style import #117

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

Open
caiokawasaki opened this issue Apr 9, 2025 · 1 comment
Open

Customizing Style import #117

caiokawasaki opened this issue Apr 9, 2025 · 1 comment

Comments

@caiokawasaki
Copy link

caiokawasaki commented Apr 9, 2025

I'm importing the complete .scss file I copied from this repository, my question is, why do I need to import the default compiled .css?

import '@imengyu/vue3-context-menu/lib/vue3-context-menu.css'
import '@/assets/scss/contextMenu.scss'

If I just import my own style it doesn't work:

import '@/assets/scss/contextMenu.scss'

I need to import both styles, this doesn't make any sense...

How can I fix that? I just want to import my own style.

@imengyu
Copy link
Owner

imengyu commented Apr 15, 2025

There are two styles written inside the component here .mx-menu-ghost-host.

ContextMenu.scss was not intended for you to import, the correct way is to use compiled css file.

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