igniteui-theming 27.2.0 → 27.2.1

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": "igniteui-theming",
3
- "version": "27.2.0",
3
+ "version": "27.2.1",
4
4
  "description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -78,10 +78,18 @@
78
78
  $result-color: adaptive-contrast(var(--background-color));
79
79
  }
80
80
 
81
+ @if not($border-color) and $background-color and $result-color {
82
+ $border-color: hsl(from color-mix(in srgb, var(--result-color) 16%, var(--background-color)) h s l / 0.38);
83
+ }
84
+
81
85
  @if not($border-color) and $background-color {
82
86
  $border-color: hsl(from adaptive-contrast(var(--background-color)) h s l / 0.2);
83
87
  }
84
88
 
89
+ @if not($pinned-border-color) and $background-color and $result-color {
90
+ $pinned-border-color: color-mix(in srgb, var(--result-color) 20%, var(--background-color));
91
+ }
92
+
85
93
  @if not($pinned-border-color) and $background-color {
86
94
  $pinned-border-color: hsl(from adaptive-contrast(var(--background-color)) h s l / 0.26);
87
95
  }
@@ -331,9 +331,7 @@
331
331
  }
332
332
 
333
333
  @if not($header-border-color) and $header-text-color and $header-background {
334
- $header-border-color: hsl(
335
- from color-mix(in srgb, var(--header-text-color) 20%, var(--header-background)) h s l / 0.38
336
- );
334
+ $header-border-color: color-mix(in srgb, var(--header-text-color) 20%, var(--header-background));
337
335
  }
338
336
 
339
337
  @if not($sorted-header-icon-color) and $accent-color {
@@ -90,16 +90,24 @@
90
90
  $item-text-color: var(--foreground);
91
91
  }
92
92
 
93
- @if not($item-hover-background) and $background and $accent-color {
94
- $item-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--background));
93
+ @if not($item-hover-background) and $dropdown-background and $accent-color {
94
+ $item-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--dropdown-background));
95
+ }
96
+
97
+ @if not($item-hover-background) and $dropdown-background {
98
+ $item-hover-background: dynamic-shade(var(--dropdown-background));
95
99
  }
96
100
 
97
101
  @if not($item-hover-text-color) and $item-text-color {
98
102
  $item-hover-text-color: var(--item-text-color);
99
103
  }
100
104
 
101
- @if not($item-focus-background) and $background and $accent-color {
102
- $item-focus-background: color-mix(in srgb, var(--accent-color) 12%, var(--background));
105
+ @if not($item-focus-background) and $dropdown-background and $accent-color {
106
+ $item-focus-background: color-mix(in srgb, var(--accent-color) 12%, var(--dropdown-background));
107
+ }
108
+
109
+ @if not($item-focus-background) and $dropdown-background {
110
+ $item-focus-background: dynamic-shade(var(--dropdown-background), $offset: 8);
103
111
  }
104
112
 
105
113
  @if not($item-focus-text-color) and $item-text-color {
@@ -110,10 +118,6 @@
110
118
  $border-color: color-mix(in srgb, var(--foreground) 20%, var(--background));
111
119
  }
112
120
 
113
- @if not($title-text-color) and $background {
114
- $title-text-color: adaptive-contrast(var(--background));
115
- }
116
-
117
121
  @if not($item-text-color) and $dropdown-background {
118
122
  $item-text-color: adaptive-contrast(var(--dropdown-background));
119
123
  }
@@ -60,6 +60,7 @@ $dark-material-grid-summary: extend(
60
60
  /// Generates a dark fluent grid-summary schema.
61
61
  /// @type Map
62
62
  /// @prop {Map} label-color [color: ('primary', 300)] - The summaries label color.
63
+ /// @prop {Map} pinned-border-color [color: ('gray', 300, .24)] - The color of the pinned border.
63
64
  /// @requires $fluent-grid-summary
64
65
  $dark-fluent-grid-summary: extend(
65
66
  $fluent-grid-summary,
@@ -71,6 +72,14 @@ $dark-fluent-grid-summary: extend(
71
72
  300,
72
73
  ),
73
74
  ),
75
+
76
+ pinned-border-color: (
77
+ color: (
78
+ 'gray',
79
+ 300,
80
+ 0.24,
81
+ ),
82
+ ),
74
83
  )
75
84
  );
76
85
 
