@gitlab/ui 89.5.0 → 89.7.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 (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/base/daterange_picker/daterange_picker.js +1 -1
  3. package/dist/components/experimental/duo/chat/duo_chat.js +1 -3
  4. package/dist/index.css +2 -2
  5. package/dist/index.css.map +1 -1
  6. package/dist/tokens/build/js/tokens.dark.js +26 -4
  7. package/dist/tokens/build/js/tokens.js +25 -3
  8. package/dist/tokens/css/tokens.css +24 -2
  9. package/dist/tokens/css/tokens.dark.css +25 -3
  10. package/dist/tokens/js/tokens.dark.js +25 -3
  11. package/dist/tokens/js/tokens.js +24 -2
  12. package/dist/tokens/json/tokens.dark.json +601 -12
  13. package/dist/tokens/json/tokens.json +600 -11
  14. package/dist/tokens/scss/_tokens.dark.scss +25 -3
  15. package/dist/tokens/scss/_tokens.scss +24 -2
  16. package/dist/tokens/scss/_tokens_custom_properties.scss +22 -0
  17. package/package.json +2 -2
  18. package/src/components/base/alert/alert.scss +87 -41
  19. package/src/components/base/banner/banner.scss +1 -1
  20. package/src/components/base/daterange_picker/daterange_picker.scss +2 -6
  21. package/src/components/base/daterange_picker/daterange_picker.vue +8 -1
  22. package/src/components/base/tabs/tabs/tabs.scss +40 -26
  23. package/src/components/experimental/duo/chat/duo_chat.vue +4 -5
  24. package/src/scss/mixins.scss +24 -0
  25. package/src/tokens/build/css/tokens.css +24 -2
  26. package/src/tokens/build/css/tokens.dark.css +25 -3
  27. package/src/tokens/build/js/tokens.dark.js +25 -3
  28. package/src/tokens/build/js/tokens.js +24 -2
  29. package/src/tokens/build/json/tokens.dark.json +601 -12
  30. package/src/tokens/build/json/tokens.json +600 -11
  31. package/src/tokens/build/scss/_tokens.dark.scss +25 -3
  32. package/src/tokens/build/scss/_tokens.scss +24 -2
  33. package/src/tokens/build/scss/_tokens_custom_properties.scss +22 -0
  34. package/src/tokens/contextual/alert.tokens.json +224 -0
  35. package/src/tokens/contextual/banner.tokens.json +16 -6
  36. package/src/tokens/contextual/tabs.tokens.json +18 -0
  37. package/src/tokens/feedback.tokens.json +1 -1
@@ -469,7 +469,7 @@ $gl-feedback-success-text-color: $gl-color-green-200; // Used for the text of a
469
469
  $gl-feedback-success-background-color: $gl-color-green-900; // Used for the background of a success feedback item when confirming the successful completion of a user-initiated action.
470
470
  $gl-feedback-info-icon-color: $gl-color-blue-300; // Used for the icon of an informational feedback item when highlighting new information or a change that doesn't require immediate action.
471
471
  $gl-feedback-info-text-color: $gl-color-blue-200; // Used for the text of an informational feedback item when highlighting new information or a change that doesn't require immediate action.
472
- $gl-feedback-info-background-color: $gl-color-blue-900; // Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action.
472
+ $gl-feedback-info-background-color: $gl-color-blue-950; // Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action.
473
473
  $gl-feedback-neutral-icon-color: $gl-color-neutral-300; // Used for the icon of a neutral feedback item when there isn't a specific meaning or urgency.
474
474
  $gl-feedback-neutral-text-color: $gl-color-neutral-200; // Used for the text of a neutral feedback item when there isn't a specific meaning or urgency.
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.
@@ -494,6 +494,7 @@ $gl-control-background-color-readonly: $gl-color-neutral-900; // Used for the ba
494
494
  $gl-control-background-color-concatenation: $gl-color-alpha-light-4; // Used for the background of static content that prepends or appends a text input.
495
495
  $gl-control-background-color-disabled: $gl-color-alpha-light-4; // Used for disabled form control (checkbox, input, radio button, textarea) background.
496
496
  $gl-control-background-color-default: $gl-color-alpha-dark-40; // Used for form control (input, radio button, checkbox, textarea) default background.
497
+ $gl-tab-selected-indicator-color-default: $gl-color-blue-400; // Used for the selected indicator of a tab.
497
498
  $gl-spinner-segment-color-light: $gl-color-neutral-200; // Used for the animated segment of a loading spinner on a dark background.
498
499
  $gl-spinner-segment-color-default: $gl-color-neutral-200; // Used for the animated segment of a loading spinner.
499
500
  $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner on a dark background.
@@ -566,8 +567,9 @@ $gl-button-default-primary-background-color-hover: $gl-color-neutral-900; // Use
566
567
  $gl-button-default-primary-background-color-default: $gl-color-neutral-900; // Used for the background of an default primary button in the default state.
567
568
  $gl-button-default-primary-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a default primary button in the default state.
568
569
  $gl-breadcrumb-separator-color: $gl-color-neutral-400; // Used for the breadcrumb level separator.
569
- $gl-banner-promo-background-color: $gl-color-neutral-900; // Used as background for the default banner type.
570
- $gl-banner-intro-border-color: $gl-color-blue-600; // Used to compliment the info banner.
570
+ $gl-banner-promo-border-color: $gl-color-purple-800; // Used for the border of a promo banner.
571
+ $gl-banner-promo-background-color: $gl-color-purple-950; // Used for the background of a promo banner.
572
+ $gl-banner-intro-border-color: $gl-color-blue-800; // Used for the border of an info banner.
571
573
  $gl-badge-tier-icon-color-active: $gl-color-purple-950; // Used for the icon of a tier related badge in the active state.
572
574
  $gl-badge-tier-icon-color-hover: $gl-color-purple-950; // Used for the icon of a tier related badge in the hover state.
573
575
  $gl-badge-tier-icon-color-default: $gl-color-purple-950; // Used for the icon of a tier related badge when static or the default state when linked.
@@ -660,6 +662,16 @@ $gl-avatar-fallback-text-color-purple: $gl-color-purple-200; // Purple text colo
660
662
  $gl-avatar-fallback-text-color-red: $gl-color-red-200; // Red text color for avatar fallback with no particular meaning.
661
663
  $gl-avatar-border-color-hover: $gl-color-alpha-light-24; // Used to increase the edge definition of an avatar in the hover state.
662
664
  $gl-avatar-border-color-default: $gl-color-alpha-light-8; // Used to define the edge of an avatar.
665
+ $gl-alert-danger-border-bottom-color: $gl-color-neutral-800; // Used for the border bottom color of a danger alert.
666
+ $gl-alert-danger-border-top-color: $gl-color-red-400; // Used for the border color of a danger alert.
667
+ $gl-alert-warning-border-bottom-color: $gl-color-neutral-800; // Used for the border bottom color of a warning alert.
668
+ $gl-alert-warning-border-top-color: $gl-color-orange-400; // Used for the border color of a warning alert.
669
+ $gl-alert-success-border-bottom-color: $gl-color-neutral-800; // Used for the border bottom color of a success alert.
670
+ $gl-alert-success-border-top-color: $gl-color-green-400; // Used for the border color of a success alert.
671
+ $gl-alert-info-border-bottom-color: $gl-color-neutral-800; // Used for the border bottom color of an info alert.
672
+ $gl-alert-info-border-top-color: $gl-color-blue-400; // Used for the border color of an info alert.
673
+ $gl-alert-neutral-border-bottom-color: $gl-color-neutral-800; // Used for the border bottom color of a neutral alert.
674
+ $gl-alert-neutral-border-top-color: $gl-color-neutral-400; // Used for the border center color of a neutral alert.
663
675
  $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
664
676
  $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border that emphasizes an edge or boundaries.
665
677
  $gl-border-color-subtle: $gl-color-neutral-900; // Used for a subtle border in combination with the default background.
@@ -764,6 +776,16 @@ $gl-badge-neutral-background-color-hover: $gl-badge-neutral-background-color-def
764
776
  $gl-badge-muted-icon-color-focus: $gl-badge-muted-icon-color-hover; // Used for the icon of a muted badge in the focus state.
765
777
  $gl-badge-muted-text-color-focus: $gl-badge-muted-text-color-hover; // Used for the text of a muted badge in the focus state.
766
778
  $gl-badge-muted-background-color-hover: $gl-badge-muted-background-color-default; // Used for the background of a muted badge in the hover state.
779
+ $gl-alert-danger-background-color: $gl-background-color-subtle; // Used for the background color of a danger alert.
780
+ $gl-alert-danger-title-color: $gl-color-red-300; // Used for the title color of a danger alert.
781
+ $gl-alert-warning-background-color: $gl-background-color-subtle; // Used for the background color of a warning alert.
782
+ $gl-alert-warning-title-color: $gl-color-orange-300; // Used for the title color of a warning alert.
783
+ $gl-alert-success-background-color: $gl-background-color-subtle; // Used for the background color of a success alert.
784
+ $gl-alert-success-title-color: $gl-color-green-300; // Used for the title color of a success alert.
785
+ $gl-alert-info-background-color: $gl-background-color-subtle; // Used for the background color of an info alert.
786
+ $gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
787
+ $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
788
+ $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
767
789
  $gl-action-strong-neutral-border-color-hover: $gl-action-strong-neutral-border-color-default; // Used for the border of a strong neutral action in the hover state.
768
790
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
769
791
  $gl-action-strong-neutral-background-color-focus: $gl-action-strong-neutral-background-color-hover; // Used for the background of a strong neutral action in the focus state.
@@ -494,6 +494,7 @@ $gl-control-background-color-readonly: $gl-color-neutral-10; // Used for the bac
494
494
  $gl-control-background-color-concatenation: $gl-color-neutral-10; // Used for the background of static content that prepends or appends a text input.
495
495
  $gl-control-background-color-disabled: $gl-color-neutral-10; // Used for disabled form control (checkbox, input, radio button, textarea) background.
496
496
  $gl-control-background-color-default: $gl-color-neutral-0; // Used for form control (input, radio button, checkbox, textarea) default background.
497
+ $gl-tab-selected-indicator-color-default: $gl-color-blue-500; // Used for the selected indicator of a tab.
497
498
  $gl-spinner-segment-color-light: $gl-color-neutral-200; // Used for the animated segment of a loading spinner on a dark background.
498
499
  $gl-spinner-segment-color-default: $gl-color-neutral-700; // Used for the animated segment of a loading spinner.
499
500
  $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner on a dark background.
@@ -566,8 +567,9 @@ $gl-button-default-primary-background-color-hover: $gl-color-neutral-50; // Used
566
567
  $gl-button-default-primary-background-color-default: $gl-color-neutral-0; // Used for the background of an default primary button in the default state.
567
568
  $gl-button-default-primary-foreground-color-default: $gl-color-neutral-800; // Used for the foreground of a default primary button in the default state.
568
569
  $gl-breadcrumb-separator-color: $gl-color-neutral-400; // Used for the breadcrumb level separator.
569
- $gl-banner-promo-background-color: $gl-color-neutral-10; // Used as background for the default banner type.
570
- $gl-banner-intro-border-color: $gl-color-blue-300; // Used to compliment the info banner.
570
+ $gl-banner-promo-border-color: $gl-color-purple-100; // Used for the border of a promo banner.
571
+ $gl-banner-promo-background-color: $gl-color-purple-50; // Used for the background of a promo banner.
572
+ $gl-banner-intro-border-color: $gl-color-blue-100; // Used for the border of an info banner.
571
573
  $gl-badge-tier-icon-color-active: $gl-color-purple-900; // Used for the icon of a tier related badge in the active state.
572
574
  $gl-badge-tier-icon-color-hover: $gl-color-purple-800; // Used for the icon of a tier related badge in the hover state.
573
575
  $gl-badge-tier-icon-color-default: $gl-color-purple-700; // Used for the icon of a tier related badge when static or the default state when linked.
@@ -660,6 +662,16 @@ $gl-avatar-fallback-text-color-purple: $gl-color-purple-800; // Purple text colo
660
662
  $gl-avatar-fallback-text-color-red: $gl-color-red-800; // Red text color for avatar fallback with no particular meaning.
661
663
  $gl-avatar-border-color-hover: $gl-color-alpha-dark-24; // Used to increase the edge definition of an avatar in the hover state.
662
664
  $gl-avatar-border-color-default: $gl-color-alpha-dark-8; // Used to define the edge of an avatar.
665
+ $gl-alert-danger-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a danger alert.
666
+ $gl-alert-danger-border-top-color: $gl-color-alpha-0; // Used for the border color of a danger alert.
667
+ $gl-alert-warning-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a warning alert.
668
+ $gl-alert-warning-border-top-color: $gl-color-alpha-0; // Used for the border color of a warning alert.
669
+ $gl-alert-success-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a success alert.
670
+ $gl-alert-success-border-top-color: $gl-color-alpha-0; // Used for the border color of a success alert.
671
+ $gl-alert-info-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of an info alert.
672
+ $gl-alert-info-border-top-color: $gl-color-alpha-0; // Used for the border color of an info alert.
673
+ $gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
674
+ $gl-alert-neutral-border-top-color: $gl-color-alpha-0; // Used for the border center color of a neutral alert.
663
675
  $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
664
676
  $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border that emphasizes an edge or boundaries.
665
677
  $gl-border-color-subtle: $gl-color-neutral-50; // Used for a subtle border in combination with the default background.
@@ -764,6 +776,16 @@ $gl-badge-neutral-background-color-hover: $gl-badge-neutral-background-color-def
764
776
  $gl-badge-muted-icon-color-focus: $gl-badge-muted-icon-color-hover; // Used for the icon of a muted badge in the focus state.
765
777
  $gl-badge-muted-text-color-focus: $gl-badge-muted-text-color-hover; // Used for the text of a muted badge in the focus state.
766
778
  $gl-badge-muted-background-color-hover: $gl-badge-muted-background-color-default; // Used for the background of a muted badge in the hover state.
779
+ $gl-alert-danger-background-color: $gl-feedback-danger-background-color; // Used for the background color of a danger alert.
780
+ $gl-alert-danger-title-color: $gl-text-color-heading; // Used for the title color of a danger alert.
781
+ $gl-alert-warning-background-color: $gl-feedback-warning-background-color; // Used for the background color of a warning alert.
782
+ $gl-alert-warning-title-color: $gl-text-color-heading; // Used for the title color of a warning alert.
783
+ $gl-alert-success-background-color: $gl-feedback-success-background-color; // Used for the background color of a success alert.
784
+ $gl-alert-success-title-color: $gl-text-color-heading; // Used for the title color of a success alert.
785
+ $gl-alert-info-background-color: $gl-feedback-info-background-color; // Used for the background color of an info alert.
786
+ $gl-alert-info-title-color: $gl-text-color-heading; // Used for the title color of an info alert.
787
+ $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
788
+ $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
767
789
  $gl-action-strong-neutral-border-color-hover: $gl-action-strong-neutral-border-color-default; // Used for the border of a strong neutral action in the hover state.
768
790
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
769
791
  $gl-action-strong-neutral-background-color-focus: $gl-action-strong-neutral-background-color-hover; // Used for the background of a strong neutral action in the focus state.
@@ -301,6 +301,26 @@ $data-viz-orange-700: var(--data-viz-orange-700);
301
301
  $data-viz-orange-800: var(--data-viz-orange-800);
302
302
  $data-viz-orange-900: var(--data-viz-orange-900);
303
303
  $data-viz-orange-950: var(--data-viz-orange-950);
304
+ $gl-alert-neutral-title-color: var(--gl-alert-neutral-title-color);
305
+ $gl-alert-neutral-background-color: var(--gl-alert-neutral-background-color);
306
+ $gl-alert-neutral-border-top-color: var(--gl-alert-neutral-border-top-color);
307
+ $gl-alert-neutral-border-bottom-color: var(--gl-alert-neutral-border-bottom-color);
308
+ $gl-alert-info-title-color: var(--gl-alert-info-title-color);
309
+ $gl-alert-info-background-color: var(--gl-alert-info-background-color);
310
+ $gl-alert-info-border-top-color: var(--gl-alert-info-border-top-color);
311
+ $gl-alert-info-border-bottom-color: var(--gl-alert-info-border-bottom-color);
312
+ $gl-alert-success-title-color: var(--gl-alert-success-title-color);
313
+ $gl-alert-success-background-color: var(--gl-alert-success-background-color);
314
+ $gl-alert-success-border-top-color: var(--gl-alert-success-border-top-color);
315
+ $gl-alert-success-border-bottom-color: var(--gl-alert-success-border-bottom-color);
316
+ $gl-alert-warning-title-color: var(--gl-alert-warning-title-color);
317
+ $gl-alert-warning-background-color: var(--gl-alert-warning-background-color);
318
+ $gl-alert-warning-border-top-color: var(--gl-alert-warning-border-top-color);
319
+ $gl-alert-warning-border-bottom-color: var(--gl-alert-warning-border-bottom-color);
320
+ $gl-alert-danger-title-color: var(--gl-alert-danger-title-color);
321
+ $gl-alert-danger-background-color: var(--gl-alert-danger-background-color);
322
+ $gl-alert-danger-border-top-color: var(--gl-alert-danger-border-top-color);
323
+ $gl-alert-danger-border-bottom-color: var(--gl-alert-danger-border-bottom-color);
304
324
  $gl-avatar-border-color-default: var(--gl-avatar-border-color-default);
305
325
  $gl-avatar-border-color-hover: var(--gl-avatar-border-color-hover);
306
326
  $gl-avatar-fallback-text-color-red: var(--gl-avatar-fallback-text-color-red);
@@ -429,6 +449,7 @@ $gl-badge-tier-icon-color-focus: var(--gl-badge-tier-icon-color-focus);
429
449
  $gl-badge-tier-icon-color-active: var(--gl-badge-tier-icon-color-active);
430
450
  $gl-banner-intro-border-color: var(--gl-banner-intro-border-color);
431
451
  $gl-banner-promo-background-color: var(--gl-banner-promo-background-color);
452
+ $gl-banner-promo-border-color: var(--gl-banner-promo-border-color);
432
453
  $gl-breadcrumb-separator-color: var(--gl-breadcrumb-separator-color);
433
454
  $gl-button-default-primary-foreground-color-default: var(--gl-button-default-primary-foreground-color-default);
434
455
  $gl-button-default-primary-foreground-color-hover: var(--gl-button-default-primary-foreground-color-hover);
@@ -572,6 +593,7 @@ $gl-spinner-segment-color-default: var(--gl-spinner-segment-color-default);
572
593
  $gl-spinner-segment-color-light: var(--gl-spinner-segment-color-light);
573
594
  $gl-table-row-background-color-hover: var(--gl-table-row-background-color-hover);
574
595
  $gl-table-sorting-icon-color: var(--gl-table-sorting-icon-color);
596
+ $gl-tab-selected-indicator-color-default: var(--gl-tab-selected-indicator-color-default);
575
597
  $gl-control-background-color-default: var(--gl-control-background-color-default);
576
598
  $gl-control-background-color-disabled: var(--gl-control-background-color-disabled);
577
599
  $gl-control-background-color-concatenation: var(--gl-control-background-color-concatenation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "89.5.0",
3
+ "version": "89.7.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -114,7 +114,7 @@
114
114
  "@gitlab/eslint-plugin": "20.0.0",
115
115
  "@gitlab/fonts": "^1.3.0",
116
116
  "@gitlab/stylelint-config": "6.2.1",
117
- "@gitlab/svgs": "3.113.0",
117
+ "@gitlab/svgs": "3.114.0",
118
118
  "@jest/test-sequencer": "^29.7.0",
119
119
  "@rollup/plugin-commonjs": "^11.1.0",
120
120
  "@rollup/plugin-node-resolve": "^7.1.3",
@@ -7,6 +7,35 @@
7
7
  */
8
8
  // stylelint-disable length-zero-no-unit
9
9
  $gl-alert-padding-x: var(--gl-alert-padding-x, 0px);
10
+ $gl-alert-top-border-size: 2px;
11
+
12
+ @mixin gl-alert-variant(
13
+ $variant,
14
+ $background-color,
15
+ $title-color,
16
+ $border-top-color,
17
+ $border-bottom-color,
18
+ $icon-color
19
+ ) {
20
+ .gl-alert-#{$variant} {
21
+ background-color: $background-color;
22
+ border-bottom: 1px solid $border-bottom-color;
23
+
24
+ &::before {
25
+ background: linear-gradient(to right, transparent 0%, $border-top-color 50%, transparent 100%);
26
+ }
27
+
28
+ .gl-alert-title {
29
+ color: $title-color;
30
+ }
31
+
32
+ @media (forced-colors: none) {
33
+ .gl-alert-icon {
34
+ color: $icon-color;
35
+ }
36
+ }
37
+ }
38
+ }
10
39
 
11
40
  .gl-alert {
12
41
  @include gl-font-base;
@@ -15,7 +44,17 @@ $gl-alert-padding-x: var(--gl-alert-padding-x, 0px);
15
44
  @include gl-py-5;
16
45
 
17
46
  @media (forced-colors: active) {
18
- border: 1px solid;
47
+ border: 1px solid transparent;
48
+ }
49
+
50
+ &::before {
51
+ content: "";
52
+ display: block;
53
+ width: 100%;
54
+ height: $gl-alert-top-border-size;
55
+ position: absolute;
56
+ top: -1px; // To accumilate for the border width
57
+ left: 0;
19
58
  }
20
59
 
21
60
  &-not-dismissible {
@@ -80,46 +119,53 @@ $gl-alert-padding-x: var(--gl-alert-padding-x, 0px);
80
119
  // This is the replacement for .gl-alert-dismiss
81
120
  .gl-dismiss-btn {
82
121
  position: absolute;
83
- top: $gl-spacing-scale-4;
122
+ top: calc(#{$gl-spacing-scale-4} + #{$gl-alert-top-border-size});
84
123
  right: calc(#{$gl-spacing-scale-4} + #{$gl-alert-padding-x});
85
124
  }
86
125
 
87
- .gl-alert-danger {
88
- background-color: var(--gl-feedback-danger-background-color);
89
-
90
- .gl-alert-icon {
91
- color: var(--gl-feedback-danger-icon-color);
92
- }
93
- }
94
-
95
- .gl-alert-warning {
96
- background-color: var(--gl-feedback-warning-background-color);
97
-
98
- .gl-alert-icon {
99
- color: var(--gl-feedback-warning-icon-color);
100
- }
101
- }
102
-
103
- .gl-alert-tip {
104
- background-color: var(--gl-feedback-neutral-background-color);
105
-
106
- .gl-alert-icon {
107
- color: var(--gl-feedback-neutral-icon-color);
108
- }
109
- }
110
-
111
- .gl-alert-info {
112
- background-color: var(--gl-feedback-info-background-color);
113
-
114
- .gl-alert-icon {
115
- color: var(--gl-feedback-info-icon-color);
116
- }
117
- }
118
-
119
- .gl-alert-success {
120
- background-color: var(--gl-feedback-success-background-color);
121
-
122
- .gl-alert-icon {
123
- color: var(--gl-feedback-success-icon-color);
124
- }
125
- }
126
+ /* Variants */
127
+
128
+ @include gl-alert-variant(
129
+ $variant: danger,
130
+ $background-color: var(--gl-alert-danger-background-color),
131
+ $title-color: var(--gl-alert-danger-title-color),
132
+ $border-top-color: var(--gl-alert-danger-border-top-color),
133
+ $border-bottom-color: var(--gl-alert-danger-border-bottom-color),
134
+ $icon-color: var(--gl-feedback-danger-icon-color),
135
+ );
136
+
137
+ @include gl-alert-variant(
138
+ $variant: warning,
139
+ $background-color: var(--gl-alert-warning-background-color),
140
+ $title-color: var(--gl-alert-warning-title-color),
141
+ $border-top-color: var(--gl-alert-warning-border-top-color),
142
+ $border-bottom-color: var(--gl-alert-warning-border-bottom-color),
143
+ $icon-color: var(--gl-feedback-warning-icon-color),
144
+ );
145
+
146
+ @include gl-alert-variant(
147
+ $variant: tip,
148
+ $background-color: var(--gl-alert-neutral-background-color),
149
+ $title-color: var(--gl-alert-neutral-title-color),
150
+ $border-top-color: var(--gl-alert-neutral-border-top-color),
151
+ $border-bottom-color: var(--gl-alert-neutral-border-bottom-color),
152
+ $icon-color: var(--gl-feedback-neutral-icon-color),
153
+ );
154
+
155
+ @include gl-alert-variant(
156
+ $variant: info,
157
+ $background-color: var(--gl-alert-info-background-color),
158
+ $title-color: var(--gl-alert-info-title-color),
159
+ $border-top-color: var(--gl-alert-info-border-top-color),
160
+ $border-bottom-color: var(--gl-alert-info-border-bottom-color),
161
+ $icon-color: var(--gl-feedback-info-icon-color),
162
+ );
163
+
164
+ @include gl-alert-variant(
165
+ $variant: success,
166
+ $background-color: var(--gl-alert-success-background-color),
167
+ $title-color: var(--gl-alert-success-title-color),
168
+ $border-top-color: var(--gl-alert-success-border-top-color),
169
+ $border-bottom-color: var(--gl-alert-success-border-bottom-color),
170
+ $icon-color: var(--gl-feedback-success-icon-color),
171
+ );
@@ -1,6 +1,6 @@
1
1
  .gl-banner {
2
2
  background-color: var(--gl-banner-promo-background-color);
3
- border-color: var(--gl-border-color-default);
3
+ border-color: var(--gl-banner-promo-border-color);
4
4
  }
5
5
 
6
6
  .gl-banner-illustration {
@@ -5,11 +5,7 @@
5
5
 
6
6
  label {
7
7
  @include gl-font-weight-bold;
8
- }
9
-
10
- .gl-datepicker-input {
11
- @apply gl-border-gray-100;
12
- @include gl-text-gray-900;
8
+ color: var(--gl-text-color-strong);
13
9
  }
14
10
 
15
11
  .gl-daterange-picker-indicator {
@@ -17,8 +13,8 @@
17
13
  @include gl-flex-direction-row;
18
14
  @include gl-align-items-center;
19
15
  @include gl-align-self-end;
20
- @include gl-text-gray-500;
21
16
  @include gl-gap-3;
22
17
  @include gl-h-7;
18
+ color: var(--gl-text-color-subtle);
23
19
  }
24
20
  }
@@ -332,7 +332,14 @@ export default {
332
332
  >
333
333
  <!-- @slot Content to display for days selected. The value is -1 when no date range is selected.-->
334
334
  <slot v-bind="{ daysSelected: numberOfDays }"></slot>
335
- <gl-icon v-if="tooltip" v-gl-tooltip name="information-o" :title="tooltip" :size="16" />
335
+ <gl-icon
336
+ v-if="tooltip"
337
+ v-gl-tooltip
338
+ name="information-o"
339
+ :title="tooltip"
340
+ :size="16"
341
+ variant="info"
342
+ />
336
343
  </div>
337
344
  </div>
338
345
  </template>
@@ -1,29 +1,34 @@
1
1
  .gl-tabs-nav {
2
- @apply gl-border-solid gl-border-gray-100 gl-border-0 gl-border-b-1;
2
+ @apply gl-border-b;
3
3
  }
4
4
 
5
5
  .gl-tab-nav-item {
6
6
  position: relative;
7
- @include gl-text-gray-900;
8
7
  @include gl-px-4;
9
8
  @include gl-py-5;
10
9
  @include gl-line-height-normal;
11
10
  @include gl-font-base;
12
11
  @include gl-display-flex;
13
12
  @include gl-justify-content-center;
14
- @include gl-overflow-hidden;
15
- transition: box-shadow $gl-transition-duration-medium $gl-easing-out-cubic,
16
- border-radius $gl-transition-duration-fast $gl-easing-out-cubic;
13
+ @apply gl-border;
14
+ @include gl-action-neutral-colors;
15
+ transition:
16
+ box-shadow $gl-transition-duration-medium $gl-easing-out-cubic,
17
+ background-color $gl-transition-duration-medium $gl-easing-out-cubic,
18
+ border-radius $gl-transition-duration-fast $gl-easing-out-cubic;
17
19
 
18
20
  &::before {
19
21
  content: '';
20
22
  position: absolute;
21
- bottom: 0;
22
- width: 100%;
23
23
  border-bottom: $gl-border-size-2 solid transparent;
24
24
  translate: 0 $gl-border-size-2;
25
- transition: border-bottom $gl-transition-duration-medium $gl-easing-out-cubic,
26
- translate $gl-transition-duration-medium $gl-easing-out-cubic;
25
+ transition:
26
+ border-bottom $gl-transition-duration-medium $gl-easing-out-cubic,
27
+ translate $gl-transition-duration-medium $gl-easing-out-cubic;
28
+ //offsets the bottom border from the parent border
29
+ bottom: -$gl-border-size-1;
30
+ left: -$gl-border-size-1;
31
+ right: -$gl-border-size-1;
27
32
  }
28
33
 
29
34
  @media (prefers-reduced-motion: reduce) {
@@ -32,12 +37,8 @@
32
37
  }
33
38
  }
34
39
 
35
- &:hover {
36
- @include gl-text-gray-900;
37
- }
38
-
39
40
  &:hover:not(.gl-tab-nav-item-active)::before {
40
- border-bottom-color: $gray-200;
41
+ border-bottom-color: var(--gl-border-color-strong);
41
42
  translate: 0;
42
43
  }
43
44
 
@@ -48,7 +49,7 @@
48
49
  &.disabled {
49
50
  @include gl-pointer-events-auto;
50
51
  @include gl-cursor-not-allowed;
51
- @include gl-text-gray-400;
52
+ color: var(--gl-action-disabled-foreground-color);
52
53
 
53
54
  &:hover {
54
55
  @include gl-shadow-none;
@@ -65,23 +66,38 @@
65
66
  @include gl-py-3;
66
67
  @include gl-font-base;
67
68
  @include gl-line-height-normal;
68
- @include gl-text-gray-900;
69
+ color: var(--gl-text-color-default);
69
70
  }
70
71
 
71
72
  .gl-tab-nav-item-active {
72
73
  @include gl-font-weight-bold;
73
- @include gl-text-gray-900;
74
74
  z-index: 1;
75
75
 
76
76
  &:active,
77
77
  &:focus,
78
78
  &:focus:active {
79
- @include gl-outline-none;
80
- @include gl-focus;
79
+ @include gl-focus($color: var(--gl-action-neutral-border-color-active));
80
+
81
+ .gl-scrollable-tabs-nav & {
82
+ @include gl-focus($inset: true);
83
+
84
+ &::before {
85
+ border-radius: 0 0 $gl-border-size-1 $gl-border-size-1;
86
+ left: $gl-border-size-3;
87
+ right: $gl-border-size-3;
88
+ bottom: $gl-border-size-3;
89
+ }
90
+ }
91
+
92
+ &::before {
93
+ border-radius: 0 0 $gl-border-size-2 $gl-border-size-2;
94
+ left: 0;
95
+ right: 0;
96
+ }
81
97
  }
82
98
 
83
99
  &::before {
84
- border-bottom-color: $blue-500;
100
+ border-bottom-color: var(--gl-tab-selected-indicator-color-default);
85
101
  translate: 0;
86
102
  }
87
103
  }
@@ -121,25 +137,23 @@
121
137
  @include gl-w-8;
122
138
  bottom: 0;
123
139
  position: sticky;
124
- @include gl-text-gray-500;
125
140
  @include gl-p-2;
126
141
  }
127
142
 
128
143
  .gl-tabs-fade-left {
129
144
  left: 0;
130
- @include gl-bg-gradient-blur(left, $white);
145
+ @include gl-bg-gradient-blur(left, var(--gl-background-color-default));
131
146
  }
132
147
 
133
148
  .gl-tabs-fade-right {
134
149
  right: 0;
135
- @include gl-bg-gradient-blur(right, $white);
150
+ @include gl-bg-gradient-blur(right, var(--gl-background-color-default));
136
151
  }
137
152
 
138
153
  .gl-tabs-fade-icon-button {
139
- @include gl-bg-transparent;
140
- @apply gl-border-none;
154
+ @apply gl-border;
155
+ @include gl-action-neutral-colors;
141
156
  @include gl-p-0;
142
- @include gl-text-gray-400;
143
157
  @include gl-h-full;
144
158
  }
145
159
 
@@ -9,7 +9,6 @@ import GlAlert from '../../../base/alert/alert.vue';
9
9
  import GlFormInputGroup from '../../../base/form/form_input_group/form_input_group.vue';
10
10
  import GlFormTextarea from '../../../base/form/form_textarea/form_textarea.vue';
11
11
  import GlForm from '../../../base/form/form.vue';
12
- import GlFormText from '../../../base/form/form_text/form_text.vue';
13
12
  import GlExperimentBadge from '../../experiment_badge/experiment_badge.vue';
14
13
  import { badgeTypes, badgeTypeValidator } from '../../experiment_badge/constants';
15
14
  import { SafeHtmlDirective as SafeHtml } from '../../../../directives/safe_html/safe_html';
@@ -55,7 +54,6 @@ export default {
55
54
  GlFormInputGroup,
56
55
  GlFormTextarea,
57
56
  GlForm,
58
- GlFormText,
59
57
  GlExperimentBadge,
60
58
  GlDuoChatLoader,
61
59
  GlDuoChatPredefinedPrompts,
@@ -602,11 +600,12 @@ export default {
602
600
  />
603
601
  </template>
604
602
  </gl-form-input-group>
605
- <gl-form-text
606
- class="gl-mt-3 gl-leading-20 gl-text-gray-400"
603
+ <p
604
+ class="gl-mb-0 gl-mt-3 gl-text-sm gl-leading-20 gl-text-subtle"
607
605
  data-testid="chat-legal-disclaimer"
608
- >{{ $options.i18n.CHAT_LEGAL_DISCLAIMER }}</gl-form-text
609
606
  >
607
+ {{ $options.i18n.CHAT_LEGAL_DISCLAIMER }}
608
+ </p>
610
609
  </gl-form>
611
610
  </footer>
612
611
  </aside>
@@ -197,3 +197,27 @@
197
197
  line-height: $gl-line-height-heading;
198
198
  }
199
199
  }
200
+
201
+ @mixin gl-action-neutral-colors {
202
+ color: var(--gl-action-neutral-foreground-color-default);
203
+ background-color: var(--gl-action-neutral-background-color-default);
204
+ border-color: var(--gl-action-neutral-border-color-default);
205
+
206
+ &:hover {
207
+ color: var(--gl-action-neutral-foreground-color-hover);
208
+ background-color: var(--gl-action-neutral-background-color-hover);
209
+ border-color: var(--gl-action-neutral-border-color-hover);
210
+ }
211
+
212
+ &:focus {
213
+ color: var(--gl-action-neutral-foreground-color-focus);
214
+ background-color: var(--gl-action-neutral-background-color-focus);
215
+ border-color: var(--gl-action-neutral-border-color-focus);
216
+ }
217
+
218
+ &:active {
219
+ color: var(--gl-action-neutral-foreground-color-active);
220
+ background-color: var(--gl-action-neutral-background-color-active);
221
+ border-color: var(--gl-action-neutral-border-color-active);
222
+ }
223
+ }
@@ -496,6 +496,7 @@
496
496
  --gl-control-background-color-concatenation: var(--gl-color-neutral-10); /* Used for the background of static content that prepends or appends a text input. */
497
497
  --gl-control-background-color-disabled: var(--gl-color-neutral-10); /* Used for disabled form control (checkbox, input, radio button, textarea) background. */
498
498
  --gl-control-background-color-default: var(--gl-color-neutral-0); /* Used for form control (input, radio button, checkbox, textarea) default background. */
499
+ --gl-tab-selected-indicator-color-default: var(--gl-color-blue-500); /* Used for the selected indicator of a tab. */
499
500
  --gl-spinner-segment-color-light: var(--gl-color-neutral-200); /* Used for the animated segment of a loading spinner on a dark background. */
500
501
  --gl-spinner-segment-color-default: var(--gl-color-neutral-700); /* Used for the animated segment of a loading spinner. */
501
502
  --gl-spinner-track-color-light: var(--gl-color-neutral-800); /* Used for the static track (background) of a loading spinner on a dark background. */
@@ -568,8 +569,9 @@
568
569
  --gl-button-default-primary-background-color-default: var(--gl-color-neutral-0); /* Used for the background of an default primary button in the default state. */
569
570
  --gl-button-default-primary-foreground-color-default: var(--gl-color-neutral-800); /* Used for the foreground of a default primary button in the default state. */
570
571
  --gl-breadcrumb-separator-color: var(--gl-color-neutral-400); /* Used for the breadcrumb level separator. */
571
- --gl-banner-promo-background-color: var(--gl-color-neutral-10); /* Used as background for the default banner type. */
572
- --gl-banner-intro-border-color: var(--gl-color-blue-300); /* Used to compliment the info banner. */
572
+ --gl-banner-promo-border-color: var(--gl-color-purple-100); /* Used for the border of a promo banner. */
573
+ --gl-banner-promo-background-color: var(--gl-color-purple-50); /* Used for the background of a promo banner. */
574
+ --gl-banner-intro-border-color: var(--gl-color-blue-100); /* Used for the border of an info banner. */
573
575
  --gl-badge-tier-icon-color-active: var(--gl-color-purple-900); /* Used for the icon of a tier related badge in the active state. */
574
576
  --gl-badge-tier-icon-color-hover: var(--gl-color-purple-800); /* Used for the icon of a tier related badge in the hover state. */
575
577
  --gl-badge-tier-icon-color-default: var(--gl-color-purple-700); /* Used for the icon of a tier related badge when static or the default state when linked. */
@@ -662,6 +664,16 @@
662
664
  --gl-avatar-fallback-text-color-red: var(--gl-color-red-800); /* Red text color for avatar fallback with no particular meaning. */
663
665
  --gl-avatar-border-color-hover: var(--gl-color-alpha-dark-24); /* Used to increase the edge definition of an avatar in the hover state. */
664
666
  --gl-avatar-border-color-default: var(--gl-color-alpha-dark-8); /* Used to define the edge of an avatar. */
667
+ --gl-alert-danger-border-bottom-color: var(--gl-color-alpha-0); /* Used for the border bottom color of a danger alert. */
668
+ --gl-alert-danger-border-top-color: var(--gl-color-alpha-0); /* Used for the border color of a danger alert. */
669
+ --gl-alert-warning-border-bottom-color: var(--gl-color-alpha-0); /* Used for the border bottom color of a warning alert. */
670
+ --gl-alert-warning-border-top-color: var(--gl-color-alpha-0); /* Used for the border color of a warning alert. */
671
+ --gl-alert-success-border-bottom-color: var(--gl-color-alpha-0); /* Used for the border bottom color of a success alert. */
672
+ --gl-alert-success-border-top-color: var(--gl-color-alpha-0); /* Used for the border color of a success alert. */
673
+ --gl-alert-info-border-bottom-color: var(--gl-color-alpha-0); /* Used for the border bottom color of an info alert. */
674
+ --gl-alert-info-border-top-color: var(--gl-color-alpha-0); /* Used for the border color of an info alert. */
675
+ --gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /* Used for the border bottom color of a neutral alert. */
676
+ --gl-alert-neutral-border-top-color: var(--gl-color-alpha-0); /* Used for the border center color of a neutral alert. */
665
677
  --gl-border-color-transparent: var(--gl-color-alpha-0); /* Used when a border needs to be present, but not visibly perceived. */
666
678
  --gl-border-color-strong: var(--gl-color-neutral-400); /* Used for a distinct border that emphasizes an edge or boundaries. */
667
679
  --gl-border-color-subtle: var(--gl-color-neutral-50); /* Used for a subtle border in combination with the default background. */
@@ -766,6 +778,16 @@
766
778
  --gl-badge-muted-icon-color-focus: var(--gl-badge-muted-icon-color-hover); /* Used for the icon of a muted badge in the focus state. */
767
779
  --gl-badge-muted-text-color-focus: var(--gl-badge-muted-text-color-hover); /* Used for the text of a muted badge in the focus state. */
768
780
  --gl-badge-muted-background-color-hover: var(--gl-badge-muted-background-color-default); /* Used for the background of a muted badge in the hover state. */
781
+ --gl-alert-danger-background-color: var(--gl-feedback-danger-background-color); /* Used for the background color of a danger alert. */
782
+ --gl-alert-danger-title-color: var(--gl-text-color-heading); /* Used for the title color of a danger alert. */
783
+ --gl-alert-warning-background-color: var(--gl-feedback-warning-background-color); /* Used for the background color of a warning alert. */
784
+ --gl-alert-warning-title-color: var(--gl-text-color-heading); /* Used for the title color of a warning alert. */
785
+ --gl-alert-success-background-color: var(--gl-feedback-success-background-color); /* Used for the background color of a success alert. */
786
+ --gl-alert-success-title-color: var(--gl-text-color-heading); /* Used for the title color of a success alert. */
787
+ --gl-alert-info-background-color: var(--gl-feedback-info-background-color); /* Used for the background color of an info alert. */
788
+ --gl-alert-info-title-color: var(--gl-text-color-heading); /* Used for the title color of an info alert. */
789
+ --gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /* Used for the background color of a neutral alert. */
790
+ --gl-alert-neutral-title-color: var(--gl-text-color-heading); /* Used for the title color of a neutral alert. */
769
791
  --gl-action-strong-neutral-border-color-hover: var(--gl-action-strong-neutral-border-color-default); /* Used for the border of a strong neutral action in the hover state. */
770
792
  --gl-action-strong-neutral-foreground-color-hover: var(--gl-action-strong-neutral-foreground-color-default); /* Used for the foreground of a strong neutral action in the hover state. */
771
793
  --gl-action-strong-neutral-background-color-focus: var(--gl-action-strong-neutral-background-color-hover); /* Used for the background of a strong neutral action in the focus state. */