@gitlab/ui 67.5.1 → 67.5.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 03 Nov 2023 15:03:12 GMT
3
+ * Generated on Mon, 06 Nov 2023 19:28:32 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 03 Nov 2023 15:03:12 GMT
3
+ * Generated on Mon, 06 Nov 2023 19:28:32 GMT
4
4
  */
5
5
 
6
6
  :root.gl-dark {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 03 Nov 2023 15:03:12 GMT
3
+ * Generated on Mon, 06 Nov 2023 19:28:32 GMT
4
4
  */
5
5
 
6
6
  export const BLACK = "#fff";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 03 Nov 2023 15:03:12 GMT
3
+ * Generated on Mon, 06 Nov 2023 19:28:32 GMT
4
4
  */
5
5
 
6
6
  export const BLACK = "#000";
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 03 Nov 2023 15:03:12 GMT
3
+ // Generated on Mon, 06 Nov 2023 19:28:32 GMT
4
4
 
5
5
  $red-950: #fff4f3;
6
6
  $red-900: #fcf1ef;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 03 Nov 2023 15:03:12 GMT
3
+ // Generated on Mon, 06 Nov 2023 19:28:32 GMT
4
4
 
5
5
  $gl-line-height-52: 3.25rem;
6
6
  $gl-line-height-44: 2.75rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "67.5.1",
3
+ "version": "67.5.2",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -17,7 +17,7 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
17
17
  .gl-legend-tabular,
18
18
  .gl-chart-h-auto .gl-legend-inline {
19
19
  &::after {
20
- background-image: linear-gradient(to bottom, $transparent-rgba, $white);
20
+ background-image: linear-gradient(to bottom, $transparent-rgba, var(--white, #{$white}));
21
21
  @include gl-bottom-0;
22
22
  @include gl-content-empty;
23
23
  @include gl-display-block;
@@ -31,7 +31,6 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
31
31
  @include gl-display-flex;
32
32
  @include gl-flex-wrap;
33
33
  @include gl-flex-shrink-0;
34
- @include gl-text-gray-900;
35
34
 
36
35
  .gl-legend-inline-series {
37
36
  @include gl-display-flex;
@@ -75,14 +74,14 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
75
74
  .gl-legend-tabular-body {
76
75
  height: $legend-body-h;
77
76
  @include gl-overflow-y-auto;
78
-
79
- > *:nth-child(odd) {
80
- @include gl-bg-gray-10;
81
- }
82
77
  }
83
78
 
84
79
  .gl-legend-tabular-row {
85
80
  @include gl-display-flex;
81
+
82
+ &:nth-child(odd) {
83
+ background-color: var(--gray-50, #{$gray-50});
84
+ }
86
85
  }
87
86
 
88
87
  .gl-legend-tabular-title-cell,
@@ -15,6 +15,9 @@
15
15
  // Note that we are assigning variables with different values due to the way GitLab inverts variables in dark mode.
16
16
  // e.g. text color is usually $gray-900, but in dark mode $gray-900 variable gets inverted to $gray-50
17
17
  --gl-text-color: #{$gray-50};
18
+ --white: #{$gray-900}; // define mapping between the colours in dark mode. I have used the values from GitLab for consistency: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/stylesheets/themes/_dark.scss
19
+ --gray-10: #{$gray-950};
20
+ --gray-600: #{$gray-300};
18
21
 
19
22
  color-scheme: dark;
20
23