@@ -11,7 +11,7 @@
11
11
  /// @type Map
12
12
  /// @prop {Color} content-background [color: 'surface'] - The table body background color.
13
13
  /// @prop {Map} drop-area-background [color: ('gray', 100, .4)] - The drop area background color.
14
- /// @prop {Map} header-border-color [color: ('gray', 200, .24)] - The color used for header borders.
14
+ /// @prop {Map} header-border-color [color: ('gray', 200)] - The color used for header borders.
15
15
  /// @prop {Map} header-background [color: ('gray', 100)] - The table header background color.
16
16
  /// @prop {Map} header-selected-background [color: ('secondary', 600)] - The table header background color when selected (ex. column selection).
17
17
  /// @prop {Map} header-selected-text-color [contrast-color: ('secondary', 600)] - The table header text color when selected (ex. column selection).
@@ -51,7 +51,6 @@ $base-dark-grid: (
51
51
  color: (
52
52
  'gray',
53
53
  200,
54
- 0.24,
55
54
  ),
56
55
  ),
57
56
 
@@ -275,6 +274,7 @@ $dark-material-grid: extend(
275
274
  /// @prop {Map} row-selected-hover-background [color: ('gray', 200)] - The selected row background color on hover.
276
275
  /// @prop {Map} body-column-selected-border-color [color: ('gray', 100)] - The border color used for the body column when in group-row state.
277
276
  /// @prop {Map} body-column-hover-selected-border-color [color: ('gray', 200)] - The border color used for the body column when in group-row + hover state.
277
+ /// @prop {Map} pinned-border-color [color: ('gray', 300, .24)] - The color of the pinned border.
278
278
  /// @prop {Map} row-selected-hover-text-color [contrast-color: ('gray', 200)] - The selected row hover text color.
279
279
  /// @prop {Map} cell-selected-within-background [color: ('gray', 200)] - The background of the selected cell inside a selected row/column.
280
280
  /// @prop {Map} cell-selected-within-text-color [contrast-color: ('gray', 200)] - The color of the selected cell inside a selected row/column.
@@ -16,7 +16,7 @@
16
16
  /// @prop {Map} sortable-header-icon-hover-color [color: ('secondary', 500)] - The icon color on hover in grid header when the column is sortable.
17
17
  /// @prop {Number} header-border-width [1px] - The border width used for header borders.
18
18
  /// @prop {String} header-border-style [solid] - The border style used for header borders.
19
- /// @prop {Map} header-border-color [color: ('gray', 400, .38)] - The color used for header borders.
19
+ /// @prop {Map} header-border-color [color: ('gray', 400)] - The color used for header borders.
20
20
  /// @prop {Map} ghost-header-text-color [color: ('gray', 700)] - The dragged header text color.
21
21
  /// @prop {Map} ghost-header-icon-color [color: ('gray', 600)] - The dragged header icon color.
22
22
  /// @prop {Map} ghost-header-background [color: ('gray', 50)] - The dragged header background color.
@@ -176,7 +176,6 @@ $light-grid: extend(
176
176
  color: (
177
177
  'gray',
178
178
  400,
179
- 0.38,
180
179
  ),
181
180
  ),
182
181
 
@@ -839,7 +838,7 @@ $material-grid: extend(
839
838
  /// @prop {Map} header-text-color [color: ('gray', 800)] - The table header text color.
840
839
  /// @prop {Map} header-selected-background [color: ('gray', 200)] - The table header background color when selected (ex. column selection).
841
840
  /// @prop {Map} header-selected-text-color [contrast-color: ('gray', 200)] - The table header text color when selected (ex. column selection).
842
- /// @prop {Map} header-border-color [color: ('gray', 100)] - The color used for header borders.
841
+ /// @prop {Map} header-border-color [color: ('gray', 300)] - The color used for header borders.
843
842
  /// @prop {Map} row-selected-background [color: ('gray', 200)] - The selected row background color.
844
843
  /// @prop {Map} row-selected-hover-background [color: ('gray', 300)] - The selected row hover background.
845
844
  /// @prop {Map} body-column-selected-border-color [color: ('gray', 200)] - The border color used for the body column when in group-row state.
@@ -901,7 +900,7 @@ $fluent-grid: extend(
901
900
  header-border-color: (
902
901
  color: (
903
902
  'gray',
904
- 100,
903
+ 300,
905
904
  ),
906
905
  ),
907
906