Skip to content

Commit 12fe18f

Browse files
authored
Replace @import with @use (#7424)
2 parents 958cd03 + 5686dea commit 12fe18f

File tree

325 files changed

+495
-460
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+495
-460
lines changed

packages/components/src/components/@shared/_kol-button-mixin.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
@import 'mixins';
2-
@import '../tooltip/style';
1+
@use 'mixins' as *;
2+
@use '../tooltip/style' as *;
33

44
@mixin kol-button-styles($block-classname) {
55
@layer kol-component {
66
:host {
77
//Needed for custom width
88
display: inline-block;
99
}
10+
1011
.#{$block-classname} {
1112
font-style: rem(16);
1213
display: inline-flex;

packages/components/src/components/@shared/_kol-link-mixin.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import 'mixins';
2-
@import '../tooltip/style';
1+
@use 'mixins' as *;
2+
@use '../tooltip/style' as *;
33

44
@mixin kol-link-styles($block-classname) {
55
@layer kol-component {

packages/components/src/components/@shared/_kol-table-stateless-mixin.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import '../@shared/mixins';
2-
@import '../host-display-block';
3-
@import '../tooltip/style.scss';
1+
@use '../@shared/mixins' as *;
2+
@use '../host-display-block' as *;
3+
@use '../tooltip/style.scss' as *;
44

55
@mixin kol-table-stateless-styles {
66
@layer kol-component {

packages/components/src/components/a11y.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '@shared/mixins';
1+
@use '@shared/mixins' as *;
22

33
/*
44
* This file contains all rules for accessibility.

packages/components/src/components/abbr/style.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import '../@shared/mixins';
2-
@import '../../styles/global';
3-
@import '../tooltip/style.scss';
1+
@use '../@shared/mixins' as *;
2+
@use '../../styles/global' as *;
3+
@use '../tooltip/style.scss' as *;
44

55
@layer kol-component {
66
.kol-abbr {

packages/components/src/components/accordion/style.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@import '../@shared/mixins';
2-
@import '../../styles/global';
3-
@import '../host-display-block';
4-
@import '../../functional-components/Collapsible/collapsible';
1+
@use '../@shared/mixins' as *;
2+
@use '../../styles/global' as *;
3+
@use '../host-display-block' as *;
4+
@use '../../functional-components/Collapsible/collapsible' as *;
55

66
@layer kol-component {
77
.kol-accordion {

packages/components/src/components/alert/style.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import '../../styles/global';
2-
@import '../../styles/kol-alert-mixin';
3-
@import '../@shared/mixins';
1+
@use '../../styles/global' as *;
2+
@use '../../styles/kol-alert-mixin' as *;
3+
@use '../@shared/mixins' as *;
44

55
@include kol-alert;
66

packages/components/src/components/avatar/style.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import '../@shared/mixins';
2-
@import '../../styles/global';
3-
@import '../host-display-block';
1+
@use '../@shared/mixins' as *;
2+
@use '../../styles/global' as *;
3+
@use '../host-display-block' as *;
44

55
@layer kol-component {
66
.kol-avatar {

packages/components/src/components/badge/style.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import '../@shared/mixins';
2-
@import '../../styles/global';
3-
@import '../tooltip/style.scss';
1+
@use '../@shared/mixins' as *;
2+
@use '../../styles/global' as *;
3+
@use '../tooltip/style.scss' as *;
44

55
@layer kol-component {
66
.kol-badge {

packages/components/src/components/breadcrumb/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import '../@shared/mixins';
2-
@import '../../styles/global';
1+
@use '../@shared/mixins' as *;
2+
@use '../../styles/global' as *;
33

44
@layer kol-component {
55
.kol-breadcrumb {

0 commit comments

Comments
 (0)