@alauda/ui 6.3.1-beta → 6.3.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.3.1-beta",
3
+ "version": "6.3.1-beta.2",
4
4
  "description": "Angular UI components by Alauda Frontend Team.",
5
5
  "repository": "git+https://github.com/alauda/alauda-ui.git",
6
6
  "author": "Alauda Frontend",
package/theme/_mixin.scss CHANGED
@@ -1,31 +1,37 @@
1
1
  @import 'base-var';
2
2
  @import 'var';
3
3
 
4
- @mixin theme-light {
5
- $host: &;
4
+ @function theme-selector($host) {
5
+ $scope: &;
6
+
7
+ @if ($scope) {
8
+ @return selector-nest($host, $scope);
9
+ } @else {
10
+ @return $host;
11
+ }
12
+ }
6
13
 
14
+ @mixin theme-light {
7
15
  @at-root {
8
- :root #{$host} {
16
+ #{theme-selector(':root')} {
9
17
  @content;
10
18
  }
11
19
 
12
- html[aui-theme-mode='light'] #{$host} {
20
+ #{theme-selector('html[aui-theme-mode=light]')} {
13
21
  @content;
14
22
  }
15
23
  }
16
24
  }
17
25
 
18
26
  @mixin theme-dark {
19
- $host: &;
20
-
21
27
  @at-root {
22
28
  @media (prefers-color-scheme: dark) {
23
- html[aui-theme-mode='system'] #{$host} {
29
+ #{theme-selector('html[aui-theme-mode=system]')} {
24
30
  @content;
25
31
  }
26
32
  }
27
33
 
28
- html[aui-theme-mode='dark'] #{$host} {
34
+ #{theme-selector('html[aui-theme-mode=dark]')} {
29
35
  @content;
30
36
  }
31
37
  }
@@ -103,6 +109,7 @@
103
109
  width: 4px;
104
110
  height: 4px;
105
111
  }
112
+
106
113
  &::-webkit-scrollbar-thumb {
107
114
  background-color: $color;
108
115
  }
package/theme/_var.scss CHANGED
@@ -313,7 +313,6 @@ $tab-label-font-size-medium: $font-size-large;
313
313
  $tab-label-font-size-small: $font-size-regular;
314
314
  $tab-border: $border-width $border-style #ededed;
315
315
  $tab-header-type-card-bg-color: use-rgb(n-9);
316
- $tab-header-indicator-color: $color-primary;
317
316
  $tab-scroll-transition: all 0.3s cubic-bezier(0.35, 0, 0.25, 1);
318
317
  $tab-pagination-button-z-index: 3;
319
318
  $tab-label-z-index: 2;