@gitlab/ui 91.14.0 → 92.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.js +83 -15
  3. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items.js +8 -2
  4. package/dist/components/experimental/duo/chat/components/duo_chat_context/utils.js +12 -1
  5. package/dist/index.css +2 -2
  6. package/dist/index.css.map +1 -1
  7. package/dist/tokens/build/js/tokens.dark.js +3 -4
  8. package/dist/tokens/build/js/tokens.js +2 -3
  9. package/dist/tokens/css/tokens.css +1 -2
  10. package/dist/tokens/css/tokens.dark.css +2 -3
  11. package/dist/tokens/js/tokens.dark.js +2 -3
  12. package/dist/tokens/js/tokens.js +1 -2
  13. package/dist/tokens/json/tokens.dark.json +4 -36
  14. package/dist/tokens/json/tokens.json +3 -35
  15. package/dist/tokens/scss/_tokens.dark.scss +2 -3
  16. package/dist/tokens/scss/_tokens.scss +1 -2
  17. package/dist/tokens/scss/_tokens_custom_properties.scss +0 -1
  18. package/package.json +1 -1
  19. package/src/components/base/modal/modal.scss +1 -1
  20. package/src/components/base/popover/popover.scss +10 -10
  21. package/src/components/base/toast/toast.scss +2 -1
  22. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.vue +86 -13
  23. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items.vue +8 -1
  24. package/src/components/experimental/duo/chat/components/duo_chat_context/utils.js +11 -0
  25. package/src/scss/variables.scss +0 -1
  26. package/src/tokens/build/css/tokens.css +1 -2
  27. package/src/tokens/build/css/tokens.dark.css +2 -3
  28. package/src/tokens/build/js/tokens.dark.js +2 -3
  29. package/src/tokens/build/js/tokens.js +1 -2
  30. package/src/tokens/build/json/tokens.dark.json +4 -36
  31. package/src/tokens/build/json/tokens.json +3 -35
  32. package/src/tokens/build/scss/_tokens.dark.scss +2 -3
  33. package/src/tokens/build/scss/_tokens.scss +1 -2
  34. package/src/tokens/build/scss/_tokens_custom_properties.scss +0 -1
  35. package/src/tokens/feedback.tokens.json +2 -8
  36. package/src/tokens/contextual/popover.tokens.json +0 -14
@@ -10,7 +10,7 @@ $gl-popover-max-width: $grid-size * 35;
10
10
 
11
11
  &,
12
12
  .popover-header {
13
- background-color: var(--gl-popover-background-color);
13
+ background-color: var(--gl-background-color-overlap);
14
14
  }
15
15
 
16
16
  .popover-body {
@@ -23,52 +23,52 @@ $gl-popover-max-width: $grid-size * 35;
23
23
  */
24
24
  > .arrow::before {
25
25
  bottom: 1px;
26
- border-top-color: var(--gl-popover-background-color);
26
+ border-top-color: var(--gl-background-color-overlap);
27
27
  }
28
28
 
29
29
  > .arrow::after {
30
30
  bottom: 2px;
31
- border-top-color: var(--gl-popover-background-color);
31
+ border-top-color: var(--gl-background-color-overlap);
32
32
  }
33
33
  }
34
34
 
35
35
  &.bs-popover-bottom {
36
36
  > .arrow::before {
37
37
  top: 1px;
38
- border-bottom-color: var(--gl-popover-background-color);
38
+ border-bottom-color: var(--gl-background-color-overlap);
39
39
  }
40
40
 
41
41
  > .arrow::after {
42
42
  top: 2px;
43
- border-bottom-color: var(--gl-popover-background-color);
43
+ border-bottom-color: var(--gl-background-color-overlap);
44
44
  }
45
45
 
46
46
  > .popover-header::before {
47
- border-color: var(--gl-popover-background-color);
47
+ border-color: var(--gl-background-color-overlap);
48
48
  }
49
49
  }
50
50
 
51
51
  &.bs-popover-right {
52
52
  > .arrow::before {
53
53
  left: 1px;
54
- border-right-color: var(--gl-popover-background-color);
54
+ border-right-color: var(--gl-background-color-overlap);
55
55
  }
56
56
 
57
57
  > .arrow::after {
58
58
  left: 2px;
59
- border-right-color: var(--gl-popover-background-color);
59
+ border-right-color: var(--gl-background-color-overlap);
60
60
  }
61
61
  }
