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

feat(styles): use the sass module system instead of @import #14094

Merged
merged 6 commits into from Aug 29, 2021

Conversation

KaelWD
Copy link
Member

@KaelWD KaelWD commented Aug 26, 2021

https://sass-lang.com/documentation/at-rules/use
https://sass-lang.com/documentation/at-rules/forward

Fixes #13694

Also adds a $reset variable and allows $utilities to be set to false.

@KaelWD KaelWD added the sass label Aug 26, 2021
@KaelWD KaelWD added this to the v3.0.0 milestone Aug 26, 2021
@KaelWD KaelWD self-assigned this Aug 26, 2021
@KaelWD KaelWD force-pushed the feat/sass-modules branch 2 times, most recently from ae8ed79 to b7eae4c Compare August 28, 2021 15:49
@KaelWD KaelWD marked this pull request as ready for review August 28, 2021 17:31
@KaelWD KaelWD requested a review from a team August 28, 2021 17:53
Copy link
Member

@johnleider johnleider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Would it have been possible to keep the index sass files or was there a specific reason not to? Reference: https://sass-lang.com/documentation/at-rules/use#index-files

packages/vuetify/src/components/VBanner/_index.scss Outdated Show resolved Hide resolved
packages/vuetify/src/components/VBtn/_index.scss Outdated Show resolved Hide resolved
@KaelWD
Copy link
Member Author

KaelWD commented Aug 29, 2021

Could but it would be pretty pointless because all it would be is @forward './variables', the global stuff still needs to be imported in the component file itself. You have to be explicit about dependencies now, it isn't all just thrown into one namespace anymore.

@KaelWD KaelWD changed the title refactor(styles): use the sass module system instead of @import feat(styles): use the sass module system instead of @import Aug 29, 2021
@KaelWD KaelWD merged commit da87615 into next Aug 29, 2021
@KaelWD KaelWD deleted the feat/sass-modules branch August 29, 2021 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants