@gitlab/ui 123.6.1 → 123.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.
- package/dist/components/base/filtered_search/filtered_search.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_suggestion.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_suggestion_list.js +2 -1
- package/dist/components/base/filtered_search/filtered_search_term.js +10 -1
- package/dist/components/base/filtered_search/filtered_search_token.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +5 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/css/tokens.dark.css +29 -29
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +1047 -4206
- package/dist/tokens/docs/tokens-tailwind-docs.json +1047 -4206
- package/dist/tokens/figma/constants.tokens.json +212 -62
- package/dist/tokens/json/tokens.dark.json +516 -2082
- package/dist/tokens/json/tokens.json +516 -2082
- package/dist/tokens/scss/_tokens.dark.scss +29 -29
- package/package.json +1 -1
- package/src/components/base/filtered_search/filtered_search.vue +1 -1
- package/src/components/base/filtered_search/filtered_search_suggestion.vue +0 -2
- package/src/components/base/filtered_search/filtered_search_suggestion_list.vue +2 -0
- package/src/components/base/filtered_search/filtered_search_term.vue +12 -1
- package/src/components/base/filtered_search/filtered_search_token.vue +1 -1
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +36 -15
- package/src/tokens/build/css/tokens.dark.css +29 -29
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +1047 -4206
- package/src/tokens/build/docs/tokens-tailwind-docs.json +1047 -4206
- package/src/tokens/build/figma/constants.tokens.json +212 -62
- package/src/tokens/build/json/tokens.dark.json +516 -2082
- package/src/tokens/build/json/tokens.json +516 -2082
- package/src/tokens/build/scss/_tokens.dark.scss +29 -29
- package/src/tokens/constant/border.tokens.json +4 -10
- package/src/tokens/constant/line_height.tokens.json +40 -10
- package/src/tokens/constant/shadow.tokens.json +44 -11
- package/src/tokens/constant/spacing_scale.tokens.json +124 -31
|
@@ -294,6 +294,16 @@ $gl-avatar-fallback-background-color-blue: #9dc7f13d; // Blue background for ava
|
|
|
294
294
|
$gl-avatar-fallback-background-color-green: #91d4a83d; // Green background for avatar fallback with no particular meaning.
|
|
295
295
|
$gl-avatar-fallback-background-color-orange: #e9be743d; // Orange background for avatar fallback with no particular meaning.
|
|
296
296
|
$gl-avatar-fallback-background-color-neutral: #bfbfc33d; // Neutral background for avatar fallback with no particular meaning.
|
|
297
|
+
$gl-button-default-primary-background-color-default: rgba(137, 136, 141, 0.4); // Used for the background of an default primary button in the default state.
|
|
298
|
+
$gl-button-default-primary-background-color-hover: rgba(137, 136, 141, 0.64); // Used for the background of an default primary button in the hover state.
|
|
299
|
+
$gl-button-default-primary-background-color-active: rgba(137, 136, 141, 0.32); // Used for the background of an default primary button in the active state.
|
|
300
|
+
$gl-button-confirm-secondary-background-color-default: rgba(66, 143, 220, 0.4); // Used for the background of an outlined confirm (positive) button in the default state.
|
|
301
|
+
$gl-button-confirm-secondary-background-color-hover: rgba(66, 143, 220, 0.64); // Used for the background of an outlined confirm (positive) button in the hover state.
|
|
302
|
+
$gl-button-confirm-secondary-background-color-active: rgba(66, 143, 220, 0.32); // Used for the background of an outlined confirm (positive) button in the active state.
|
|
303
|
+
$gl-button-danger-secondary-background-color-default: rgba(236, 89, 65, 0.40); // Used for the background of an outlined danger (destructive) button in the default state.
|
|
304
|
+
$gl-button-danger-secondary-background-color-hover: rgba(236, 89, 65, 0.64); // Used for the background of an outlined danger (destructive) button in the hover state.
|
|
305
|
+
$gl-button-danger-secondary-background-color-active: rgba(236, 89, 65, 0.32); // Used for the background of an outlined danger (destructive) button in the active state.
|
|
306
|
+
$gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); // Used for the background of a disabled button.
|
|
297
307
|
$gl-chart-threshold-area-color: rgba(221,43,14,0.1); // Used in charts to delineate a threshold area in a chart.
|
|
298
308
|
$gl-illustration-stroke-color-default: #e3e3e8; // Default stroke color to define shape and provide essential detail.
|
|
299
309
|
$gl-illustration-stroke-width-default: 1.5; // Default stroke width to define shape and provide essential detail.
|
|
@@ -556,6 +566,7 @@ $gl-action-confirm-background-color-active: rgba(66, 143, 220, 0.16); // Used fo
|
|
|
556
566
|
$gl-action-danger-background-color-default: rgba(236, 89, 65, 0.0); // Used for the background of a danger (destructive) action in the default state.
|
|
557
567
|
$gl-action-danger-background-color-hover: rgba(236, 89, 65, 0.4); // Used for the background of a danger (destructive) action in the hover state.
|
|
558
568
|
$gl-action-danger-background-color-active: rgba(236, 89, 65, 0.16); // Used for the background of a danger (destructive) action in the active state.
|
|
569
|
+
$gl-background-color-overlay: rgba(0,0,0,0.64); // Used for an overlay that covers other content.
|
|
559
570
|
$gl-text-primary: #ececef; // Use text.color.default instead.
|
|
560
571
|
$gl-text-secondary: #89888d; // Use text.color.subtle instead.
|
|
561
572
|
$gl-text-tertiary: #737278; // Use text.color.disabled instead.
|
|
@@ -574,12 +585,16 @@ $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to
|
|
|
574
585
|
$gl-shadow-color-default: $gl-color-alpha-dark-40; // Used for the default shadow color.
|
|
575
586
|
$gl-alert-neutral-border-top-color: $gl-color-neutral-400; // Used for the border center color of a neutral alert.
|
|
576
587
|
$gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
|
|
588
|
+
$gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
|
|
577
589
|
$gl-alert-info-border-top-color: $gl-color-blue-400; // Used for the border color of an info alert.
|
|
578
590
|
$gl-alert-info-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of an info alert.
|
|
591
|
+
$gl-alert-success-title-color: $gl-color-green-300; // Used for the title color of a success alert.
|
|
579
592
|
$gl-alert-success-border-top-color: $gl-color-green-400; // Used for the border color of a success alert.
|
|
580
593
|
$gl-alert-success-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a success alert.
|
|
594
|
+
$gl-alert-warning-title-color: $gl-color-orange-300; // Used for the title color of a warning alert.
|
|
581
595
|
$gl-alert-warning-border-top-color: $gl-color-orange-400; // Used for the border color of a warning alert.
|
|
582
596
|
$gl-alert-warning-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a warning alert.
|
|
597
|
+
$gl-alert-danger-title-color: $gl-color-red-300; // Used for the title color of a danger alert.
|
|
583
598
|
$gl-alert-danger-border-top-color: $gl-color-red-400; // Used for the border color of a danger alert.
|
|
584
599
|
$gl-alert-danger-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a danger alert.
|
|
585
600
|
$gl-avatar-border-color-default: $gl-color-alpha-light-8; // Used to define the edge of an avatar.
|
|
@@ -719,9 +734,7 @@ $gl-broadcast-banner-text-color-lightindigo: $gl-color-neutral-0; // Used for th
|
|
|
719
734
|
$gl-broadcast-banner-text-color-lightred: $gl-color-neutral-0; // Used for the text for the lightred banner type.
|
|
720
735
|
$gl-broadcast-banner-text-color-red: $gl-color-neutral-0; // Used for the text for the red banner type.
|
|
721
736
|
$gl-button-default-primary-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a default primary button in the default state.
|
|
722
|
-
$gl-button-default-primary-background-color-
|
|
723
|
-
$gl-button-default-primary-background-color-hover: rgba(137, 136, 141, 0.64); // Used for the background of an default primary button in the hover state.
|
|
724
|
-
$gl-button-default-primary-background-color-active: rgba(137, 136, 141, 0.32); // Used for the background of an default primary button in the active state.
|
|
737
|
+
$gl-button-default-primary-background-color-focus: $gl-button-default-primary-background-color-hover; // Used for the background of an default primary button in the focus state.
|
|
725
738
|
$gl-button-default-primary-border-color-default: $gl-color-alpha-0; // Used for the border of an default primary button in the default state.
|
|
726
739
|
$gl-button-default-primary-border-color-hover: $gl-color-alpha-0; // Used for the border of an default primary button in the hover state.
|
|
727
740
|
$gl-button-default-primary-border-color-active: $gl-color-alpha-0; // Used for the border of an default primary button in the active state.
|
|
@@ -735,9 +748,7 @@ $gl-button-confirm-primary-border-color-active: $gl-color-alpha-0; // Used for t
|
|
|
735
748
|
$gl-button-confirm-secondary-foreground-color-default: $gl-color-blue-100; // Used for the foreground of a confirm (positive) button in the default state.
|
|
736
749
|
$gl-button-confirm-secondary-foreground-color-hover: $gl-color-blue-100; // Used for the foreground of a confirm (positive) button in the hover state.
|
|
737
750
|
$gl-button-confirm-secondary-foreground-color-active: $gl-color-blue-100; // Used for the foreground of a confirm (positive) button in the active state.
|
|
738
|
-
$gl-button-confirm-secondary-background-color-
|
|
739
|
-
$gl-button-confirm-secondary-background-color-hover: rgba(66, 143, 220, 0.64); // Used for the background of an outlined confirm (positive) button in the hover state.
|
|
740
|
-
$gl-button-confirm-secondary-background-color-active: rgba(66, 143, 220, 0.32); // Used for the background of an outlined confirm (positive) button in the active state.
|
|
751
|
+
$gl-button-confirm-secondary-background-color-focus: $gl-button-confirm-secondary-background-color-hover; // Used for the background of an outlined confirm (positive) button in the focus state.
|
|
741
752
|
$gl-button-confirm-secondary-border-color-default: $gl-color-alpha-0; // Used for the border of an outlined confirm (positive) button in the default state.
|
|
742
753
|
$gl-button-confirm-secondary-border-color-hover: $gl-color-alpha-0; // Used for the border of an outlined confirm (positive) button in the hover state.
|
|
743
754
|
$gl-button-confirm-secondary-border-color-active: $gl-color-alpha-0; // Used for the border of an outlined confirm (positive) button in the active state.
|
|
@@ -754,9 +765,7 @@ $gl-button-danger-primary-border-color-active: $gl-color-alpha-0; // Used for th
|
|
|
754
765
|
$gl-button-danger-secondary-foreground-color-default: $gl-color-red-100; // Used for the foreground of a danger (destructive) button in the default state.
|
|
755
766
|
$gl-button-danger-secondary-foreground-color-hover: $gl-color-red-50; // Used for the foreground of a danger (destructive) button in the hover state.
|
|
756
767
|
$gl-button-danger-secondary-foreground-color-active: $gl-color-red-50; // Used for the foreground of a danger (destructive) button in the active state.
|
|
757
|
-
$gl-button-danger-secondary-background-color-
|
|
758
|
-
$gl-button-danger-secondary-background-color-hover: rgba(236, 89, 65, 0.64); // Used for the background of an outlined danger (destructive) button in the hover state.
|
|
759
|
-
$gl-button-danger-secondary-background-color-active: rgba(236, 89, 65, 0.32); // Used for the background of an outlined danger (destructive) button in the active state.
|
|
768
|
+
$gl-button-danger-secondary-background-color-focus: $gl-button-danger-secondary-background-color-hover; // Used for the background of an outlined danger (destructive) button in the focus state.
|
|
760
769
|
$gl-button-danger-secondary-border-color-default: $gl-color-alpha-0; // Used for the border of an outlined danger (destructive) button in the default state.
|
|
761
770
|
$gl-button-danger-secondary-border-color-hover: $gl-color-alpha-0; // Used for the border of an outlined danger (destructive) button in the hover state.
|
|
762
771
|
$gl-button-danger-secondary-border-color-active: $gl-color-alpha-0; // Used for the border of an outlined danger (destructive) button in the active state.
|
|
@@ -765,12 +774,18 @@ $gl-button-danger-tertiary-background-color-hover: $gl-action-danger-background-
|
|
|
765
774
|
$gl-button-danger-tertiary-background-color-active: $gl-action-danger-background-color-active; // Used for the background of a borderless, tertiary danger (destructive) button in the active state.
|
|
766
775
|
$gl-button-dashed-border-color-default: $gl-color-neutral-400; // Used for the border of a dashed button in the default state.
|
|
767
776
|
$gl-button-dashed-border-color-active: $gl-color-neutral-300; // Used for the border of a dashed button in the active state.
|
|
777
|
+
$gl-button-selected-foreground-color-default: $gl-color-neutral-900; // Used for the foreground of a selected button in the default state.
|
|
778
|
+
$gl-button-selected-foreground-color-hover: $gl-color-neutral-950; // Used for the foreground of a selected button in the hover state.
|
|
779
|
+
$gl-button-selected-foreground-color-focus: $gl-color-neutral-950; // Used for the foreground of a selected button in the focus state.
|
|
780
|
+
$gl-button-selected-foreground-color-active: $gl-color-neutral-950; // Used for the foreground of a selected button in the active state.
|
|
768
781
|
$gl-button-selected-background-color-default: $gl-color-neutral-300; // Used for the background of a selected button in the default state.
|
|
782
|
+
$gl-button-selected-background-color-hover: $gl-color-neutral-200; // Used for the background of a selected button in the hover state.
|
|
783
|
+
$gl-button-selected-background-color-focus: $gl-color-neutral-200; // Used for the background of a selected button in the focus state.
|
|
784
|
+
$gl-button-selected-background-color-active: $gl-color-neutral-400; // Used for the background of a selected button in the active state.
|
|
769
785
|
$gl-button-selected-border-color-default: $gl-color-alpha-0; // Used for the border of a selected button in the default state.
|
|
770
786
|
$gl-button-selected-border-color-hover: $gl-color-alpha-0; // Used for the border of a selected button in the hover state.
|
|
771
787
|
$gl-button-selected-border-color-active: $gl-color-alpha-0; // Used for the border of a selected button in the active state.
|
|
772
788
|
$gl-button-disabled-foreground-color: $gl-color-neutral-400; // Used for the foreground of a disabled button.
|
|
773
|
-
$gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); // Used for the background of a disabled button.
|
|
774
789
|
$gl-button-disabled-border-color: $gl-color-alpha-0; // Used for the border of a disabled button.
|
|
775
790
|
$gl-button-count-background-color: $gl-color-alpha-light-16; // Used for the background of a button count element.
|
|
776
791
|
$gl-chart-axis-line-color: $gl-color-neutral-700; // Used in charts for axis line color.
|
|
@@ -845,6 +860,9 @@ $gl-action-strong-neutral-background-color-default: $gl-color-neutral-700; // Us
|
|
|
845
860
|
$gl-action-strong-neutral-background-color-hover: $gl-color-neutral-600; // Used for the background of a strong neutral action in the hover state.
|
|
846
861
|
$gl-action-strong-neutral-background-color-active: $gl-color-neutral-500; // Used for the background of a strong neutral action in the active state.
|
|
847
862
|
$gl-action-strong-neutral-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a strong neutral action in the default state.
|
|
863
|
+
$gl-action-strong-neutral-foreground-color-hover: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the hover state.
|
|
864
|
+
$gl-action-strong-neutral-foreground-color-focus: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the focus state.
|
|
865
|
+
$gl-action-strong-neutral-foreground-color-active: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the active state.
|
|
848
866
|
$gl-action-strong-neutral-border-color-default: $gl-color-alpha-0; // Used for the border of a strong neutral action in the default state.
|
|
849
867
|
$gl-background-color-default: $gl-color-neutral-950; // Used for the default background color.
|
|
850
868
|
$gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
|
|
@@ -852,7 +870,6 @@ $gl-background-color-strong: $gl-color-neutral-800; // Used to make the backgrou
|
|
|
852
870
|
$gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
|
|
853
871
|
$gl-background-color-overlap: $gl-color-neutral-900; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
|
|
854
872
|
$gl-background-color-section: $gl-color-neutral-800; // Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes.
|
|
855
|
-
$gl-background-color-overlay: rgba(0,0,0,0.64); // Used for an overlay that covers other content.
|
|
856
873
|
$gl-control-background-color-default: $gl-color-alpha-dark-40; // Used for form control (input, radio button, checkbox, textarea) default background.
|
|
857
874
|
$gl-control-background-color-disabled: $gl-color-alpha-light-4; // Used for disabled form control (checkbox, input, radio button, textarea) background.
|
|
858
875
|
$gl-control-background-color-concatenation: $gl-color-alpha-light-4; // Used for the background of static content that prepends or appends a text input.
|
|
@@ -929,14 +946,10 @@ $gl-shadow-md: 0 0 1px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-defaul
|
|
|
929
946
|
$gl-shadow-lg: 0 0 2px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 4px 12px $gl-shadow-color-default; // Used for large surfaces that present additional context to the user.
|
|
930
947
|
$gl-alert-border-radius: $gl-border-radius-lg; // Used for alert border radius.
|
|
931
948
|
$gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
|
|
932
|
-
$gl-alert-neutral-background-color: $gl-
|
|
933
|
-
$gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
|
|
949
|
+
$gl-alert-neutral-background-color: $gl-background-color-subtle; // Used for the background color of a neutral alert.
|
|
934
950
|
$gl-alert-info-background-color: $gl-background-color-subtle; // Used for the background color of an info alert.
|
|
935
|
-
$gl-alert-success-title-color: $gl-color-green-300; // Used for the title color of a success alert.
|
|
936
951
|
$gl-alert-success-background-color: $gl-background-color-subtle; // Used for the background color of a success alert.
|
|
937
|
-
$gl-alert-warning-title-color: $gl-color-orange-300; // Used for the title color of a warning alert.
|
|
938
952
|
$gl-alert-warning-background-color: $gl-background-color-subtle; // Used for the background color of a warning alert.
|
|
939
|
-
$gl-alert-danger-title-color: $gl-color-red-300; // Used for the title color of a danger alert.
|
|
940
953
|
$gl-alert-danger-background-color: $gl-background-color-subtle; // Used for the background color of a danger alert.
|
|
941
954
|
$gl-badge-muted-background-color-hover: $gl-badge-muted-background-color-default; // Used for the background of a muted badge in the hover state.
|
|
942
955
|
$gl-badge-muted-text-color-focus: $gl-badge-muted-text-color-hover; // Used for the text of a muted badge in the focus state.
|
|
@@ -962,7 +975,6 @@ $gl-badge-tier-icon-color-focus: $gl-badge-tier-icon-color-hover; // Used for th
|
|
|
962
975
|
$gl-button-default-primary-foreground-color-hover: $gl-button-default-primary-foreground-color-default; // Used for the foreground of a default primary button in the hover state.
|
|
963
976
|
$gl-button-default-primary-foreground-color-focus: $gl-button-default-primary-foreground-color-default; // Used for the foreground of a default primary button in the focus state.
|
|
964
977
|
$gl-button-default-primary-foreground-color-active: $gl-button-default-primary-foreground-color-default; // Used for the foreground of a default primary button in the active state.
|
|
965
|
-
$gl-button-default-primary-background-color-focus: $gl-button-default-primary-background-color-hover; // Used for the background of an default primary button in the focus state.
|
|
966
978
|
$gl-button-default-primary-border-color-focus: $gl-button-default-primary-border-color-hover; // Used for the border of an default primary button in the focus state.
|
|
967
979
|
$gl-button-default-tertiary-foreground-color-default: $gl-action-neutral-foreground-color-default; // Used for the foreground of a default borderless, tertiary button in the default state.
|
|
968
980
|
$gl-button-default-tertiary-background-color-focus: $gl-action-neutral-background-color-focus; // Used for the background of a default borderless, tertiary button in the focus state.
|
|
@@ -972,7 +984,6 @@ $gl-button-confirm-primary-background-color-hover: $gl-action-strong-confirm-bac
|
|
|
972
984
|
$gl-button-confirm-primary-background-color-active: $gl-action-strong-confirm-background-color-active; // Used for the background of a confirm (positive) primary button in the active state.
|
|
973
985
|
$gl-button-confirm-primary-border-color-focus: $gl-button-confirm-primary-border-color-hover; // Used for the border of a confirm (positive) primary button in the focus state.
|
|
974
986
|
$gl-button-confirm-secondary-foreground-color-focus: $gl-button-confirm-secondary-foreground-color-hover; // Used for the foreground of a confirm (positive) button in the focus state.
|
|
975
|
-
$gl-button-confirm-secondary-background-color-focus: $gl-button-confirm-secondary-background-color-hover; // Used for the background of an outlined confirm (positive) button in the focus state.
|
|
976
987
|
$gl-button-confirm-secondary-border-color-focus: $gl-button-confirm-secondary-border-color-hover; // Used for the border of an outlined confirm (positive) button in the focus state.
|
|
977
988
|
$gl-button-confirm-tertiary-foreground-color-default: $gl-action-confirm-foreground-color-default; // Used for the foreground of a borderless, tertiary confirm (positive) button in the default state.
|
|
978
989
|
$gl-button-confirm-tertiary-foreground-color-hover: $gl-action-confirm-foreground-color-hover; // Used for the foreground of a borderless, tertiary confirm (positive) button in the hover state.
|
|
@@ -985,7 +996,6 @@ $gl-button-danger-primary-foreground-color-active: $gl-button-danger-primary-for
|
|
|
985
996
|
$gl-button-danger-primary-background-color-focus: $gl-button-danger-primary-background-color-hover; // Used for the background of a danger (destructive) primary button in the focus state.
|
|
986
997
|
$gl-button-danger-primary-border-color-focus: $gl-button-danger-primary-border-color-hover; // Used for the border of a danger (destructive) primary button in the focus state.
|
|
987
998
|
$gl-button-danger-secondary-foreground-color-focus: $gl-button-danger-secondary-foreground-color-hover; // Used for the foreground of a danger (destructive) button in the focus state.
|
|
988
|
-
$gl-button-danger-secondary-background-color-focus: $gl-button-danger-secondary-background-color-hover; // Used for the background of an outlined danger (destructive) button in the focus state.
|
|
989
999
|
$gl-button-danger-secondary-border-color-focus: $gl-button-danger-secondary-border-color-hover; // Used for the border of an outlined danger (destructive) button in the focus state.
|
|
990
1000
|
$gl-button-danger-tertiary-foreground-color-default: $gl-action-danger-foreground-color-default; // Used for the foreground of a borderless, tertiary danger (destructive) button in the default state.
|
|
991
1001
|
$gl-button-danger-tertiary-foreground-color-hover: $gl-action-danger-foreground-color-hover; // Used for the foreground of a borderless, tertiary danger (destructive) button in the hover state.
|
|
@@ -995,9 +1005,6 @@ $gl-button-danger-tertiary-border-color-default: $gl-action-danger-border-color-
|
|
|
995
1005
|
$gl-button-dashed-border-color-hover: $gl-button-dashed-border-color-default; // Used for the border of a dashed button in the hover state.
|
|
996
1006
|
$gl-button-dashed-border-color-focus: $gl-button-dashed-border-color-default; // Used for the border of a dashed button in the focus state.
|
|
997
1007
|
$gl-button-link-text-color-default: $gl-text-color-link; // Used for the text of a link button in the default state.
|
|
998
|
-
$gl-button-selected-foreground-color-default: $gl-color-neutral-900; // Used for the foreground of a selected button in the default state.
|
|
999
|
-
$gl-button-selected-background-color-hover: $gl-color-neutral-200; // Used for the background of a selected button in the hover state.
|
|
1000
|
-
$gl-button-selected-background-color-active: $gl-color-neutral-400; // Used for the background of a selected button in the active state.
|
|
1001
1008
|
$gl-button-selected-border-color-focus: $gl-button-selected-border-color-hover; // Used for the border of a selected button in the focus state.
|
|
1002
1009
|
$gl-chart-axis-text-color: $gl-text-color-subtle; // Used in charts for the text color of axis titles and labels.
|
|
1003
1010
|
$gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
|
|
@@ -1050,7 +1057,6 @@ $gl-action-strong-confirm-background-color-focus: $gl-action-strong-confirm-back
|
|
|
1050
1057
|
$gl-action-strong-confirm-foreground-color-hover: $gl-action-strong-confirm-foreground-color-default; // Used for the foreground of a strong confirm action in the hover state.
|
|
1051
1058
|
$gl-action-strong-confirm-border-color-hover: $gl-action-strong-confirm-border-color-default; // Used for the border of a strong confirm action in the hover state.
|
|
1052
1059
|
$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.
|
|
1053
|
-
$gl-action-strong-neutral-foreground-color-hover: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the hover state.
|
|
1054
1060
|
$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.
|
|
1055
1061
|
$gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
|
|
1056
1062
|
$gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
|
|
@@ -1092,10 +1098,6 @@ $gl-button-danger-tertiary-border-color-active: $gl-action-danger-border-color-a
|
|
|
1092
1098
|
$gl-button-link-text-color-hover: $gl-button-link-text-color-default; // Used for the text of a link button in the hover state.
|
|
1093
1099
|
$gl-button-link-text-color-focus: $gl-button-link-text-color-default; // Used for the text of a link button in the focus state.
|
|
1094
1100
|
$gl-button-link-text-color-active: $gl-button-link-text-color-default; // Used for the text of a link button in the active state.
|
|
1095
|
-
$gl-button-selected-foreground-color-hover: $gl-color-neutral-950; // Used for the foreground of a selected button in the hover state.
|
|
1096
|
-
$gl-button-selected-foreground-color-focus: $gl-color-neutral-950; // Used for the foreground of a selected button in the focus state.
|
|
1097
|
-
$gl-button-selected-foreground-color-active: $gl-color-neutral-950; // Used for the foreground of a selected button in the active state.
|
|
1098
|
-
$gl-button-selected-background-color-focus: $gl-color-neutral-200; // Used for the background of a selected button in the focus state.
|
|
1099
1101
|
$gl-card-border-radius: $gl-border-radius-default; // Used for card border radius.
|
|
1100
1102
|
$gl-chart-axis-pointer-color: $gl-icon-color-subtle; // Used in charts for the color of the reference line and axis value under mouse pointer.
|
|
1101
1103
|
$gl-chart-zoom-handle-color: $gl-icon-color-subtle; // Used in charts for the handle color when zooming in on a specific area of data.
|
|
@@ -1110,7 +1112,6 @@ $gl-action-selected-foreground-color-focus: $gl-action-selected-foreground-color
|
|
|
1110
1112
|
$gl-action-selected-border-color-focus: $gl-action-selected-background-color-focus; // Used for the border of a selected action in the focus state.
|
|
1111
1113
|
$gl-action-strong-confirm-foreground-color-focus: $gl-action-strong-confirm-foreground-color-hover; // Used for the foreground of a strong confirm action in the focus state.
|
|
1112
1114
|
$gl-action-strong-confirm-border-color-focus: $gl-action-strong-confirm-border-color-hover; // Used for the border of a strong confirm action in the focus state.
|
|
1113
|
-
$gl-action-strong-neutral-foreground-color-focus: $gl-action-strong-neutral-foreground-color-hover; // Used for the foreground of a strong neutral action in the focus state.
|
|
1114
1115
|
$gl-action-strong-neutral-border-color-focus: $gl-action-strong-neutral-border-color-hover; // Used for the border of a strong neutral action in the focus state.
|
|
1115
1116
|
$gl-control-border-radius: $gl-border-radius-default; // Used for form control (input, radio button, checkbox, textarea) default border radius.
|
|
1116
1117
|
$gl-button-border-radius: $gl-action-border-radius; // Used for button border radius.
|
|
@@ -1118,6 +1119,5 @@ $gl-button-confirm-primary-foreground-color-focus: $gl-action-strong-confirm-for
|
|
|
1118
1119
|
$gl-action-selected-foreground-color-active: $gl-action-selected-foreground-color-focus; // Used for the foreground of a selected action in the active state.
|
|
1119
1120
|
$gl-action-strong-confirm-foreground-color-active: $gl-action-strong-confirm-foreground-color-focus; // Used for the foreground of a strong confirm action in the active state.
|
|
1120
1121
|
$gl-action-strong-confirm-border-color-active: $gl-action-strong-confirm-border-color-focus; // Used for the border of a strong confirm action in the active state.
|
|
1121
|
-
$gl-action-strong-neutral-foreground-color-active: $gl-action-strong-neutral-foreground-color-focus; // Used for the foreground of a strong neutral action in the active state.
|
|
1122
1122
|
$gl-action-strong-neutral-border-color-active: $gl-action-strong-neutral-border-color-focus; // Used for the border of a strong neutral action in the active state.
|
|
1123
1123
|
$gl-button-confirm-primary-foreground-color-active: $gl-action-strong-confirm-foreground-color-active; // Used for the foreground of a confirm (positive) primary button in the active state.
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ export default {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// eslint-disable-next-line no-underscore-dangle
|
|
73
|
-
const isOk = Array.isArray(value) && value.every(({ token }) => token.__v_skip);
|
|
73
|
+
const isOk = Array.isArray(value) && value.every(({ token }) => !token || token.__v_skip);
|
|
74
74
|
if (!isOk) {
|
|
75
75
|
// eslint-disable-next-line no-console
|
|
76
76
|
console.warn(
|
|
@@ -55,14 +55,12 @@ export default {
|
|
|
55
55
|
|
|
56
56
|
<template>
|
|
57
57
|
<li
|
|
58
|
-
role="presentation"
|
|
59
58
|
class="gl-dropdown-item gl-filtered-search-suggestion"
|
|
60
59
|
:class="{ 'gl-filtered-search-suggestion-active': isActive }"
|
|
61
60
|
>
|
|
62
61
|
<button
|
|
63
62
|
data-testid="filtered-search-suggestion"
|
|
64
63
|
tabindex="-1"
|
|
65
|
-
role="menuitem"
|
|
66
64
|
class="dropdown-item"
|
|
67
65
|
@mousedown.prevent="emitValue"
|
|
68
66
|
>
|
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
) {
|
|
98
98
|
// The user wants to move past the end of the list, so ensure nothing is selected.
|
|
99
99
|
this.activeIdx = NO_ACTIVE_ITEM;
|
|
100
|
+
this.$refs.top.scrollIntoView();
|
|
100
101
|
} else {
|
|
101
102
|
const index =
|
|
102
103
|
this.activeIdx === DEFER_TO_INITIAL_VALUE
|
|
@@ -116,6 +117,7 @@ export default {
|
|
|
116
117
|
</script>
|
|
117
118
|
<template>
|
|
118
119
|
<ul :class="listClasses">
|
|
120
|
+
<li ref="top"></li>
|
|
119
121
|
<!-- @slot The suggestions (implemented with GlFilteredSearchSuggestion). -->
|
|
120
122
|
<slot></slot>
|
|
121
123
|
</ul>
|
|
@@ -104,7 +104,18 @@ export default {
|
|
|
104
104
|
return [];
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
const tokens = this.availableTokens.filter((token) =>
|
|
107
|
+
const tokens = this.availableTokens.filter((token) => {
|
|
108
|
+
if (typeof token.match === 'function') {
|
|
109
|
+
return token.match.call(null, {
|
|
110
|
+
query: this.value.data,
|
|
111
|
+
title: token.title,
|
|
112
|
+
defaultMatcher: match,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return match(token.title, this.value.data);
|
|
117
|
+
});
|
|
118
|
+
|
|
108
119
|
if (this.termsAsTokens() && this.value.data) {
|
|
109
120
|
tokens.push({
|
|
110
121
|
...termTokenDefinition,
|
|
@@ -344,7 +344,7 @@ export default {
|
|
|
344
344
|
|
|
345
345
|
<gl-filtered-search-token-segment
|
|
346
346
|
key="title-segment"
|
|
347
|
-
:value="config.title"
|
|
347
|
+
:value="config.segmentTitle || config.title"
|
|
348
348
|
:active="isSegmentActive($options.segments.SEGMENT_TITLE)"
|
|
349
349
|
:cursor-position="intendedCursorPosition"
|
|
350
350
|
:options="availableTokensWithSelf"
|
|
@@ -330,6 +330,10 @@ export default {
|
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
|
|
333
|
+
showHeader(option) {
|
|
334
|
+
return option.value?.toString().startsWith('gl-filtered-search-suggestion-group-');
|
|
335
|
+
},
|
|
336
|
+
|
|
333
337
|
handleInputKeydown(e) {
|
|
334
338
|
const { key } = e;
|
|
335
339
|
const { suggestions, input } = this.$refs;
|
|
@@ -450,25 +454,42 @@ export default {
|
|
|
450
454
|
v-if="hasOptionsOrSuggestions"
|
|
451
455
|
:key="`operator-${_uid}`"
|
|
452
456
|
ref="suggestions"
|
|
457
|
+
role="list"
|
|
458
|
+
tabindex="0"
|
|
453
459
|
:initial-value="defaultSuggestedValue"
|
|
454
460
|
@suggestion="applySuggestion"
|
|
455
461
|
>
|
|
456
462
|
<template v-if="options">
|
|
457
|
-
<
|
|
458
|
-
v-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
{{ option
|
|
469
|
-
</
|
|
470
|
-
</
|
|
471
|
-
|
|
463
|
+
<template v-for="(option, idx) in options">
|
|
464
|
+
<template v-if="showHeader(option)">
|
|
465
|
+
<li v-if="idx > 0" :key="`separator-${idx}`">
|
|
466
|
+
<hr class="gl-border-t -gl-mx-2 gl-my-2" />
|
|
467
|
+
</li>
|
|
468
|
+
<li
|
|
469
|
+
:key="`header-${idx}`"
|
|
470
|
+
role="presentation"
|
|
471
|
+
data-testid="filtered-search-section-header"
|
|
472
|
+
class="gl-mx-0 gl-pb-2 gl-pl-5 gl-pt-3 gl-text-sm gl-font-bold gl-text-strong"
|
|
473
|
+
>
|
|
474
|
+
{{ option.title }}
|
|
475
|
+
</li>
|
|
476
|
+
</template>
|
|
477
|
+
<gl-filtered-search-suggestion
|
|
478
|
+
v-else
|
|
479
|
+
:key="`${option.value}-${idx}`"
|
|
480
|
+
:value="option.value"
|
|
481
|
+
:icon-name="option.icon"
|
|
482
|
+
>
|
|
483
|
+
<slot name="option" v-bind="{ option }">
|
|
484
|
+
<template v-if="option.component">
|
|
485
|
+
<component :is="option.component" :option="option" />
|
|
486
|
+
</template>
|
|
487
|
+
<template v-else>
|
|
488
|
+
{{ option[optionTextField] }}
|
|
489
|
+
</template>
|
|
490
|
+
</slot>
|
|
491
|
+
</gl-filtered-search-suggestion>
|
|
492
|
+
</template>
|
|
472
493
|
</template>
|
|
473
494
|
|
|
474
495
|
<slot v-else name="suggestions"></slot>
|
|
@@ -296,6 +296,16 @@
|
|
|
296
296
|
--gl-avatar-fallback-background-color-green: #91d4a83d; /** Green background for avatar fallback with no particular meaning. */
|
|
297
297
|
--gl-avatar-fallback-background-color-orange: #e9be743d; /** Orange background for avatar fallback with no particular meaning. */
|
|
298
298
|
--gl-avatar-fallback-background-color-neutral: #bfbfc33d; /** Neutral background for avatar fallback with no particular meaning. */
|
|
299
|
+
--gl-button-default-primary-background-color-default: rgba(137, 136, 141, 0.4); /** Used for the background of an default primary button in the default state. */
|
|
300
|
+
--gl-button-default-primary-background-color-hover: rgba(137, 136, 141, 0.64); /** Used for the background of an default primary button in the hover state. */
|
|
301
|
+
--gl-button-default-primary-background-color-active: rgba(137, 136, 141, 0.32); /** Used for the background of an default primary button in the active state. */
|
|
302
|
+
--gl-button-confirm-secondary-background-color-default: rgba(66, 143, 220, 0.4); /** Used for the background of an outlined confirm (positive) button in the default state. */
|
|
303
|
+
--gl-button-confirm-secondary-background-color-hover: rgba(66, 143, 220, 0.64); /** Used for the background of an outlined confirm (positive) button in the hover state. */
|
|
304
|
+
--gl-button-confirm-secondary-background-color-active: rgba(66, 143, 220, 0.32); /** Used for the background of an outlined confirm (positive) button in the active state. */
|
|
305
|
+
--gl-button-danger-secondary-background-color-default: rgba(236, 89, 65, 0.40); /** Used for the background of an outlined danger (destructive) button in the default state. */
|
|
306
|
+
--gl-button-danger-secondary-background-color-hover: rgba(236, 89, 65, 0.64); /** Used for the background of an outlined danger (destructive) button in the hover state. */
|
|
307
|
+
--gl-button-danger-secondary-background-color-active: rgba(236, 89, 65, 0.32); /** Used for the background of an outlined danger (destructive) button in the active state. */
|
|
308
|
+
--gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); /** Used for the background of a disabled button. */
|
|
299
309
|
--gl-chart-threshold-area-color: rgba(221,43,14,0.1); /** Used in charts to delineate a threshold area in a chart. */
|
|
300
310
|
--gl-illustration-stroke-color-default: #e3e3e8; /** Default stroke color to define shape and provide essential detail. */
|
|
301
311
|
--gl-illustration-stroke-width-default: 1.5; /** Default stroke width to define shape and provide essential detail. */
|
|
@@ -558,6 +568,7 @@
|
|
|
558
568
|
--gl-action-danger-background-color-default: rgba(236, 89, 65, 0.0); /** Used for the background of a danger (destructive) action in the default state. */
|
|
559
569
|
--gl-action-danger-background-color-hover: rgba(236, 89, 65, 0.4); /** Used for the background of a danger (destructive) action in the hover state. */
|
|
560
570
|
--gl-action-danger-background-color-active: rgba(236, 89, 65, 0.16); /** Used for the background of a danger (destructive) action in the active state. */
|
|
571
|
+
--gl-background-color-overlay: rgba(0,0,0,0.64); /** Used for an overlay that covers other content. */
|
|
561
572
|
--gl-text-primary: #ececef; /** Use text.color.default instead. */
|
|
562
573
|
--gl-text-secondary: #89888d; /** Use text.color.subtle instead. */
|
|
563
574
|
--gl-text-tertiary: #737278; /** Use text.color.disabled instead. */
|
|
@@ -576,12 +587,16 @@
|
|
|
576
587
|
--gl-shadow-color-default: var(--gl-color-alpha-dark-40); /** Used for the default shadow color. */
|
|
577
588
|
--gl-alert-neutral-border-top-color: var(--gl-color-neutral-400); /** Used for the border center color of a neutral alert. */
|
|
578
589
|
--gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a neutral alert. */
|
|
590
|
+
--gl-alert-info-title-color: var(--gl-color-blue-300); /** Used for the title color of an info alert. */
|
|
579
591
|
--gl-alert-info-border-top-color: var(--gl-color-blue-400); /** Used for the border color of an info alert. */
|
|
580
592
|
--gl-alert-info-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of an info alert. */
|
|
593
|
+
--gl-alert-success-title-color: var(--gl-color-green-300); /** Used for the title color of a success alert. */
|
|
581
594
|
--gl-alert-success-border-top-color: var(--gl-color-green-400); /** Used for the border color of a success alert. */
|
|
582
595
|
--gl-alert-success-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a success alert. */
|
|
596
|
+
--gl-alert-warning-title-color: var(--gl-color-orange-300); /** Used for the title color of a warning alert. */
|
|
583
597
|
--gl-alert-warning-border-top-color: var(--gl-color-orange-400); /** Used for the border color of a warning alert. */
|
|
584
598
|
--gl-alert-warning-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a warning alert. */
|
|
599
|
+
--gl-alert-danger-title-color: var(--gl-color-red-300); /** Used for the title color of a danger alert. */
|
|
585
600
|
--gl-alert-danger-border-top-color: var(--gl-color-red-400); /** Used for the border color of a danger alert. */
|
|
586
601
|
--gl-alert-danger-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a danger alert. */
|
|
587
602
|
--gl-avatar-border-color-default: var(--gl-color-alpha-light-8); /** Used to define the edge of an avatar. */
|
|
@@ -721,9 +736,7 @@
|
|
|
721
736
|
--gl-broadcast-banner-text-color-lightred: var(--gl-color-neutral-0); /** Used for the text for the lightred banner type. */
|
|
722
737
|
--gl-broadcast-banner-text-color-red: var(--gl-color-neutral-0); /** Used for the text for the red banner type. */
|
|
723
738
|
--gl-button-default-primary-foreground-color-default: var(--gl-color-neutral-50); /** Used for the foreground of a default primary button in the default state. */
|
|
724
|
-
--gl-button-default-primary-background-color-
|
|
725
|
-
--gl-button-default-primary-background-color-hover: rgba(137, 136, 141, 0.64); /** Used for the background of an default primary button in the hover state. */
|
|
726
|
-
--gl-button-default-primary-background-color-active: rgba(137, 136, 141, 0.32); /** Used for the background of an default primary button in the active state. */
|
|
739
|
+
--gl-button-default-primary-background-color-focus: var(--gl-button-default-primary-background-color-hover); /** Used for the background of an default primary button in the focus state. */
|
|
727
740
|
--gl-button-default-primary-border-color-default: var(--gl-color-alpha-0); /** Used for the border of an default primary button in the default state. */
|
|
728
741
|
--gl-button-default-primary-border-color-hover: var(--gl-color-alpha-0); /** Used for the border of an default primary button in the hover state. */
|
|
729
742
|
--gl-button-default-primary-border-color-active: var(--gl-color-alpha-0); /** Used for the border of an default primary button in the active state. */
|
|
@@ -737,9 +750,7 @@
|
|
|
737
750
|
--gl-button-confirm-secondary-foreground-color-default: var(--gl-color-blue-100); /** Used for the foreground of a confirm (positive) button in the default state. */
|
|
738
751
|
--gl-button-confirm-secondary-foreground-color-hover: var(--gl-color-blue-100); /** Used for the foreground of a confirm (positive) button in the hover state. */
|
|
739
752
|
--gl-button-confirm-secondary-foreground-color-active: var(--gl-color-blue-100); /** Used for the foreground of a confirm (positive) button in the active state. */
|
|
740
|
-
--gl-button-confirm-secondary-background-color-
|
|
741
|
-
--gl-button-confirm-secondary-background-color-hover: rgba(66, 143, 220, 0.64); /** Used for the background of an outlined confirm (positive) button in the hover state. */
|
|
742
|
-
--gl-button-confirm-secondary-background-color-active: rgba(66, 143, 220, 0.32); /** Used for the background of an outlined confirm (positive) button in the active state. */
|
|
753
|
+
--gl-button-confirm-secondary-background-color-focus: var(--gl-button-confirm-secondary-background-color-hover); /** Used for the background of an outlined confirm (positive) button in the focus state. */
|
|
743
754
|
--gl-button-confirm-secondary-border-color-default: var(--gl-color-alpha-0); /** Used for the border of an outlined confirm (positive) button in the default state. */
|
|
744
755
|
--gl-button-confirm-secondary-border-color-hover: var(--gl-color-alpha-0); /** Used for the border of an outlined confirm (positive) button in the hover state. */
|
|
745
756
|
--gl-button-confirm-secondary-border-color-active: var(--gl-color-alpha-0); /** Used for the border of an outlined confirm (positive) button in the active state. */
|
|
@@ -756,9 +767,7 @@
|
|
|
756
767
|
--gl-button-danger-secondary-foreground-color-default: var(--gl-color-red-100); /** Used for the foreground of a danger (destructive) button in the default state. */
|
|
757
768
|
--gl-button-danger-secondary-foreground-color-hover: var(--gl-color-red-50); /** Used for the foreground of a danger (destructive) button in the hover state. */
|
|
758
769
|
--gl-button-danger-secondary-foreground-color-active: var(--gl-color-red-50); /** Used for the foreground of a danger (destructive) button in the active state. */
|
|
759
|
-
--gl-button-danger-secondary-background-color-
|
|
760
|
-
--gl-button-danger-secondary-background-color-hover: rgba(236, 89, 65, 0.64); /** Used for the background of an outlined danger (destructive) button in the hover state. */
|
|
761
|
-
--gl-button-danger-secondary-background-color-active: rgba(236, 89, 65, 0.32); /** Used for the background of an outlined danger (destructive) button in the active state. */
|
|
770
|
+
--gl-button-danger-secondary-background-color-focus: var(--gl-button-danger-secondary-background-color-hover); /** Used for the background of an outlined danger (destructive) button in the focus state. */
|
|
762
771
|
--gl-button-danger-secondary-border-color-default: var(--gl-color-alpha-0); /** Used for the border of an outlined danger (destructive) button in the default state. */
|
|
763
772
|
--gl-button-danger-secondary-border-color-hover: var(--gl-color-alpha-0); /** Used for the border of an outlined danger (destructive) button in the hover state. */
|
|
764
773
|
--gl-button-danger-secondary-border-color-active: var(--gl-color-alpha-0); /** Used for the border of an outlined danger (destructive) button in the active state. */
|
|
@@ -767,12 +776,18 @@
|
|
|
767
776
|
--gl-button-danger-tertiary-background-color-active: var(--gl-action-danger-background-color-active); /** Used for the background of a borderless, tertiary danger (destructive) button in the active state. */
|
|
768
777
|
--gl-button-dashed-border-color-default: var(--gl-color-neutral-400); /** Used for the border of a dashed button in the default state. */
|
|
769
778
|
--gl-button-dashed-border-color-active: var(--gl-color-neutral-300); /** Used for the border of a dashed button in the active state. */
|
|
779
|
+
--gl-button-selected-foreground-color-default: var(--gl-color-neutral-900); /** Used for the foreground of a selected button in the default state. */
|
|
780
|
+
--gl-button-selected-foreground-color-hover: var(--gl-color-neutral-950); /** Used for the foreground of a selected button in the hover state. */
|
|
781
|
+
--gl-button-selected-foreground-color-focus: var(--gl-color-neutral-950); /** Used for the foreground of a selected button in the focus state. */
|
|
782
|
+
--gl-button-selected-foreground-color-active: var(--gl-color-neutral-950); /** Used for the foreground of a selected button in the active state. */
|
|
770
783
|
--gl-button-selected-background-color-default: var(--gl-color-neutral-300); /** Used for the background of a selected button in the default state. */
|
|
784
|
+
--gl-button-selected-background-color-hover: var(--gl-color-neutral-200); /** Used for the background of a selected button in the hover state. */
|
|
785
|
+
--gl-button-selected-background-color-focus: var(--gl-color-neutral-200); /** Used for the background of a selected button in the focus state. */
|
|
786
|
+
--gl-button-selected-background-color-active: var(--gl-color-neutral-400); /** Used for the background of a selected button in the active state. */
|
|
771
787
|
--gl-button-selected-border-color-default: var(--gl-color-alpha-0); /** Used for the border of a selected button in the default state. */
|
|
772
788
|
--gl-button-selected-border-color-hover: var(--gl-color-alpha-0); /** Used for the border of a selected button in the hover state. */
|
|
773
789
|
--gl-button-selected-border-color-active: var(--gl-color-alpha-0); /** Used for the border of a selected button in the active state. */
|
|
774
790
|
--gl-button-disabled-foreground-color: var(--gl-color-neutral-400); /** Used for the foreground of a disabled button. */
|
|
775
|
-
--gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); /** Used for the background of a disabled button. */
|
|
776
791
|
--gl-button-disabled-border-color: var(--gl-color-alpha-0); /** Used for the border of a disabled button. */
|
|
777
792
|
--gl-button-count-background-color: var(--gl-color-alpha-light-16); /** Used for the background of a button count element. */
|
|
778
793
|
--gl-chart-axis-line-color: var(--gl-color-neutral-700); /** Used in charts for axis line color. */
|
|
@@ -847,6 +862,9 @@
|
|
|
847
862
|
--gl-action-strong-neutral-background-color-hover: var(--gl-color-neutral-600); /** Used for the background of a strong neutral action in the hover state. */
|
|
848
863
|
--gl-action-strong-neutral-background-color-active: var(--gl-color-neutral-500); /** Used for the background of a strong neutral action in the active state. */
|
|
849
864
|
--gl-action-strong-neutral-foreground-color-default: var(--gl-color-neutral-50); /** Used for the foreground of a strong neutral action in the default state. */
|
|
865
|
+
--gl-action-strong-neutral-foreground-color-hover: var(--gl-color-neutral-0); /** Used for the foreground of a strong neutral action in the hover state. */
|
|
866
|
+
--gl-action-strong-neutral-foreground-color-focus: var(--gl-color-neutral-0); /** Used for the foreground of a strong neutral action in the focus state. */
|
|
867
|
+
--gl-action-strong-neutral-foreground-color-active: var(--gl-color-neutral-0); /** Used for the foreground of a strong neutral action in the active state. */
|
|
850
868
|
--gl-action-strong-neutral-border-color-default: var(--gl-color-alpha-0); /** Used for the border of a strong neutral action in the default state. */
|
|
851
869
|
--gl-background-color-default: var(--gl-color-neutral-950); /** Used for the default background color. */
|
|
852
870
|
--gl-background-color-subtle: var(--gl-color-neutral-900); /** Used to slightly differentiate the background from the default. */
|
|
@@ -854,7 +872,6 @@
|
|
|
854
872
|
--gl-background-color-disabled: var(--gl-color-neutral-900); /** Used to identify a disabled section. */
|
|
855
873
|
--gl-background-color-overlap: var(--gl-color-neutral-900); /** Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content. */
|
|
856
874
|
--gl-background-color-section: var(--gl-color-neutral-800); /** Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes. */
|
|
857
|
-
--gl-background-color-overlay: rgba(0,0,0,0.64); /** Used for an overlay that covers other content. */
|
|
858
875
|
--gl-control-background-color-default: var(--gl-color-alpha-dark-40); /** Used for form control (input, radio button, checkbox, textarea) default background. */
|
|
859
876
|
--gl-control-background-color-disabled: var(--gl-color-alpha-light-4); /** Used for disabled form control (checkbox, input, radio button, textarea) background. */
|
|
860
877
|
--gl-control-background-color-concatenation: var(--gl-color-alpha-light-4); /** Used for the background of static content that prepends or appends a text input. */
|
|
@@ -931,14 +948,10 @@
|
|
|
931
948
|
--gl-shadow-lg: 0 0 2px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 4px 12px var(--gl-shadow-color-default); /** Used for large surfaces that present additional context to the user. */
|
|
932
949
|
--gl-alert-border-radius: var(--gl-border-radius-lg); /** Used for alert border radius. */
|
|
933
950
|
--gl-alert-neutral-title-color: var(--gl-text-color-heading); /** Used for the title color of a neutral alert. */
|
|
934
|
-
--gl-alert-neutral-background-color: var(--gl-
|
|
935
|
-
--gl-alert-info-title-color: var(--gl-color-blue-300); /** Used for the title color of an info alert. */
|
|
951
|
+
--gl-alert-neutral-background-color: var(--gl-background-color-subtle); /** Used for the background color of a neutral alert. */
|
|
936
952
|
--gl-alert-info-background-color: var(--gl-background-color-subtle); /** Used for the background color of an info alert. */
|
|
937
|
-
--gl-alert-success-title-color: var(--gl-color-green-300); /** Used for the title color of a success alert. */
|
|
938
953
|
--gl-alert-success-background-color: var(--gl-background-color-subtle); /** Used for the background color of a success alert. */
|
|
939
|
-
--gl-alert-warning-title-color: var(--gl-color-orange-300); /** Used for the title color of a warning alert. */
|
|
940
954
|
--gl-alert-warning-background-color: var(--gl-background-color-subtle); /** Used for the background color of a warning alert. */
|
|
941
|
-
--gl-alert-danger-title-color: var(--gl-color-red-300); /** Used for the title color of a danger alert. */
|
|
942
955
|
--gl-alert-danger-background-color: var(--gl-background-color-subtle); /** Used for the background color of a danger alert. */
|
|
943
956
|
--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. */
|
|
944
957
|
--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. */
|
|
@@ -964,7 +977,6 @@
|
|
|
964
977
|
--gl-button-default-primary-foreground-color-hover: var(--gl-button-default-primary-foreground-color-default); /** Used for the foreground of a default primary button in the hover state. */
|
|
965
978
|
--gl-button-default-primary-foreground-color-focus: var(--gl-button-default-primary-foreground-color-default); /** Used for the foreground of a default primary button in the focus state. */
|
|
966
979
|
--gl-button-default-primary-foreground-color-active: var(--gl-button-default-primary-foreground-color-default); /** Used for the foreground of a default primary button in the active state. */
|
|
967
|
-
--gl-button-default-primary-background-color-focus: var(--gl-button-default-primary-background-color-hover); /** Used for the background of an default primary button in the focus state. */
|
|
968
980
|
--gl-button-default-primary-border-color-focus: var(--gl-button-default-primary-border-color-hover); /** Used for the border of an default primary button in the focus state. */
|
|
969
981
|
--gl-button-default-tertiary-foreground-color-default: var(--gl-action-neutral-foreground-color-default); /** Used for the foreground of a default borderless, tertiary button in the default state. */
|
|
970
982
|
--gl-button-default-tertiary-background-color-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of a default borderless, tertiary button in the focus state. */
|
|
@@ -974,7 +986,6 @@
|
|
|
974
986
|
--gl-button-confirm-primary-background-color-active: var(--gl-action-strong-confirm-background-color-active); /** Used for the background of a confirm (positive) primary button in the active state. */
|
|
975
987
|
--gl-button-confirm-primary-border-color-focus: var(--gl-button-confirm-primary-border-color-hover); /** Used for the border of a confirm (positive) primary button in the focus state. */
|
|
976
988
|
--gl-button-confirm-secondary-foreground-color-focus: var(--gl-button-confirm-secondary-foreground-color-hover); /** Used for the foreground of a confirm (positive) button in the focus state. */
|
|
977
|
-
--gl-button-confirm-secondary-background-color-focus: var(--gl-button-confirm-secondary-background-color-hover); /** Used for the background of an outlined confirm (positive) button in the focus state. */
|
|
978
989
|
--gl-button-confirm-secondary-border-color-focus: var(--gl-button-confirm-secondary-border-color-hover); /** Used for the border of an outlined confirm (positive) button in the focus state. */
|
|
979
990
|
--gl-button-confirm-tertiary-foreground-color-default: var(--gl-action-confirm-foreground-color-default); /** Used for the foreground of a borderless, tertiary confirm (positive) button in the default state. */
|
|
980
991
|
--gl-button-confirm-tertiary-foreground-color-hover: var(--gl-action-confirm-foreground-color-hover); /** Used for the foreground of a borderless, tertiary confirm (positive) button in the hover state. */
|
|
@@ -987,7 +998,6 @@
|
|
|
987
998
|
--gl-button-danger-primary-background-color-focus: var(--gl-button-danger-primary-background-color-hover); /** Used for the background of a danger (destructive) primary button in the focus state. */
|
|
988
999
|
--gl-button-danger-primary-border-color-focus: var(--gl-button-danger-primary-border-color-hover); /** Used for the border of a danger (destructive) primary button in the focus state. */
|
|
989
1000
|
--gl-button-danger-secondary-foreground-color-focus: var(--gl-button-danger-secondary-foreground-color-hover); /** Used for the foreground of a danger (destructive) button in the focus state. */
|
|
990
|
-
--gl-button-danger-secondary-background-color-focus: var(--gl-button-danger-secondary-background-color-hover); /** Used for the background of an outlined danger (destructive) button in the focus state. */
|
|
991
1001
|
--gl-button-danger-secondary-border-color-focus: var(--gl-button-danger-secondary-border-color-hover); /** Used for the border of an outlined danger (destructive) button in the focus state. */
|
|
992
1002
|
--gl-button-danger-tertiary-foreground-color-default: var(--gl-action-danger-foreground-color-default); /** Used for the foreground of a borderless, tertiary danger (destructive) button in the default state. */
|
|
993
1003
|
--gl-button-danger-tertiary-foreground-color-hover: var(--gl-action-danger-foreground-color-hover); /** Used for the foreground of a borderless, tertiary danger (destructive) button in the hover state. */
|
|
@@ -997,9 +1007,6 @@
|
|
|
997
1007
|
--gl-button-dashed-border-color-hover: var(--gl-button-dashed-border-color-default); /** Used for the border of a dashed button in the hover state. */
|
|
998
1008
|
--gl-button-dashed-border-color-focus: var(--gl-button-dashed-border-color-default); /** Used for the border of a dashed button in the focus state. */
|
|
999
1009
|
--gl-button-link-text-color-default: var(--gl-text-color-link); /** Used for the text of a link button in the default state. */
|
|
1000
|
-
--gl-button-selected-foreground-color-default: var(--gl-color-neutral-900); /** Used for the foreground of a selected button in the default state. */
|
|
1001
|
-
--gl-button-selected-background-color-hover: var(--gl-color-neutral-200); /** Used for the background of a selected button in the hover state. */
|
|
1002
|
-
--gl-button-selected-background-color-active: var(--gl-color-neutral-400); /** Used for the background of a selected button in the active state. */
|
|
1003
1010
|
--gl-button-selected-border-color-focus: var(--gl-button-selected-border-color-hover); /** Used for the border of a selected button in the focus state. */
|
|
1004
1011
|
--gl-chart-axis-text-color: var(--gl-text-color-subtle); /** Used in charts for the text color of axis titles and labels. */
|
|
1005
1012
|
--gl-datepicker-date-text-color-selected: var(--gl-control-indicator-color-selected); /** Used for the datepicker date text color state indicators. */
|
|
@@ -1052,7 +1059,6 @@
|
|
|
1052
1059
|
--gl-action-strong-confirm-foreground-color-hover: var(--gl-action-strong-confirm-foreground-color-default); /** Used for the foreground of a strong confirm action in the hover state. */
|
|
1053
1060
|
--gl-action-strong-confirm-border-color-hover: var(--gl-action-strong-confirm-border-color-default); /** Used for the border of a strong confirm action in the hover state. */
|
|
1054
1061
|
--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. */
|
|
1055
|
-
--gl-action-strong-neutral-foreground-color-hover: var(--gl-color-neutral-0); /** Used for the foreground of a strong neutral action in the hover state. */
|
|
1056
1062
|
--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. */
|
|
1057
1063
|
--gl-control-text-color-error: var(--gl-text-color-danger); /** Used for the helper text when the input is invalid. */
|
|
1058
1064
|
--gl-control-text-color-valid: var(--gl-text-color-success); /** Used for the helper text when the input is valid. */
|
|
@@ -1094,10 +1100,6 @@
|
|
|
1094
1100
|
--gl-button-link-text-color-hover: var(--gl-button-link-text-color-default); /** Used for the text of a link button in the hover state. */
|
|
1095
1101
|
--gl-button-link-text-color-focus: var(--gl-button-link-text-color-default); /** Used for the text of a link button in the focus state. */
|
|
1096
1102
|
--gl-button-link-text-color-active: var(--gl-button-link-text-color-default); /** Used for the text of a link button in the active state. */
|
|
1097
|
-
--gl-button-selected-foreground-color-hover: var(--gl-color-neutral-950); /** Used for the foreground of a selected button in the hover state. */
|
|
1098
|
-
--gl-button-selected-foreground-color-focus: var(--gl-color-neutral-950); /** Used for the foreground of a selected button in the focus state. */
|
|
1099
|
-
--gl-button-selected-foreground-color-active: var(--gl-color-neutral-950); /** Used for the foreground of a selected button in the active state. */
|
|
1100
|
-
--gl-button-selected-background-color-focus: var(--gl-color-neutral-200); /** Used for the background of a selected button in the focus state. */
|
|
1101
1103
|
--gl-card-border-radius: var(--gl-border-radius-default); /** Used for card border radius. */
|
|
1102
1104
|
--gl-chart-axis-pointer-color: var(--gl-icon-color-subtle); /** Used in charts for the color of the reference line and axis value under mouse pointer. */
|
|
1103
1105
|
--gl-chart-zoom-handle-color: var(--gl-icon-color-subtle); /** Used in charts for the handle color when zooming in on a specific area of data. */
|
|
@@ -1112,7 +1114,6 @@
|
|
|
1112
1114
|
--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. */
|
|
1113
1115
|
--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. */
|
|
1114
1116
|
--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. */
|
|
1115
|
-
--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. */
|
|
1116
1117
|
--gl-action-strong-neutral-border-color-focus: var(--gl-action-strong-neutral-border-color-hover); /** Used for the border of a strong neutral action in the focus state. */
|
|
1117
1118
|
--gl-control-border-radius: var(--gl-border-radius-default); /** Used for form control (input, radio button, checkbox, textarea) default border radius. */
|
|
1118
1119
|
--gl-button-border-radius: var(--gl-action-border-radius); /** Used for button border radius. */
|
|
@@ -1120,7 +1121,6 @@
|
|
|
1120
1121
|
--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. */
|
|
1121
1122
|
--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. */
|
|
1122
1123
|
--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. */
|
|
1123
|
-
--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. */
|
|
1124
1124
|
--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. */
|
|
1125
1125
|
--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. */
|
|
1126
1126
|
}
|