Skip to content

Commit

Permalink
Fix Sass warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Dec 6, 2024
1 parent fbea704 commit 439497b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/build/src/vite.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export function defineViteConfig({
postcss: getPostCssConfig(),
preprocessorOptions: {
scss: {
// https://sass-lang.com/documentation/breaking-changes/legacy-js-api/
// TODO: Remove once vite has been updated to new API:
silenceDeprecations: ['legacy-js-api']
// TODO: Convert all @import statements to @use:
// https://sass-lang.com/documentation/breaking-changes/import/
silenceDeprecations: ['import']
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/src/styles/mixins/_arrow.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:map';

$angles: (
up: 135deg,
down: -45deg,
Expand All @@ -18,7 +20,7 @@ $angles: (
width: $size;
height: $size;
pointer-events: none;
transform: rotate(map_get($angles, $direction));
transform: rotate(map.get($angles, $direction));
margin: auto;
top: 0;
bottom: 0;
Expand Down

0 comments on commit 439497b

Please sign in to comment.