-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Switch from @import to @use #7157
Open
justinbhopper
wants to merge
2
commits into
palantir:develop
Choose a base branch
from
justinbhopper:sass-use-forward
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,025
−748
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
// Copyright 2015 Palantir Technologies, Inc. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. | ||
|
||
@import "alert/alert"; | ||
@import "breadcrumbs/breadcrumbs"; | ||
@import "button/button"; | ||
@import "button/button-group"; | ||
@import "callout/callout"; | ||
@import "card/card"; | ||
@import "card-list/card-list"; | ||
@import "collapse/collapse"; | ||
@import "context-menu/context-menu"; | ||
@import "control-card/control-card"; | ||
@import "divider/divider"; | ||
@import "dialog/dialog"; | ||
@import "dialog/dialog-body"; | ||
@import "dialog/dialog-footer"; | ||
@import "dialog/multistep-dialog"; | ||
@import "drawer/drawer"; | ||
@import "editable-text/editable-text"; | ||
@import "entity-title/entity-title"; | ||
@import "forms/index"; | ||
@import "html-select/html-select"; | ||
@import "html-table/html-table"; | ||
@import "hotkeys/hotkeys"; | ||
@import "icon/icon"; | ||
@import "menu/menu"; | ||
@import "navbar/navbar"; | ||
@import "non-ideal-state/non-ideal-state"; | ||
@import "overflow-list/overflow-list"; | ||
@import "overlay/overlay"; | ||
@import "panel-stack/panel-stack"; | ||
@import "panel-stack2/panel-stack2"; | ||
@import "popover/popover"; | ||
@import "portal/portal"; | ||
@import "progress-bar/progress-bar"; | ||
@import "section/section"; | ||
@import "segmented-control/segmented-control"; | ||
@import "skeleton/skeleton"; | ||
@import "slider/slider"; | ||
@import "spinner/spinner"; | ||
@import "tabs/tabs"; | ||
@import "tag/tag"; | ||
@import "tag/compound-tag"; | ||
@import "tag-input/tag-input"; | ||
@import "tag-input/resizable-input"; | ||
@import "toast/toast"; | ||
@import "tooltip/tooltip"; | ||
@import "tree/tree"; | ||
@forward "alert/alert"; | ||
@forward "breadcrumbs/breadcrumbs"; | ||
@forward "button/button"; | ||
@forward "button/button-group"; | ||
@forward "callout/callout"; | ||
@forward "card/card"; | ||
@forward "card-list/card-list"; | ||
@forward "collapse/collapse"; | ||
@forward "context-menu/context-menu"; | ||
@forward "control-card/control-card"; | ||
@forward "divider/divider"; | ||
@forward "dialog/dialog"; | ||
@forward "dialog/dialog-body"; | ||
@forward "dialog/dialog-footer"; | ||
@forward "dialog/multistep-dialog"; | ||
@forward "drawer/drawer"; | ||
@forward "editable-text/editable-text"; | ||
@forward "entity-title/entity-title"; | ||
@forward "forms/index"; | ||
@forward "html-select/html-select"; | ||
@forward "html-table/html-table"; | ||
@forward "hotkeys/hotkeys"; | ||
@forward "icon/icon"; | ||
@forward "menu/menu"; | ||
@forward "navbar/navbar"; | ||
@forward "non-ideal-state/non-ideal-state"; | ||
@forward "overflow-list/overflow-list"; | ||
@forward "overlay/overlay"; | ||
@forward "panel-stack/panel-stack"; | ||
@forward "panel-stack2/panel-stack2"; | ||
@forward "popover/popover"; | ||
@forward "portal/portal"; | ||
@forward "progress-bar/progress-bar"; | ||
@forward "section/section"; | ||
@forward "segmented-control/segmented-control"; | ||
@forward "skeleton/skeleton"; | ||
@forward "slider/slider"; | ||
@forward "spinner/spinner"; | ||
@forward "tabs/tabs"; | ||
@forward "tag/tag"; | ||
@forward "tag/compound-tag"; | ||
@forward "tag-input/tag-input"; | ||
@forward "tag-input/resizable-input"; | ||
@forward "toast/toast"; | ||
@forward "tooltip/tooltip"; | ||
@forward "tree/tree"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like updating
@import "mixins"
here causes theborder-shadow
mixin to not be available in certain component style files. Particularly, it causes the elevation shadows on Cards and wherever else we use the elevation classes specifically to become malformed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ggdouglas Great catch! Somehow, I missed this function usage.
In order to solve this, I had to remove the usage of
border-shadow
in_variables.css
. This is because we can't import a reference to_mixins.scss
in this file without creating a circular dependency loop. Sinceborder-shadow
is pretty straight forward, I figured it would be fine.I triple-checked all the other functions and I feel pretty confident this was the only thing I missed. Famous last words? 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I had also noticed the circular dependency between
_variables.css
and_mixins.scss
. Substituting the mixin seems like a reasonable change to me. 👍