Skip to content

Replace "color" import with "color.scss" - #46365

Merged
tim-dot-org merged 1 commit into
stagingfrom
tim/fix-color-scss
May 16, 2022
Merged

Replace "color" import with "color.scss"#46365
tim-dot-org merged 1 commit into
stagingfrom
tim/fix-color-scss

Conversation

@tim-dot-org

Copy link
Copy Markdown
Contributor

Replace all instances of @import "color" with @import "color.scss" (single and double quotes) to preserve consistency and prevent build errors due to dart-sass upgrade.
This skips the 'dashboard/app/assets' directory, since that was giving style warnings (these files were not causing build issues):
/home/objelisks/code-dot-org/dashboard/app/assets/stylesheets/application.scss:31:9 [W] ImportPath: Imported partial 'color.scss' should be written as 'color'

Still unsure of the root cause here. Only a subset of these files actually cause issues at build time, but I'm replacing all of them in order to keep some consistency. It is only color.scss that ever causes any problems. The only thing special about that file that I can find is that we run convertScssToJs.js on that file, but that doesn't look like it would affect anything about the import.

Links

Testing story

ran yarn build yarn storybook and yarn test

@tim-dot-org
tim-dot-org requested review from a team, jamescodeorg and megcrenshaw May 16, 2022 15:52

@megcrenshaw megcrenshaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Worked perfectly for me! Thanks, Tim

@tim-dot-org
tim-dot-org merged commit 68dc231 into staging May 16, 2022
@tim-dot-org
tim-dot-org deleted the tim/fix-color-scss branch May 16, 2022 20:06
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 this pull request may close these issues.

2 participants