@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.
- package/CHANGELOG.md +7 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/src/components/charts/legend/legend.scss +5 -6
- package/src/scss/storybook_dark_mode.scss +3 -0
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -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
|
|