62
62
 
63
63
  &.bs-popover-left {
64
64
  > .arrow::before {
65
65
  right: 1px;
66
- border-left-color: var(--gl-popover-background-color);
66
+ border-left-color: var(--gl-background-color-overlap);
67
67
  }
68
68
 
69
69
  > .arrow::after {
70
70
  right: 2px;
71
- border-left-color: var(--gl-popover-background-color);
71
+ border-left-color: var(--gl-background-color-overlap);
72
72
  }
73
73
  }
74
74
 
@@ -19,7 +19,6 @@
19
19
  }
20
20
 
21
21
  .gl-toast {
22
- color: color-yiq($toast-background-color);
23
22
  @apply gl-rounded-base;
24
23
  @include gl-font-base;
25
24
  @include gl-py-5;
@@ -28,6 +27,8 @@
28
27
  @include gl-display-flex;
29
28
  @include gl-align-items-center;
30
29
  @include gl-justify-content-space-between;
30
+ background-color: var(--gl-feedback-strong-background-color);
31
+ color: var(--gl-feedback-strong-text-color);
31
32
  }
32
33
 
33
34
  .toast-body {
@@ -2,8 +2,8 @@
2
2
  import debounce from 'lodash/debounce';
3
3
  import { translate } from '../../../../../../../utils/i18n';
4
4
  import GlCard from '../../../../../../base/card/card.vue';
5
- import { categoriesValidator, contextItemsValidator } from '../utils';
6
5
  import GlDuoChatContextItemSelections from '../duo_chat_context_item_selections/duo_chat_context_item_selections.vue';
6
+ import { categoriesValidator, contextItemsValidator, wrapIndex } from '../utils';
7
7
  import GlDuoChatContextItemMenuCategoryItems from './duo_chat_context_item_menu_category_items.vue';
8
8
  import GlDuoChatContextItemMenuSearchItems from './duo_chat_context_item_menu_search_items.vue';
9
9
 
@@ -67,15 +67,18 @@ export default {
67
67
  },
68
68
  data() {
69
69
  return {
70
- activeIndex: 0,
71
- searchQuery: '',
72
70
  selectedCategory: null,
71
+ searchQuery: '',
72
+ activeIndex: 0,
73
73
  };
74
74
  },
75
75
  computed: {
76
76
  showCategorySelection() {
77
77
  return this.open && !this.selectedCategory;
78
78
  },
79
+ allResultsAreDisabled() {
80
+ return this.results.every((result) => !result.isEnabled);
81
+ },
79
82
  },
80
83
  watch: {
81
84
  open(isOpen) {
@@ -86,13 +89,22 @@ export default {
86
89
  searchQuery(query) {
87
90
  this.debouncedSearch(query);
88
91
  },
92
+ results(newResults) {
93
+ const firstEnabledIndex = newResults.findIndex((result) => result.isEnabled);
94
+ this.activeIndex = firstEnabledIndex >= 0 ? firstEnabledIndex : 0;
95
+ },
89
96
  },
90
97
  methods: {
91
98
  selectCategory(category) {
92
- this.activeIndex = 0;
93
99
  this.searchQuery = '';
94
100
  this.selectedCategory = category;
95
101
 
102
+ this.$emit('search', {
103
+ category: category.value,
104
+ query: '',
105
+ });
106
+ },
107
+ debouncedSearch: debounce(function search(query) {
96
108
  /**
97
109
  * Emitted when a search should be performed.
98
110
  * @property {Object} filter
@@ -100,10 +112,10 @@ export default {
100
112
  * @property {string} filter.query - The search query
101
113
  */
102
114
  this.$emit('search', {
103
- category: category.value,
104
- query: '',
115
+ category: this.selectedCategory.value,
116
+ query,
105
117
  });
106
- },
118
+ }, SEARCH_DEBOUNCE_MS),
107
119
  selectItem(item) {
108
120
  if (!item.isEnabled) {
109
121
  return;
@@ -131,16 +143,76 @@ export default {
131
143
  */
132
144
  this.$emit('remove', item);
133
145
  },
134
- debouncedSearch: debounce(function search(query) {
135
- this.$emit('search', {
136
- category: this.selectedCategory.value,
137
- query,
138
- });
139
- }, SEARCH_DEBOUNCE_MS),
140
146
  resetSelection() {
141
147
  this.selectedCategory = null;
148
+ this.searchQuery = '';
142
149
  this.activeIndex = 0;
143
150
  },
151
+ async scrollActiveItemIntoView() {
152
+ await this.$nextTick();
153
+
154
+ const activeItem = document.getElementById(`dropdown-item-${this.activeIndex}`);
155
+ if (activeItem) {
156
+ activeItem.scrollIntoView({ block: 'nearest', inline: 'start' });
157
+ }
158
+ },
159
+ handleKeyUp(e) {
160
+ switch (e.key) {
161
+ case 'ArrowDown':
162
+ case 'ArrowUp':
163
+ e.preventDefault();
164
+ this.moveActiveIndex(e.key === 'ArrowDown' ? 1 : -1);
165
+ this.scrollActiveItemIntoView();
166
+ break;
167
+ case 'Enter':
168
+ e.preventDefault();
169
+ if (this.showCategorySelection) {
170
+ this.selectCategory(this.categories[this.activeIndex]);
171
+ return;
172
+ }
173
+ if (!this.results.length) {
174
+ return;
175
+ }
176
+ this.selectItem(this.results[this.activeIndex]);
177
+ break;
178
+ case 'Escape':
179
+ e.preventDefault();
180
+ if (this.showCategorySelection) {
181
+ this.$emit('close');
182
+ return;
183
+ }
184
+
185
+ this.selectedCategory = null;
186
+ break;
187
+ default:
188
+ break;
189
+ }
190
+ },
191
+ moveActiveIndex(step) {
192
+ if (this.showCategorySelection) {
193
+ // Categories cannot be disabled, so just loop to the next/prev one
194
+ this.activeIndex = wrapIndex(this.activeIndex, step, this.categories.length);
195
+ return;
196
+ }
197
+
198
+ // Return early if there are no results or all results are disabled
199
+ if (!this.results.length || this.allResultsAreDisabled) {
200
+ return;
201
+ }
202
+
203
+ // contextItems CAN be disabled, so loop to next/prev but ensure we don't land on a disabled one
204
+ let newIndex = this.activeIndex;
205
+ do {
206
+ newIndex = wrapIndex(newIndex, step, this.results.length);
207
+
208
+ if (newIndex === this.activeIndex) {
209
+ // If we've looped through all items and found no enabled ones, keep the current index
210
+ return;
211
+ }
212
+ } while (!this.results[newIndex].isEnabled);
213
+
214
+ this.activeIndex = newIndex;
215
+ },
144
216
  },
145
217
  i18n: {
146
218
  selectedContextItemsTitle: translate(
@@ -184,6 +256,7 @@ export default {
184
256
  :error="error"
185
257
  :results="results"
186
258
  @select="selectItem"
259
+ @keyup="handleKeyUp"
187
260
  @active-index-change="activeIndex = $event"
188
261
  />
189
262
  </gl-card>
@@ -83,11 +83,17 @@ export default {
83
83
  this.$emit('select', contextItem);
84
84
  this.userInitiatedSearch = false;
85
85
  },
86
+ handleKeyUp(e) {
87
+ this.$emit('keyup', e);
88
+ },
86
89
  setActiveIndex(index) {
87
90
  if (this.results[index]?.isEnabled) {
88
91
  this.$emit('active-index-change', index);
89
92
  }
90
93
  },
94
+ isActiveItem(contextItem, index) {
95
+ return index === this.activeIndex && contextItem.isEnabled;
96
+ },
91
97
  },
92
98
  i18n: {
93
99
  emptyStateMessage: translate('GlDuoChatContextItemMenu.emptyStateMessage', 'No results found'),
@@ -120,7 +126,7 @@ export default {
120
126
  :id="`dropdown-item-${index}`"
121
127
  :key="contextItem.id"
122
128
  :class="{
123
- 'active-command': index === activeIndex,
129
+ 'active-command': isActiveItem(contextItem, index),
124
130
  'gl-cursor-not-allowed [&>button]:focus-within:!gl-shadow-none': !contextItem.isEnabled,
125
131
  }"
126
132
  :tabindex="!contextItem.isEnabled ? -1 : undefined"
@@ -146,6 +152,7 @@ export default {
146
152
  autofocus
147
153
  data-testid="context-menu-search-input"
148
154
  @input="$emit('update:searchQuery', $event)"
155
+ @keyup="handleKeyUp"
149
156
  />
150
157
  </div>
151
158
  </template>
@@ -39,3 +39,14 @@ export function formatMergeRequestId(iid) {
39
39
 
40
40
  return `!${iid}`;
41
41
  }
42
+
43
+ /**
44
+ * Calculates a new index within a range. If the new index would fall out of bounds, wraps to the start/end of the range.
45
+ * @param {number} currentIndex - The starting index.
46
+ * @param {number} step - The number of steps to move (positive or negative).
47
+ * @param {number} totalLength - The total number of items in the range.
48
+ * @returns {number} The new index.
49
+ */
50
+ export function wrapIndex(currentIndex, step, totalLength) {
51
+ return (currentIndex + step + totalLength) % totalLength;
52
+ }
@@ -232,7 +232,6 @@ $focus-ring-outline: $outline-width solid var(--gl-focus-ring-outer-color);
232
232
  // Toasts
233
233
  $toast-max-width: px-to-rem(586px);
234
234
  $toast-padding-right: px-to-rem(42px);
235
- $toast-background-color: #303030;
236
235
 
237
236
  // Chart tooltip
238
237
  $chart-tooltip-max-width: px-to-rem(512px);
@@ -478,7 +478,7 @@
478
478
  --gl-feedback-strong-link-color: var(--gl-color-blue-300); /* Used for a link on a strong feedback background. */
479
479
  --gl-feedback-strong-icon-color: var(--gl-color-neutral-0); /* Used for an icon on a strong feedback background. */
480
480
  --gl-feedback-strong-text-color: var(--gl-color-neutral-0); /* Used for text on a strong feedback background. */
481
- --gl-feedback-strong-background-color: var(--gl-color-neutral-950); /* Used for a background associated with strong feedback like a tooltip or toast message. */
481
+ --gl-feedback-strong-background-color: var(--gl-color-neutral-800); /* Used for a background associated with strong feedback like a tooltip or toast message. */
482
482
  --gl-control-indicator-color-disabled: var(--gl-color-neutral-500); /* Used for disabled checkbox and radio button state indicators. */
483
483
  --gl-control-indicator-color-selected: var(--gl-color-neutral-0); /* Used for checkbox and radio button state indicators. */
484
484
  --gl-control-border-color-selected-focus: var(--gl-color-blue-700); /* Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus. */
@@ -503,7 +503,6 @@
503
503
  --gl-spinner-track-color-default: var(--gl-color-neutral-100); /* Used for the static track (background) of a loading spinner. */
504
504
  --gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-50); /* Used for the animated shimmer effect in a skeleton loader. */
505
505
  --gl-skeleton-loader-background-color: var(--gl-color-neutral-100); /* Used for the skeleton loader background color. */
506
- --gl-popover-background-color: var(--gl-color-neutral-0); /* Used for the background color of popover. */
507
506
  --gl-link-mention-background-color-current: var(--gl-color-orange-100); /* Used for the mention link background when referencing the current user. */
508
507
  --gl-link-mention-background-color-default: var(--gl-color-blue-100); /* Used for the mention link default background. */
509
508
  --gl-link-mention-text-color-current: var(--gl-color-orange-800); /* Used for the mention link text color when referencing the current user. */
@@ -477,8 +477,8 @@
477
477
  --gl-feedback-neutral-background-color: var(--gl-color-neutral-900); /* Used for the background of a neutral feedback item when there isn't a specific meaning or urgency. */
478
478
  --gl-feedback-strong-link-color: var(--gl-color-blue-700); /* Used for a link on a strong feedback background. */
479
479
  --gl-feedback-strong-icon-color: var(--gl-color-neutral-900); /* Used for an icon on a strong feedback background. */
480
- --gl-feedback-strong-text-color: var(--gl-color-neutral-900); /* Used for text on a strong feedback background. */
481
- --gl-feedback-strong-background-color: var(--gl-color-neutral-10); /* Used for a background associated with strong feedback like a tooltip or toast message. */
480
+ --gl-feedback-strong-text-color: var(--gl-color-neutral-0); /* Used for text on a strong feedback background. */
481
+ --gl-feedback-strong-background-color: var(--gl-color-neutral-800); /* Used for a background associated with strong feedback like a tooltip or toast message. */
482
482
  --gl-control-indicator-color-disabled: var(--gl-color-neutral-400); /* Used for disabled checkbox and radio button state indicators. */
483
483
  --gl-control-indicator-color-selected: var(--gl-color-neutral-950); /* Used for checkbox and radio button state indicators. */
484
484
  --gl-control-border-color-selected-focus: var(--gl-color-blue-200); /* Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus. */
@@ -503,7 +503,6 @@
503
503
  --gl-spinner-track-color-default: var(--gl-color-neutral-800); /* Used for the static track (background) of a loading spinner. */
504
504
  --gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-700); /* Used for the animated shimmer effect in a skeleton loader. */
505
505
  --gl-skeleton-loader-background-color: var(--gl-color-neutral-800); /* Used for the skeleton loader background color. */
506
- --gl-popover-background-color: var(--gl-color-neutral-900); /* Used for the background color of popover. */
507
506
  --gl-link-mention-background-color-current: var(--gl-color-orange-800); /* Used for the mention link background when referencing the current user. */
508
507
  --gl-link-mention-background-color-default: var(--gl-color-blue-800); /* Used for the mention link default background. */
509
508
  --gl-link-mention-text-color-current: var(--gl-color-orange-100); /* Used for the mention link text color when referencing the current user. */
@@ -643,7 +643,6 @@ export const GL_LINK_MENTION_TEXT_COLOR_DEFAULT = '#9dc7f1'; // Used for the men
643
643
  export const GL_LINK_MENTION_TEXT_COLOR_CURRENT = '#f5d9a8'; // Used for the mention link text color when referencing the current user.
644
644
  export const GL_LINK_MENTION_BACKGROUND_COLOR_DEFAULT = '#064787'; // Used for the mention link default background.
645
645
  export const GL_LINK_MENTION_BACKGROUND_COLOR_CURRENT = '#703800'; // Used for the mention link background when referencing the current user.
646
- export const GL_POPOVER_BACKGROUND_COLOR = '#28272d'; // Used for the background color of popover.
647
646
  export const GL_SKELETON_LOADER_BACKGROUND_COLOR = '#3a383f'; // Used for the skeleton loader background color.
648
647
  export const GL_SKELETON_LOADER_SHIMMER_COLOR = '#4c4b51'; // Used for the animated shimmer effect in a skeleton loader.
649
648
  export const GL_SPINNER_TRACK_COLOR_DEFAULT = '#3a383f'; // Used for the static track (background) of a loading spinner.
@@ -838,8 +837,8 @@ export const T_WHITE_A_02 = 'rgba(255, 255, 255, 0.02)'; // Use color.alpha.ligh
838
837
  export const T_WHITE_A_04 = 'rgba(255, 255, 255, 0.04)'; // Use color.alpha.light.4 instead.
839
838
  export const T_WHITE_A_06 = 'rgba(255, 255, 255, 0.06)'; // Use color.alpha.light.6 instead.
840
839
  export const T_WHITE_A_08 = 'rgba(255, 255, 255, 0.08)'; // Use color.alpha.light.8 instead.
841
- export const GL_FEEDBACK_STRONG_BACKGROUND_COLOR = '#fbfafd'; // Used for a background associated with strong feedback like a tooltip or toast message.
842
- export const GL_FEEDBACK_STRONG_TEXT_COLOR = '#28272d'; // Used for text on a strong feedback background.
840
+ export const GL_FEEDBACK_STRONG_BACKGROUND_COLOR = '#3a383f'; // Used for a background associated with strong feedback like a tooltip or toast message.
841
+ export const GL_FEEDBACK_STRONG_TEXT_COLOR = '#fff'; // Used for text on a strong feedback background.
843
842
  export const GL_FEEDBACK_STRONG_ICON_COLOR = '#28272d'; // Used for an icon on a strong feedback background.
844
843
  export const GL_FEEDBACK_STRONG_LINK_COLOR = '#0b5cad'; // Used for a link on a strong feedback background.
845
844
  export const GL_FEEDBACK_NEUTRAL_BACKGROUND_COLOR = '#28272d'; // Used for the background of a neutral feedback item when there isn't a specific meaning or urgency.
@@ -643,7 +643,6 @@ export const GL_LINK_MENTION_TEXT_COLOR_DEFAULT = '#0b5cad'; // Used for the men
643
643
  export const GL_LINK_MENTION_TEXT_COLOR_CURRENT = '#703800'; // Used for the mention link text color when referencing the current user.
644
644
  export const GL_LINK_MENTION_BACKGROUND_COLOR_DEFAULT = '#cbe2f9'; // Used for the mention link default background.
645
645
  export const GL_LINK_MENTION_BACKGROUND_COLOR_CURRENT = '#f5d9a8'; // Used for the mention link background when referencing the current user.
646
- export const GL_POPOVER_BACKGROUND_COLOR = '#fff'; // Used for the background color of popover.
647
646
  export const GL_SKELETON_LOADER_BACKGROUND_COLOR = '#dcdcde'; // Used for the skeleton loader background color.
648
647
  export const GL_SKELETON_LOADER_SHIMMER_COLOR = '#ececef'; // Used for the animated shimmer effect in a skeleton loader.
649
648
  export const GL_SPINNER_TRACK_COLOR_DEFAULT = '#dcdcde'; // Used for the static track (background) of a loading spinner.
@@ -838,7 +837,7 @@ export const T_WHITE_A_02 = 'rgba(255, 255, 255, 0.02)'; // Use color.alpha.ligh
838
837
  export const T_WHITE_A_04 = 'rgba(255, 255, 255, 0.04)'; // Use color.alpha.light.4 instead.
839
838
  export const T_WHITE_A_06 = 'rgba(255, 255, 255, 0.06)'; // Use color.alpha.light.6 instead.
840
839
  export const T_WHITE_A_08 = 'rgba(255, 255, 255, 0.08)'; // Use color.alpha.light.8 instead.
841
- export const GL_FEEDBACK_STRONG_BACKGROUND_COLOR = '#18171d'; // Used for a background associated with strong feedback like a tooltip or toast message.
840
+ export const GL_FEEDBACK_STRONG_BACKGROUND_COLOR = '#3a383f'; // Used for a background associated with strong feedback like a tooltip or toast message.
842
841
  export const GL_FEEDBACK_STRONG_TEXT_COLOR = '#fff'; // Used for text on a strong feedback background.
843
842
  export const GL_FEEDBACK_STRONG_ICON_COLOR = '#fff'; // Used for an icon on a strong feedback background.
844
843
  export const GL_FEEDBACK_STRONG_LINK_COLOR = '#63a6e9'; // Used for a link on a strong feedback background.
@@ -14161,32 +14161,6 @@
14161
14161
  }
14162
14162
  }
14163
14163
  },
14164
- "popover": {
14165
- "background": {
14166
- "color": {
14167
- "value": "#28272d",
14168
- "$type": "color",
14169
- "comment": "Used for the background color of popover.",
14170
- "filePath": "src/tokens/contextual/popover.tokens.json",
14171
- "isSource": true,
14172
- "original": {
14173
- "value": {
14174
- "default": "{color.neutral.0}",
14175
- "dark": "{color.neutral.900}"
14176
- },
14177
- "$type": "color",
14178
- "comment": "Used for the background color of popover."
14179
- },
14180
- "name": "POPOVER_BACKGROUND_COLOR",
14181
- "attributes": {},
14182
- "path": [
14183
- "popover",
14184
- "background",
14185
- "color"
14186
- ]
14187
- }
14188
- }
14189
- },
14190
14164
  "skeleton-loader": {
14191
14165
  "background": {
14192
14166
  "color": {
@@ -19121,16 +19095,13 @@
19121
19095
  "strong": {
19122
19096
  "background": {
19123
19097
  "color": {
19124
- "value": "#fbfafd",
19098
+ "value": "#3a383f",
19125
19099
  "$type": "color",
19126
19100
  "comment": "Used for a background associated with strong feedback like a tooltip or toast message.",
19127
19101
  "filePath": "src/tokens/feedback.tokens.json",
19128
19102
  "isSource": true,
19129
19103
  "original": {
19130
- "value": {
19131
- "default": "{color.neutral.950}",
19132
- "dark": "{color.neutral.10}"
19133
- },
19104
+ "value": "{color.neutral.800}",
19134
19105
  "$type": "color",
19135
19106
  "comment": "Used for a background associated with strong feedback like a tooltip or toast message."
19136
19107
  },
@@ -19146,16 +19117,13 @@
19146
19117
  },
19147
19118
  "text": {
19148
19119
  "color": {
19149
- "value": "#28272d",
19120
+ "value": "#fff",
19150
19121
  "$type": "color",
19151
19122
  "comment": "Used for text on a strong feedback background.",
19152
19123
  "filePath": "src/tokens/feedback.tokens.json",
19153
19124
  "isSource": true,
19154
19125
  "original": {
19155
- "value": {
19156
- "default": "{color.neutral.0}",
19157
- "dark": "{color.neutral.900}"
19158
- },
19126
+ "value": "{color.neutral.0}",
19159
19127
  "$type": "color",
19160
19128
  "comment": "Used for text on a strong feedback background."
19161
19129
  },
@@ -14161,32 +14161,6 @@
14161
14161
  }
14162
14162
  }
14163
14163
  },
14164
- "popover": {
14165
- "background": {
14166
- "color": {
14167
- "value": "#fff",
14168
- "$type": "color",
14169
- "comment": "Used for the background color of popover.",
14170
- "filePath": "src/tokens/contextual/popover.tokens.json",
14171
- "isSource": true,
14172
- "original": {
14173
- "value": {
14174
- "default": "{color.neutral.0}",
14175
- "dark": "{color.neutral.900}"
14176
- },
14177
- "$type": "color",
14178
- "comment": "Used for the background color of popover."
14179
- },
14180
- "name": "POPOVER_BACKGROUND_COLOR",
14181
- "attributes": {},
14182
- "path": [
14183
- "popover",
14184
- "background",
14185
- "color"
14186
- ]
14187
- }
14188
- }
14189
- },
14190
14164
  "skeleton-loader": {
14191
14165
  "background": {
14192
14166
  "color": {
@@ -19121,16 +19095,13 @@
19121
19095
  "strong": {
19122
19096
  "background": {
19123
19097
  "color": {
19124
- "value": "#18171d",
19098
+ "value": "#3a383f",
19125
19099
  "$type": "color",
19126
19100
  "comment": "Used for a background associated with strong feedback like a tooltip or toast message.",
19127
19101
  "filePath": "src/tokens/feedback.tokens.json",
19128
19102
  "isSource": true,
19129
19103
  "original": {
19130
- "value": {
19131
- "default": "{color.neutral.950}",
19132
- "dark": "{color.neutral.10}"
19133
- },
19104
+ "value": "{color.neutral.800}",
19134
19105
  "$type": "color",
19135
19106
  "comment": "Used for a background associated with strong feedback like a tooltip or toast message."
19136
19107
  },
@@ -19152,10 +19123,7 @@
19152
19123
  "filePath": "src/tokens/feedback.tokens.json",
19153
19124
  "isSource": true,
19154
19125
  "original": {
19155
- "value": {
19156
- "default": "{color.neutral.0}",
19157
- "dark": "{color.neutral.900}"
19158
- },
19126
+ "value": "{color.neutral.0}",
19159
19127
  "$type": "color",
19160
19128
  "comment": "Used for text on a strong feedback background."
19161
19129
  },
@@ -475,8 +475,8 @@ $gl-feedback-neutral-text-color: $gl-color-neutral-200; // Used for the text of
475
475
  $gl-feedback-neutral-background-color: $gl-color-neutral-900; // Used for the background of a neutral feedback item when there isn't a specific meaning or urgency.
476
476
  $gl-feedback-strong-link-color: $gl-color-blue-700; // Used for a link on a strong feedback background.
477
477
  $gl-feedback-strong-icon-color: $gl-color-neutral-900; // Used for an icon on a strong feedback background.
478
- $gl-feedback-strong-text-color: $gl-color-neutral-900; // Used for text on a strong feedback background.
479
- $gl-feedback-strong-background-color: $gl-color-neutral-10; // Used for a background associated with strong feedback like a tooltip or toast message.
478
+ $gl-feedback-strong-text-color: $gl-color-neutral-0; // Used for text on a strong feedback background.
479
+ $gl-feedback-strong-background-color: $gl-color-neutral-800; // Used for a background associated with strong feedback like a tooltip or toast message.
480
480
  $gl-control-indicator-color-disabled: $gl-color-neutral-400; // Used for disabled checkbox and radio button state indicators.
481
481
  $gl-control-indicator-color-selected: $gl-color-neutral-950; // Used for checkbox and radio button state indicators.
482
482
  $gl-control-border-color-selected-focus: $gl-color-blue-200; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus.
@@ -501,7 +501,6 @@ $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static tra
501
501
  $gl-spinner-track-color-default: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner.
502
502
  $gl-skeleton-loader-shimmer-color: $gl-color-neutral-700; // Used for the animated shimmer effect in a skeleton loader.
503
503
  $gl-skeleton-loader-background-color: $gl-color-neutral-800; // Used for the skeleton loader background color.
504
- $gl-popover-background-color: $gl-color-neutral-900; // Used for the background color of popover.
505
504
  $gl-link-mention-background-color-current: $gl-color-orange-800; // Used for the mention link background when referencing the current user.
506
505
  $gl-link-mention-background-color-default: $gl-color-blue-800; // Used for the mention link default background.
507
506
  $gl-link-mention-text-color-current: $gl-color-orange-100; // Used for the mention link text color when referencing the current user.
@@ -476,7 +476,7 @@ $gl-feedback-neutral-background-color: $gl-color-neutral-50; // Used for the bac
476
476
  $gl-feedback-strong-link-color: $gl-color-blue-300; // Used for a link on a strong feedback background.
477
477
  $gl-feedback-strong-icon-color: $gl-color-neutral-0; // Used for an icon on a strong feedback background.
478
478
  $gl-feedback-strong-text-color: $gl-color-neutral-0; // Used for text on a strong feedback background.
479
- $gl-feedback-strong-background-color: $gl-color-neutral-950; // Used for a background associated with strong feedback like a tooltip or toast message.
479
+ $gl-feedback-strong-background-color: $gl-color-neutral-800; // Used for a background associated with strong feedback like a tooltip or toast message.
480
480
  $gl-control-indicator-color-disabled: $gl-color-neutral-500; // Used for disabled checkbox and radio button state indicators.
481
481
  $gl-control-indicator-color-selected: $gl-color-neutral-0; // Used for checkbox and radio button state indicators.
482
482
  $gl-control-border-color-selected-focus: $gl-color-blue-700; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus.
@@ -501,7 +501,6 @@ $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static tra
501
501
  $gl-spinner-track-color-default: $gl-color-neutral-100; // Used for the static track (background) of a loading spinner.
502
502
  $gl-skeleton-loader-shimmer-color: $gl-color-neutral-50; // Used for the animated shimmer effect in a skeleton loader.
503
503
  $gl-skeleton-loader-background-color: $gl-color-neutral-100; // Used for the skeleton loader background color.
504
- $gl-popover-background-color: $gl-color-neutral-0; // Used for the background color of popover.
505
504
  $gl-link-mention-background-color-current: $gl-color-orange-100; // Used for the mention link background when referencing the current user.
506
505
  $gl-link-mention-background-color-default: $gl-color-blue-100; // Used for the mention link default background.
507
506
  $gl-link-mention-text-color-current: $gl-color-orange-800; // Used for the mention link text color when referencing the current user.
@@ -643,7 +643,6 @@ $gl-link-mention-text-color-default: var(--gl-link-mention-text-color-default);
643
643
  $gl-link-mention-text-color-current: var(--gl-link-mention-text-color-current);
644
644
  $gl-link-mention-background-color-default: var(--gl-link-mention-background-color-default);
645
645
  $gl-link-mention-background-color-current: var(--gl-link-mention-background-color-current);
646
- $gl-popover-background-color: var(--gl-popover-background-color);
647
646
  $gl-skeleton-loader-background-color: var(--gl-skeleton-loader-background-color);
648
647
  $gl-skeleton-loader-shimmer-color: var(--gl-skeleton-loader-shimmer-color);
649
648
  $gl-spinner-track-color-default: var(--gl-spinner-track-color-default);
@@ -3,20 +3,14 @@
3
3
  "strong": {
4
4
  "background": {
5
5
  "color": {
6
- "$value": {
7
- "default": "{color.neutral.950}",
8
- "dark": "{color.neutral.10}"
9
- },
6
+ "$value": "{color.neutral.800}",
10
7
  "$type": "color",
11
8
  "$description": "Used for a background associated with strong feedback like a tooltip or toast message."
12
9
  }
13
10
  },
14
11
  "text": {
15
12
  "color": {
16
- "$value": {
17
- "default": "{color.neutral.0}",
18
- "dark": "{color.neutral.900}"
19
- },
13
+ "$value": "{color.neutral.0}",
20
14
  "$type": "color",
21
15
  "$description": "Used for text on a strong feedback background."
22
16
  }
@@ -1,14 +0,0 @@
1
- {
2
- "popover": {
3
- "background": {
4
- "color": {
5
- "$value": {
6
- "default": "{color.neutral.0}",
7
- "dark": "{color.neutral.900}"
8
- },
9
- "$type": "color",
10
- "$description": "Used for the background color of popover."
11
- }
12
- }
13
- }
14
- }