Skip to content

Commit 0862c32

Browse files
committed
Fix Sass warnings
1 parent fbea704 commit 0862c32

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
// stylelint-disable scss/load-partial-extension
12
@import '@ditojs/ui/imports.scss';
23
@import '_settings';

packages/build/src/vite.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ export function defineViteConfig({
5656
postcss: getPostCssConfig(),
5757
preprocessorOptions: {
5858
scss: {
59-
// https://sass-lang.com/documentation/breaking-changes/legacy-js-api/
60-
// TODO: Remove once vite has been updated to new API:
61-
silenceDeprecations: ['legacy-js-api']
59+
// TODO: Convert all @import statements to @use:
60+
// https://sass-lang.com/documentation/breaking-changes/import/
61+
silenceDeprecations: ['import']
6262
}
6363
}
6464
}

packages/ui/src/components/Trigger.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export default {
374374

375375
<style lang="scss">
376376
@import '../styles/_imports';
377-
@import '../styles/transitions/index.scss';
377+
@import '../styles/transitions';
378378

379379
.dito-trigger-container {
380380
position: relative;

packages/ui/src/styles/mixins/_arrow.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use 'sass:map';
2+
13
$angles: (
24
up: 135deg,
35
down: -45deg,
@@ -18,7 +20,7 @@ $angles: (
1820
width: $size;
1921
height: $size;
2022
pointer-events: none;
21-
transform: rotate(map_get($angles, $direction));
23+
transform: rotate(map.get($angles, $direction));
2224
margin: auto;
2325
top: 0;
2426
bottom: 0;

0 commit comments

Comments
 (0)