Skip to content

Suggestion: CSS @import statements intellisense #3720

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
PindaPixel opened this issue Nov 8, 2023 · 0 comments · May be fixed by #5136
Open

Suggestion: CSS @import statements intellisense #3720

PindaPixel opened this issue Nov 8, 2023 · 0 comments · May be fixed by #5136

Comments

@PindaPixel
Copy link

Right now I'm very satisfied with using CSS modules in single file components, but the intellisense doesn't seem to extend to imported modules:

<template>
    <div :class="$style['my-class']"></div>
</template>
<style module>
/* imagine this contains .my-class */
@import url("./styles/animation.css"); 

.some-class {
...
}
</style>

It works correctly and the language tools don't scream because $style is Record<string, string> & { 'some-class': string }, but it would be nice if the $style type takes static imports into consideration.

@davidmatter davidmatter added the feature request Request new features label Jul 7, 2024
@KazariEX KazariEX removed the feature request Request new features label Jan 18, 2025
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

Successfully merging a pull request may close this issue.

3 participants