@gitlab/ui 90.4.0 → 91.0.0

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.
@@ -26,7 +26,6 @@ const CONTRAST_LEVELS = [{
26
26
  }];
27
27
  const HEX_REGEX = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
28
28
  const LEFT_MOUSE_BUTTON = 0;
29
- const glThemes = ['indigo', 'blue', 'light-blue', 'green', 'red', 'light-red'];
30
29
  const variantOptions = {
31
30
  primary: 'primary',
32
31
  secondary: 'secondary',
@@ -306,4 +305,4 @@ const loadingIconVariants = {
306
305
  dots: 'dots'
307
306
  };
308
307
 
309
- export { COMMA, CONTRAST_LEVELS, HEX_REGEX, LEFT_MOUSE_BUTTON, alertVariantIconMap, alertVariantOptions, alignOptions, avatarShapeOptions, avatarSizeOptions, avatarsInlineSizeOptions, badgeForButtonOptions, badgeIconSizeOptions, badgeSizeOptions, badgeVariantOptions, bannerVariants, buttonCategoryOptions, buttonSizeOptions, buttonVariantOptions, colorThemes, columnOptions, datepickerWidthOptionsMap, defaultDateFormat, drawerVariants, dropdownAllowedAutoPlacements, dropdownPlacements, dropdownVariantOptions, focusableTags, formInputWidths, formStateOptions, glThemes, iconSizeOptions, iconVariantOptions, keyboard, labelColorOptions, loadingIconSizes, loadingIconVariants, maxZIndex, modalButtonDefaults, modalSizeOptions, popoverPlacements, resizeDebounceTime, tabsButtonDefaults, targetOptions, toggleLabelPosition, tokenVariants, tooltipActionEvents, tooltipDelay, tooltipPlacements, triggerVariantOptions, truncateOptions, variantCssColorMap, variantOptions, variantOptionsWithNoDefault, viewModeOptions };
308
+ export { COMMA, CONTRAST_LEVELS, HEX_REGEX, LEFT_MOUSE_BUTTON, alertVariantIconMap, alertVariantOptions, alignOptions, avatarShapeOptions, avatarSizeOptions, avatarsInlineSizeOptions, badgeForButtonOptions, badgeIconSizeOptions, badgeSizeOptions, badgeVariantOptions, bannerVariants, buttonCategoryOptions, buttonSizeOptions, buttonVariantOptions, colorThemes, columnOptions, datepickerWidthOptionsMap, defaultDateFormat, drawerVariants, dropdownAllowedAutoPlacements, dropdownPlacements, dropdownVariantOptions, focusableTags, formInputWidths, formStateOptions, iconSizeOptions, iconVariantOptions, keyboard, labelColorOptions, loadingIconSizes, loadingIconVariants, maxZIndex, modalButtonDefaults, modalSizeOptions, popoverPlacements, resizeDebounceTime, tabsButtonDefaults, targetOptions, toggleLabelPosition, tokenVariants, tooltipActionEvents, tooltipDelay, tooltipPlacements, triggerVariantOptions, truncateOptions, variantCssColorMap, variantOptions, variantOptionsWithNoDefault, viewModeOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "90.4.0",
3
+ "version": "91.0.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -42,6 +42,7 @@ $gl-alert-top-border-size: 2px;
42
42
  position: relative;
43
43
  padding-inline: calc(#{$gl-spacing-scale-9} + #{$gl-alert-padding-x});
44
44
  @include gl-py-5;
45
+ @apply gl-rounded-base;
45
46
 
46
47
  @media (forced-colors: active) {
47
48
  border: 1px solid transparent;
@@ -81,9 +82,7 @@ $gl-alert-top-border-size: 2px;
81
82
  }
82
83
 
83
84
  .gl-alert-title {
84
- @include gl-heading-scale-500;
85
- @include gl-mb-3;
86
- color: var(--gl-text-color-heading);
85
+ @apply gl-heading-scale-400 -gl-mt-1 gl-mb-2;
87
86
  }
88
87
 
89
88
  .gl-alert-icon-container {
@@ -95,8 +94,7 @@ $gl-alert-top-border-size: 2px;
95
94
  height: $gl-line-height-20;
96
95
 
97
96
  .gl-alert-has-title & {
98
- @include gl-heading-scale-500; // get dynamic font-size
99
- height: $gl-line-height-heading * 1em; // give unit to unitless relative line-height (1.25)
97
+ top: calc(#{$gl-spacing-scale-4} + #{$gl-alert-top-border-size});
100
98
  }
101
99
  }
102
100
 
@@ -107,7 +105,7 @@ $gl-alert-top-border-size: 2px;
107
105
 
108
106
  .gl-alert-actions {
109
107
  @include gl-display-flex;
110
- @include gl-mt-5;
108
+ @include gl-mt-3;
111
109
  }
112
110
 
113
111
  .gl-alert-action {
@@ -121,6 +119,10 @@ $gl-alert-top-border-size: 2px;
121
119
  position: absolute;
122
120
  top: calc(#{$gl-spacing-scale-4} + #{$gl-alert-top-border-size});
123
121
  right: calc(#{$gl-spacing-scale-4} + #{$gl-alert-padding-x});
122
+
123
+ .gl-alert-has-title & {
124
+ top: $gl-spacing-scale-4;
125
+ }
124
126
  }
125
127
 
126
128
  /* Variants */
@@ -6,25 +6,14 @@ $path-chevron-dimension: px-to-rem(24px);
6
6
  $path-chevron-border-radius: px-to-rem(10px);
7
7
  $path-chevron-tip-border-radius: px-to-rem(2px);
8
8
  $path-button-right-padding: 1.25 * $grid-size;
9
- $path-chevron-drop-shadow: drop-shadow(0 0 px-to-rem(1px) $white)
10
- drop-shadow(0 0 px-to-rem(2px) $blue-500);
11
9
  $path-chevron-transformation: rotate(45deg) skew(14deg, 14deg);
12
10
  $path-chevron-right-margin: px-to-rem(14px);
13
11
 
14
12
  // Mixins
15
- @mixin gl-path-active-item-color($color) {
16
- @include gl-text-contrast-light;
17
- background-color: $color;
18
-
19
- &::after {
20
- background-color: $color;
21
- }
22
- }
23
-
24
13
  @mixin gl-path-chevron {
14
+ @include gl-reset-bg;
25
15
  content: '';
26
16
  position: absolute;
27
- @include gl-reset-bg;
28
17
  top: $path-chevron-top;
29
18
  right: $path-chevron-right;
30
19
  width: $path-chevron-dimension;
@@ -34,6 +23,7 @@ $path-chevron-right-margin: px-to-rem(14px);
34
23
  border-top-left-radius: $path-chevron-border-radius;
35
24
  border-bottom-right-radius: $path-chevron-border-radius;
36
25
  border-top-right-radius: $path-chevron-tip-border-radius;
26
+ clip-path: polygon(100% 0, 0 0, 100% 100%);
37
27
  }
38
28
 
39
29
  .gl-path-nav {
@@ -43,11 +33,11 @@ $path-chevron-right-margin: px-to-rem(14px);
43
33
  .gl-path-nav-list {
44
34
  @include gl-p-1;
45
35
  @include gl-m-0;
46
- position: relative;
47
36
  @include gl-list-style-none;
48
37
  @include gl-display-inline-flex;
49
38
  @include gl-overflow-hidden;
50
39
  margin-left: -1px;
40
+ position: relative;
51
41
  }
52
42
 
53
43
  .gl-path-nav-list-item {
@@ -65,18 +55,18 @@ $path-chevron-right-margin: px-to-rem(14px);
65
55
  @include gl-pl-5;
66
56
  @include gl-py-3;
67
57
  @include gl-display-flex;
68
- position: relative;
69
58
  @include gl-font-base;
70
59
  @include gl-z-index-0;
71
- @apply gl-border-none;
72
- @include gl-text-gray-500;
73
60
  @include gl-font-weight-bold;
74
61
  @include gl-line-height-normal;
75
62
  @include gl-rounded-top-left-base;
76
63
  @include gl-rounded-bottom-left-base;
77
- background-color: var(--path-bg-color);
78
- padding-right: $path-button-right-padding;
64
+ @apply gl-border-none;
65
+ background-color: var(--gl-action-neutral-background-color-default);
66
+ color: var(--gl-action-neutral-foreground-color-default);
79
67
  margin-right: $path-chevron-right-margin;
68
+ padding-right: $path-button-right-padding;
69
+ position: relative;
80
70
 
81
71
  &::before,
82
72
  &::after {
@@ -85,47 +75,69 @@ $path-chevron-right-margin: px-to-rem(14px);
85
75
 
86
76
  // Pseudo focus element
87
77
  &::before {
78
+ background-color: var(--gl-color-alpha-0);
88
79
  display: none;
89
80
  z-index: 2;
90
81
  right: calc(-0.75rem + 1px);
91
- box-shadow: 0 0 0 1px $white, 0.5px -0.5px 0 2.5px $blue-400;
82
+ box-shadow: 0 0 0 1px var(--gl-focus-ring-inner-color), 0.5px -0.5px 0 2.5px var(--gl-focus-ring-outer-color);
92
83
  clip-path: polygon(0% 0%, 0% -30%, 160% 0%, 75% 130%, 100% 100%);
93
84
  transform: rotate(45deg) skew(14deg, 14deg) scale(0.99);
94
85
  }
95
86
 
96
- &[disabled] {
97
- color: $gl-text-color-disabled;
98
- @include gl-cursor-not-allowed;
87
+ &:hover {
88
+ background-color: var(--gl-action-neutral-background-color-hover);
89
+ color: var(--gl-action-neutral-foreground-color-hover);
90
+ }
91
+
92
+ &:focus {
93
+ background-color: var(--gl-action-neutral-background-color-focus);
94
+ color: var(--gl-action-neutral-foreground-color-focus);
99
95
  }
100
96
 
101
- &:not([disabled]):hover {
102
- @include gl-path-active-item-color($gray-100);
103
- color: $gl-text-color;
97
+ &:active {
98
+ background-color: var(--gl-action-neutral-background-color-active);
99
+ color: var(--gl-action-neutral-foreground-color-active);
104
100
  }
105
101
 
106
102
  &:active,
107
103
  &:focus,
108
104
  &:focus:active {
109
- // Custom focus
105
+ // Custom focus to account for path shape
106
+ box-shadow: 5px -3px 0 -2px var(--gl-focus-ring-inner-color), 5px 3px 0 -2px var(--gl-focus-ring-inner-color), 0 0 0 1px var(--gl-focus-ring-inner-color),
107
+ 0 0 0 3px var(--gl-focus-ring-outer-color);
108
+ outline: none;
110
109
  border-top-right-radius: 1px;
111
110
  border-bottom-right-radius: 1px;
112
- box-shadow: 5px -3px 0 -2px $white, 5px 3px 0 -2px $white, 0 0 0 1px $white,
113
- 0 0 0 3px $blue-400;
114
- outline: none;
115
111
 
116
112
  &::before {
117
113
  display: block;
118
114
  }
119
115
  }
116
+
117
+ &.gl-path-active-item {
118
+ background-color: var(--gl-action-selected-background-color-default);
119
+ color: var(--gl-action-selected-foreground-color-default);
120
+ }
121
+
122
+ &:disabled {
123
+ @include gl-cursor-not-allowed;
124
+ background-color: var(--gl-color-alpha-0);
125
+ box-shadow: none;
126
+ color: var(--gl-action-disabled-foreground-color);
127
+
128
+ &::before {
129
+ box-shadow: none;
130
+ }
131
+ }
120
132
  }
121
133
 
122
134
  .gl-path-fade {
123
135
  @include gl-w-8;
124
136
  @include gl-h-full;
137
+ @include gl-z-index-2;
125
138
  bottom: 0;
139
+ color: var(--gl-text-color-subtle);
126
140
  position: absolute;
127
- @include gl-z-index-2;
128
- @include gl-text-gray-500;
129
141
 
130
142
  &-left {
131
143
  left: 0;
@@ -141,41 +153,11 @@ $path-chevron-right-margin: px-to-rem(14px);
141
153
 
142
154
  .gl-clear-icon-button {
143
155
  @include gl-p-0;
144
- @include gl-text-gray-400;
145
156
  @include gl-h-full;
157
+ color: var(--gl-icon-color-subtle);
146
158
 
147
159
  .gl-icon {
148
160
  @include gl-vertical-align-middle;
149
161
  }
150
162
  }
151
-
152
- .gl-path-active-item-indigo,
153
- .gl-path-active-item-indigo:hover {
154
- @include gl-path-active-item-color($theme-indigo-700);
155
- }
156
-
157
- .gl-path-active-item-blue,
158
- .gl-path-active-item-blue:hover {
159
- @include gl-path-active-item-color($theme-blue-500);
160
- }
161
-
162
- .gl-path-active-item-light-blue,
163
- .gl-path-active-item-light-blue:hover {
164
- @include gl-path-active-item-color($theme-light-blue-500);
165
- }
166
-
167
- .gl-path-active-item-red,
168
- .gl-path-active-item-red:hover {
169
- @include gl-path-active-item-color($theme-red-500);
170
- }
171
-
172
- .gl-path-active-item-light-red,
173
- .gl-path-active-item-light-red:hover {
174
- @include gl-path-active-item-color($theme-light-red-500);
175
- }
176
-
177
- .gl-path-active-item-green,
178
- .gl-path-active-item-green:hover {
179
- @include gl-path-active-item-color($theme-green-500);
180
- }
181
163
  }
@@ -4,12 +4,11 @@ import iconSpriteInfo from '@gitlab/svgs/dist/icons.json';
4
4
  import uniqueId from 'lodash/uniqueId';
5
5
  import findLast from 'lodash/findLast';
6
6
  import { GlResizeObserverDirective } from '../../../directives/resize_observer/resize_observer';
7
- import { glThemes } from '../../../utils/constants';
8
7
  import GlIcon from '../icon/icon.vue';
9
8
 
10
9
  const BOUNDARY_WIDTH = 40;
11
10
  const PATH_ITEM_CLASS = 'gl-path-button';
12
- const PATH_ACTIVE_ITEM_PREFIX = 'gl-path-active-item';
11
+ const PATH_ACTIVE_ITEM_CLASS = 'gl-path-active-item';
13
12
 
14
13
  export default {
15
14
  name: 'GlPath',
@@ -36,15 +35,6 @@ export default {
36
35
  required: false,
37
36
  default: () => [],
38
37
  },
39
- /**
40
- * The color theme to be used.
41
- */
42
- theme: {
43
- type: String,
44
- required: false,
45
- default: 'indigo',
46
- validator: (theme) => glThemes.includes(theme),
47
- },
48
38
  /**
49
39
  * The items' background color.
50
40
  */
@@ -62,9 +52,6 @@ export default {
62
52
  };
63
53
  },
64
54
  computed: {
65
- activeClass() {
66
- return `${PATH_ACTIVE_ITEM_PREFIX}-${this.theme}`;
67
- },
68
55
  entireListVisible() {
69
56
  return this.width >= this.getScrollWidth();
70
57
  },
@@ -97,7 +84,7 @@ export default {
97
84
  methods: {
98
85
  pathItemClass(index) {
99
86
  return index === this.selectedIndex
100
- ? `${PATH_ITEM_CLASS} ${this.activeClass}`
87
+ ? `${PATH_ITEM_CLASS} ${PATH_ACTIVE_ITEM_CLASS}`
101
88
  : PATH_ITEM_CLASS;
102
89
  },
103
90
  onItemClicked(selectedIndex) {
@@ -32,6 +32,92 @@
32
32
  }
33
33
  }
34
34
  },
35
+ "selected": {
36
+ "foreground": {
37
+ "color": {
38
+ "default": {
39
+ "$value": {
40
+ "default": "{color.neutral.0}",
41
+ "dark": "{color.neutral.950}"
42
+ },
43
+ "$type": "color",
44
+ "$description": "Used for the foreground of a selected action in the default state."
45
+ },
46
+ "hover": {
47
+ "$value": "{action.selected.foreground.color.default}",
48
+ "$type": "color",
49
+ "$description": "Used for the foreground of a selected action in the hover state."
50
+ },
51
+ "focus": {
52
+ "$value": "{action.selected.foreground.color.hover}",
53
+ "$type": "color",
54
+ "$description": "Used for the foreground of a selected action in the focus state."
55
+ },
56
+ "active": {
57
+ "$value": "{action.selected.foreground.color.focus}",
58
+ "$type": "color",
59
+ "$description": "Used for the foreground of a selected action in the active state."
60
+ }
61
+ }
62
+ },
63
+ "background": {
64
+ "color": {
65
+ "default": {
66
+ "$value": {
67
+ "default": "{color.blue.500}",
68
+ "dark": "{color.blue.300}"
69
+ },
70
+ "$type": "color",
71
+ "$description": "Used for the background of a selected action in the default state."
72
+ },
73
+ "hover": {
74
+ "$value": {
75
+ "default": "{color.blue.700}",
76
+ "dark": "{color.blue.200}"
77
+ },
78
+ "$type": "color",
79
+ "$description": "Used for the background of a selected action in the hover state."
80
+ },
81
+ "focus": {
82
+ "$value": "{action.selected.background.color.hover}",
83
+ "$type": "color",
84
+ "$description": "Used for the background of a selected action in the focus state."
85
+ },
86
+ "active": {
87
+ "$value": {
88
+ "default": "{color.blue.800}",
89
+ "dark": "{color.blue.100}"
90
+ },
91
+ "$type": "color",
92
+ "$description": "Used for the background of a selected action in the active state."
93
+ }
94
+ }
95
+ },
96
+ "border": {
97
+ "color": {
98
+ "default": {
99
+ "$value": "{action.selected.background.color.default}",
100
+ "$type": "color",
101
+ "$description": "Used for the border of a selected action in the default state."
102
+ },
103
+ "hover": {
104
+ "$value": "{action.selected.background.color.hover}",
105
+ "$type": "color",
106
+ "$description": "Used for the border of a selected action in the hover state."
107
+ },
108
+ "focus": {
109
+ "$value": "{action.selected.background.color.focus}",
110
+ "$type": "color",
111
+ "$description": "Used for the border of a selected action in the focus state."
112
+ },
113
+ "active": {
114
+ "$value": "{action.selected.background.color.active}",
115
+ "$type": "color",
116
+ "$description": "Used for the border of a selected action in the active state."
117
+ }
118
+ }
119
+ }
120
+ },
35
121
  "neutral": {
36
122
  "foreground": {
37
123
  "color": {
@@ -708,6 +708,10 @@
708
708
  --gl-action-neutral-border-color-default: var(--gl-color-alpha-0); /* Used for the border of a neutral action in the default state. */
709
709
  --gl-action-neutral-background-color-focus: var(--gl-action-neutral-background-color-hover); /* Used for the background of a neutral action in the focus state. */
710
710
  --gl-action-neutral-foreground-color-default: var(--gl-color-neutral-900); /* Used for the foreground of a neutral action in the default state. */
711
+ --gl-action-selected-background-color-active: var(--gl-color-blue-800); /* Used for the background of a selected action in the active state. */
712
+ --gl-action-selected-background-color-hover: var(--gl-color-blue-700); /* Used for the background of a selected action in the hover state. */
713
+ --gl-action-selected-background-color-default: var(--gl-color-blue-500); /* Used for the background of a selected action in the default state. */
714
+ --gl-action-selected-foreground-color-default: var(--gl-color-neutral-0); /* Used for the foreground of a selected action in the default state. */
711
715
  --gl-action-disabled-border-color: var(--gl-color-neutral-100); /* Used for the border of a disabled action. */
712
716
  --gl-action-disabled-background-color: var(--gl-color-neutral-50); /* Used for the background of a disabled action. */
713
717
  --gl-action-disabled-foreground-color: var(--gl-color-neutral-400); /* Used for the foreground of a disabled action. */
@@ -810,6 +814,11 @@
810
814
  --gl-action-neutral-foreground-color-active: var(--gl-action-neutral-foreground-color-default); /* Used for the foreground of a neutral action in the active state. */
811
815
  --gl-action-neutral-foreground-color-focus: var(--gl-action-neutral-foreground-color-default); /* Used for the foreground of a neutral action in the focus state. */
812
816
  --gl-action-neutral-foreground-color-hover: var(--gl-action-neutral-foreground-color-default); /* Used for the foreground of a neutral action in the hover state. */
817
+ --gl-action-selected-border-color-active: var(--gl-action-selected-background-color-active); /* Used for the border of a selected action in the active state. */
818
+ --gl-action-selected-border-color-hover: var(--gl-action-selected-background-color-hover); /* Used for the border of a selected action in the hover state. */
819
+ --gl-action-selected-border-color-default: var(--gl-action-selected-background-color-default); /* Used for the border of a selected action in the default state. */
820
+ --gl-action-selected-background-color-focus: var(--gl-action-selected-background-color-hover); /* Used for the background of a selected action in the focus state. */
821
+ --gl-action-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-default); /* Used for the foreground of a selected action in the hover state. */
813
822
  --gl-button-selected-background-color-focus: var(--gl-button-default-primary-background-color-focus); /* Used for the background of a selected button in the focus state. */
814
823
  --gl-button-selected-foreground-color-active: var(--gl-button-default-primary-foreground-color-active); /* Used for the foreground of a selected button in the active state. */
815
824
  --gl-button-selected-foreground-color-focus: var(--gl-button-default-primary-foreground-color-focus); /* Used for the foreground of a selected button in the focus state. */
@@ -846,10 +855,13 @@
846
855
  --gl-action-strong-neutral-foreground-color-focus: var(--gl-action-strong-neutral-foreground-color-hover); /* Used for the foreground of a strong neutral action in the focus state. */
847
856
  --gl-action-strong-confirm-border-color-focus: var(--gl-action-strong-confirm-border-color-hover); /* Used for the border of a strong confirm action in the focus state. */
848
857
  --gl-action-strong-confirm-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-hover); /* Used for the foreground of a strong confirm action in the focus state. */
858
+ --gl-action-selected-border-color-focus: var(--gl-action-selected-background-color-focus); /* Used for the border of a selected action in the focus state. */
859
+ --gl-action-selected-foreground-color-focus: var(--gl-action-selected-foreground-color-hover); /* Used for the foreground of a selected action in the focus state. */
849
860
  --gl-button-confirm-primary-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-focus); /* Used for the foreground of a confirm (positive) primary button in the focus state. */
850
861
  --gl-action-strong-neutral-border-color-active: var(--gl-action-strong-neutral-border-color-focus); /* Used for the border of a strong neutral action in the active state. */
851
862
  --gl-action-strong-neutral-foreground-color-active: var(--gl-action-strong-neutral-foreground-color-focus); /* Used for the foreground of a strong neutral action in the active state. */
852
863
  --gl-action-strong-confirm-border-color-active: var(--gl-action-strong-confirm-border-color-focus); /* Used for the border of a strong confirm action in the active state. */
853
864
  --gl-action-strong-confirm-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-focus); /* Used for the foreground of a strong confirm action in the active state. */
865
+ --gl-action-selected-foreground-color-active: var(--gl-action-selected-foreground-color-focus); /* Used for the foreground of a selected action in the active state. */
854
866
  --gl-button-confirm-primary-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-active); /* Used for the foreground of a confirm (positive) primary button in the active state. */
855
867
  }
@@ -708,6 +708,10 @@
708
708
  --gl-action-neutral-border-color-default: var(--gl-color-alpha-0); /* Used for the border of a neutral action in the default state. */
709
709
  --gl-action-neutral-background-color-focus: var(--gl-action-neutral-background-color-hover); /* Used for the background of a neutral action in the focus state. */
710
710
  --gl-action-neutral-foreground-color-default: var(--gl-color-neutral-50); /* Used for the foreground of a neutral action in the default state. */
711
+ --gl-action-selected-background-color-active: var(--gl-color-blue-100); /* Used for the background of a selected action in the active state. */
712
+ --gl-action-selected-background-color-hover: var(--gl-color-blue-200); /* Used for the background of a selected action in the hover state. */
713
+ --gl-action-selected-background-color-default: var(--gl-color-blue-300); /* Used for the background of a selected action in the default state. */
714
+ --gl-action-selected-foreground-color-default: var(--gl-color-neutral-950); /* Used for the foreground of a selected action in the default state. */
711
715
  --gl-action-disabled-border-color: var(--gl-color-neutral-800); /* Used for the border of a disabled action. */
712
716
  --gl-action-disabled-background-color: var(--gl-color-neutral-900); /* Used for the background of a disabled action. */
713
717
  --gl-action-disabled-foreground-color: var(--gl-color-neutral-500); /* Used for the foreground of a disabled action. */
@@ -810,6 +814,11 @@
810
814
  --gl-action-neutral-foreground-color-active: var(--gl-action-neutral-foreground-color-default); /* Used for the foreground of a neutral action in the active state. */
811
815
  --gl-action-neutral-foreground-color-focus: var(--gl-action-neutral-foreground-color-default); /* Used for the foreground of a neutral action in the focus state. */
812
816
  --gl-action-neutral-foreground-color-hover: var(--gl-action-neutral-foreground-color-default); /* Used for the foreground of a neutral action in the hover state. */
817
+ --gl-action-selected-border-color-active: var(--gl-action-selected-background-color-active); /* Used for the border of a selected action in the active state. */
818
+ --gl-action-selected-border-color-hover: var(--gl-action-selected-background-color-hover); /* Used for the border of a selected action in the hover state. */
819
+ --gl-action-selected-border-color-default: var(--gl-action-selected-background-color-default); /* Used for the border of a selected action in the default state. */
820
+ --gl-action-selected-background-color-focus: var(--gl-action-selected-background-color-hover); /* Used for the background of a selected action in the focus state. */
821
+ --gl-action-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-default); /* Used for the foreground of a selected action in the hover state. */
813
822
  --gl-button-selected-background-color-focus: var(--gl-button-default-primary-background-color-focus); /* Used for the background of a selected button in the focus state. */
814
823
  --gl-button-selected-foreground-color-active: var(--gl-button-default-primary-foreground-color-active); /* Used for the foreground of a selected button in the active state. */
815
824
  --gl-button-selected-foreground-color-focus: var(--gl-button-default-primary-foreground-color-focus); /* Used for the foreground of a selected button in the focus state. */
@@ -846,10 +855,13 @@
846
855
  --gl-action-strong-neutral-foreground-color-focus: var(--gl-action-strong-neutral-foreground-color-hover); /* Used for the foreground of a strong neutral action in the focus state. */
847
856
  --gl-action-strong-confirm-border-color-focus: var(--gl-action-strong-confirm-border-color-hover); /* Used for the border of a strong confirm action in the focus state. */
848
857
  --gl-action-strong-confirm-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-hover); /* Used for the foreground of a strong confirm action in the focus state. */
858
+ --gl-action-selected-border-color-focus: var(--gl-action-selected-background-color-focus); /* Used for the border of a selected action in the focus state. */
859
+ --gl-action-selected-foreground-color-focus: var(--gl-action-selected-foreground-color-hover); /* Used for the foreground of a selected action in the focus state. */
849
860
  --gl-button-confirm-primary-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-focus); /* Used for the foreground of a confirm (positive) primary button in the focus state. */
850
861
  --gl-action-strong-neutral-border-color-active: var(--gl-action-strong-neutral-border-color-focus); /* Used for the border of a strong neutral action in the active state. */
851
862
  --gl-action-strong-neutral-foreground-color-active: var(--gl-action-strong-neutral-foreground-color-focus); /* Used for the foreground of a strong neutral action in the active state. */
852
863
  --gl-action-strong-confirm-border-color-active: var(--gl-action-strong-confirm-border-color-focus); /* Used for the border of a strong confirm action in the active state. */
853
864
  --gl-action-strong-confirm-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-focus); /* Used for the foreground of a strong confirm action in the active state. */
865
+ --gl-action-selected-foreground-color-active: var(--gl-action-selected-foreground-color-focus); /* Used for the foreground of a selected action in the active state. */
854
866
  --gl-button-confirm-primary-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-active); /* Used for the foreground of a confirm (positive) primary button in the active state. */
855
867
  }
@@ -6,6 +6,18 @@
6
6
  export const GL_ACTION_DISABLED_FOREGROUND_COLOR = '#737278'; // Used for the foreground of a disabled action.
7
7
  export const GL_ACTION_DISABLED_BACKGROUND_COLOR = '#28272d'; // Used for the background of a disabled action.
8
8
  export const GL_ACTION_DISABLED_BORDER_COLOR = '#3a383f'; // Used for the border of a disabled action.
9
+ export const GL_ACTION_SELECTED_FOREGROUND_COLOR_DEFAULT = '#18171d'; // Used for the foreground of a selected action in the default state.
10
+ export const GL_ACTION_SELECTED_FOREGROUND_COLOR_HOVER = '#18171d'; // Used for the foreground of a selected action in the hover state.
11
+ export const GL_ACTION_SELECTED_FOREGROUND_COLOR_FOCUS = '#18171d'; // Used for the foreground of a selected action in the focus state.
12
+ export const GL_ACTION_SELECTED_FOREGROUND_COLOR_ACTIVE = '#18171d'; // Used for the foreground of a selected action in the active state.
13
+ export const GL_ACTION_SELECTED_BACKGROUND_COLOR_DEFAULT = '#63a6e9'; // Used for the background of a selected action in the default state.
14
+ export const GL_ACTION_SELECTED_BACKGROUND_COLOR_HOVER = '#9dc7f1'; // Used for the background of a selected action in the hover state.
15
+ export const GL_ACTION_SELECTED_BACKGROUND_COLOR_FOCUS = '#9dc7f1'; // Used for the background of a selected action in the focus state.
16
+ export const GL_ACTION_SELECTED_BACKGROUND_COLOR_ACTIVE = '#cbe2f9'; // Used for the background of a selected action in the active state.
17
+ export const GL_ACTION_SELECTED_BORDER_COLOR_DEFAULT = '#63a6e9'; // Used for the border of a selected action in the default state.
18
+ export const GL_ACTION_SELECTED_BORDER_COLOR_HOVER = '#9dc7f1'; // Used for the border of a selected action in the hover state.
19
+ export const GL_ACTION_SELECTED_BORDER_COLOR_FOCUS = '#9dc7f1'; // Used for the border of a selected action in the focus state.
20
+ export const GL_ACTION_SELECTED_BORDER_COLOR_ACTIVE = '#cbe2f9'; // Used for the border of a selected action in the active state.
9
21
  export const GL_ACTION_NEUTRAL_FOREGROUND_COLOR_DEFAULT = '#ececef'; // Used for the foreground of a neutral action in the default state.
10
22
  export const GL_ACTION_NEUTRAL_FOREGROUND_COLOR_HOVER = '#ececef'; // Used for the foreground of a neutral action in the hover state.
11
23
  export const GL_ACTION_NEUTRAL_FOREGROUND_COLOR_FOCUS = '#ececef'; // Used for the foreground of a neutral action in the focus state.
@@ -6,6 +6,18 @@
6
6
  export const GL_ACTION_DISABLED_FOREGROUND_COLOR = '#89888d'; // Used for the foreground of a disabled action.
7
7
  export const GL_ACTION_DISABLED_BACKGROUND_COLOR = '#ececef'; // Used for the background of a disabled action.
8
8
  export const GL_ACTION_DISABLED_BORDER_COLOR = '#dcdcde'; // Used for the border of a disabled action.
9
+ export const GL_ACTION_SELECTED_FOREGROUND_COLOR_DEFAULT = '#fff'; // Used for the foreground of a selected action in the default state.
10
+ export const GL_ACTION_SELECTED_FOREGROUND_COLOR_HOVER = '#fff'; // Used for the foreground of a selected action in the hover state.
11
+ export const GL_ACTION_SELECTED_FOREGROUND_COLOR_FOCUS = '#fff'; // Used for the foreground of a selected action in the focus state.
12
+ export const GL_ACTION_SELECTED_FOREGROUND_COLOR_ACTIVE = '#fff'; // Used for the foreground of a selected action in the active state.
13
+ export const GL_ACTION_SELECTED_BACKGROUND_COLOR_DEFAULT = '#1f75cb'; // Used for the background of a selected action in the default state.
14
+ export const GL_ACTION_SELECTED_BACKGROUND_COLOR_HOVER = '#0b5cad'; // Used for the background of a selected action in the hover state.
15
+ export const GL_ACTION_SELECTED_BACKGROUND_COLOR_FOCUS = '#0b5cad'; // Used for the background of a selected action in the focus state.
16
+ export const GL_ACTION_SELECTED_BACKGROUND_COLOR_ACTIVE = '#064787'; // Used for the background of a selected action in the active state.
17
+ export const GL_ACTION_SELECTED_BORDER_COLOR_DEFAULT = '#1f75cb'; // Used for the border of a selected action in the default state.
18
+ export const GL_ACTION_SELECTED_BORDER_COLOR_HOVER = '#0b5cad'; // Used for the border of a selected action in the hover state.
19
+ export const GL_ACTION_SELECTED_BORDER_COLOR_FOCUS = '#0b5cad'; // Used for the border of a selected action in the focus state.
20
+ export const GL_ACTION_SELECTED_BORDER_COLOR_ACTIVE = '#064787'; // Used for the border of a selected action in the active state.
9
21
  export const GL_ACTION_NEUTRAL_FOREGROUND_COLOR_DEFAULT = '#28272d'; // Used for the foreground of a neutral action in the default state.
10
22
  export const GL_ACTION_NEUTRAL_FOREGROUND_COLOR_HOVER = '#28272d'; // Used for the foreground of a neutral action in the hover state.
11
23
  export const GL_ACTION_NEUTRAL_FOREGROUND_COLOR_FOCUS = '#28272d'; // Used for the foreground of a neutral action in the focus state.