@gitlab/ui 89.1.0 → 89.3.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/CHANGELOG.md +20 -0
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +105 -101
- package/dist/tokens/build/js/tokens.js +15 -11
- package/dist/tokens/css/tokens.css +13 -9
- package/dist/tokens/css/tokens.dark.css +75 -71
- package/dist/tokens/js/tokens.dark.js +104 -100
- package/dist/tokens/js/tokens.js +14 -10
- package/dist/tokens/json/tokens.dark.json +265 -186
- package/dist/tokens/json/tokens.json +175 -96
- package/dist/tokens/scss/_tokens.dark.scss +75 -71
- package/dist/tokens/scss/_tokens.scss +13 -9
- package/dist/tokens/scss/_tokens_custom_properties.scss +4 -0
- package/dist/tokens/tailwind/tokens.cjs +1 -0
- package/package.json +3 -3
- package/src/components/base/badge/badge.scss +65 -32
- package/src/components/base/datepicker/datepicker.scss +7 -2
- package/src/components/base/toggle/toggle.scss +8 -5
- package/src/tokens/build/css/tokens.css +13 -9
- package/src/tokens/build/css/tokens.dark.css +75 -71
- package/src/tokens/build/js/tokens.dark.js +104 -100
- package/src/tokens/build/js/tokens.js +14 -10
- package/src/tokens/build/json/tokens.dark.json +265 -186
- package/src/tokens/build/json/tokens.json +175 -96
- package/src/tokens/build/scss/_tokens.dark.scss +75 -71
- package/src/tokens/build/scss/_tokens.scss +13 -9
- package/src/tokens/build/scss/_tokens_custom_properties.scss +4 -0
- package/src/tokens/build/tailwind/tokens.cjs +1 -0
- package/src/tokens/color.alpha.tokens.json +4 -0
- package/src/tokens/contextual/badge.tokens.json +69 -69
- package/src/tokens/contextual/datepicker.tokens.json +10 -0
- package/src/tokens/control.tokens.json +24 -17
|
@@ -404,6 +404,7 @@ $gl-color-alpha-light-8: rgba(255, 255, 255, 0.08);
|
|
|
404
404
|
$gl-color-alpha-light-6: rgba(255, 255, 255, 0.06);
|
|
405
405
|
$gl-color-alpha-light-4: rgba(255, 255, 255, 0.04);
|
|
406
406
|
$gl-color-alpha-light-2: rgba(255, 255, 255, 0.02);
|
|
407
|
+
$gl-color-alpha-dark-40: rgba(05, 05, 06, 0.4);
|
|
407
408
|
$gl-color-alpha-dark-24: rgba(05, 05, 06, 0.24);
|
|
408
409
|
$gl-color-alpha-dark-16: rgba(05, 05, 06, 0.16);
|
|
409
410
|
$gl-color-alpha-dark-8: rgba(05, 05, 06, 0.08);
|
|
@@ -477,23 +478,22 @@ $gl-feedback-strong-icon-color: $gl-color-neutral-900; // Used for an icon on a
|
|
|
477
478
|
$gl-feedback-strong-text-color: $gl-color-neutral-900; // Used for text on a strong feedback background.
|
|
478
479
|
$gl-feedback-strong-background-color: $gl-color-neutral-10; // Used for a background associated with strong feedback like a tooltip or toast message.
|
|
479
480
|
$gl-control-indicator-color-disabled: $gl-color-neutral-400; // Used for disabled checkbox and radio button state indicators.
|
|
480
|
-
$gl-control-indicator-color-selected: $gl-color-neutral-
|
|
481
|
-
$gl-control-placeholder-color: $gl-color-neutral-500; // Used for placeholder text within inputs.
|
|
482
|
-
$gl-control-text-color-valid: $gl-color-green-400; // Used for the helper text when the input is valid.
|
|
483
|
-
$gl-control-text-color-error: $gl-color-red-400; // Used for the helper text when the input is invalid.
|
|
481
|
+
$gl-control-indicator-color-selected: $gl-color-neutral-950; // Used for checkbox and radio button state indicators.
|
|
484
482
|
$gl-control-border-color-selected-focus: $gl-color-blue-200; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus.
|
|
485
483
|
$gl-control-border-color-selected-hover: $gl-color-blue-200; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on hover.
|
|
486
484
|
$gl-control-border-color-selected-default: $gl-color-blue-400; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border.
|
|
487
|
-
$gl-control-border-color-error: $gl-color-red-
|
|
485
|
+
$gl-control-border-color-error: $gl-color-red-300; // Used for invalid form control (input, textarea) border.
|
|
488
486
|
$gl-control-border-color-disabled: $gl-color-neutral-800; // Used for disabled form control (input, radio button, checkbox, textarea) border.
|
|
489
487
|
$gl-control-border-color-focus: $gl-color-neutral-50; // Used for form control (input, radio button, checkbox, textarea) border on focus.
|
|
490
488
|
$gl-control-border-color-hover: $gl-color-neutral-300; // Used for form control (input, radio button, checkbox, textarea) border on hover.
|
|
491
489
|
$gl-control-border-color-default: $gl-color-neutral-500; // Used for form control (input, radio button, checkbox, textarea) default border.
|
|
492
490
|
$gl-control-background-color-selected-focus: $gl-color-blue-200; // Used for checked and indeterminate (selected) form control (checkbox, radio button) background on hover.
|
|
493
491
|
$gl-control-background-color-selected-hover: $gl-color-blue-200; // Used for checked and indeterminate (selected) form control (checkbox, radio button) background on hover.
|
|
494
|
-
$gl-control-background-color-selected-default: $gl-color-blue-
|
|
495
|
-
$gl-control-background-color-
|
|
496
|
-
$gl-control-background-color-
|
|
492
|
+
$gl-control-background-color-selected-default: $gl-color-blue-300; // Used for checked and indeterminate (selected) form control (checkbox, radio button) background.
|
|
493
|
+
$gl-control-background-color-readonly: $gl-color-neutral-900; // Used for the background of static content that prepends or appends a text input.
|
|
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
|
+
$gl-control-background-color-disabled: $gl-color-alpha-light-4; // Used for disabled form control (checkbox, input, radio button, textarea) background.
|
|
496
|
+
$gl-control-background-color-default: $gl-color-alpha-dark-40; // Used for form control (input, radio button, checkbox, textarea) default background.
|
|
497
497
|
$gl-spinner-segment-color-light: $gl-color-neutral-200; // Used for the animated segment of a loading spinner on a dark background.
|
|
498
498
|
$gl-spinner-segment-color-default: $gl-color-neutral-200; // Used for the animated segment of a loading spinner.
|
|
499
499
|
$gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner on a dark background.
|
|
@@ -513,6 +513,7 @@ $gl-label-light-button-icon-color-default: $gl-color-neutral-950; // Used for th
|
|
|
513
513
|
$gl-label-light-button-background-color-hover: $gl-color-neutral-950; // Used for the label remove button background on a light background color in the hover state.
|
|
514
514
|
$gl-label-light-button-background-color-default: $gl-color-alpha-0; // Used for the label remove button background on a light background color in the default state.
|
|
515
515
|
$gl-label-light-text-color: $gl-color-neutral-950; // Used for the label text color on a light background color.
|
|
516
|
+
$gl-datepicker-background-color: $gl-color-neutral-900; // Used for the background color of datepicker.
|
|
516
517
|
$gl-button-disabled-border-color: $gl-color-neutral-800; // Used for the border of a disabled button.
|
|
517
518
|
$gl-button-disabled-background-color: $gl-color-neutral-950; // Used for the background of a disabled button.
|
|
518
519
|
$gl-button-disabled-foreground-color: $gl-color-neutral-400; // Used for the foreground of a disabled button.
|
|
@@ -571,90 +572,90 @@ $gl-button-default-primary-foreground-color-default: $gl-color-neutral-50; // Us
|
|
|
571
572
|
$gl-breadcrumb-separator-color: $gl-color-neutral-400; // Used for the breadcrumb level separator.
|
|
572
573
|
$gl-banner-promo-background-color: $gl-color-neutral-900; // Used as background for the default banner type.
|
|
573
574
|
$gl-banner-intro-border-color: $gl-color-blue-600; // Used to compliment the info banner.
|
|
574
|
-
$gl-badge-tier-icon-color-active: $gl-color-purple-
|
|
575
|
-
$gl-badge-tier-icon-color-hover: $gl-color-purple-
|
|
576
|
-
$gl-badge-tier-icon-color-default: $gl-color-purple-
|
|
577
|
-
$gl-badge-tier-text-color-active: $gl-color-purple-
|
|
578
|
-
$gl-badge-tier-text-color-hover: $gl-color-purple-
|
|
579
|
-
$gl-badge-tier-text-color-default: $gl-color-purple-
|
|
575
|
+
$gl-badge-tier-icon-color-active: $gl-color-purple-950; // Used for the icon of a tier related badge in the active state.
|
|
576
|
+
$gl-badge-tier-icon-color-hover: $gl-color-purple-950; // Used for the icon of a tier related badge in the hover state.
|
|
577
|
+
$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.
|
|
578
|
+
$gl-badge-tier-text-color-active: $gl-color-purple-950; // Used for the text of a tier related badge in the active state.
|
|
579
|
+
$gl-badge-tier-text-color-hover: $gl-color-purple-950; // Used for the text of a tier related badge in the hover state.
|
|
580
|
+
$gl-badge-tier-text-color-default: $gl-color-purple-950; // Used for the text of a tier related badge when static or the default state when linked.
|
|
580
581
|
$gl-badge-tier-border-color-active: $gl-color-alpha-0; // Used for the border of a tier related badge in the active state.
|
|
581
582
|
$gl-badge-tier-border-color-focus: $gl-color-alpha-0; // Used for the border of a tier related badge in the focus state.
|
|
582
|
-
$gl-badge-tier-border-color-hover: $gl-color-purple-
|
|
583
|
+
$gl-badge-tier-border-color-hover: $gl-color-purple-200; // Used for the border of a tier related badge in the hover state.
|
|
583
584
|
$gl-badge-tier-border-color-default: $gl-color-alpha-0; // Used for the border of a tier related badge when static or the default state when linked.
|
|
584
|
-
$gl-badge-tier-background-color-active: $gl-color-purple-
|
|
585
|
-
$gl-badge-tier-background-color-default: $gl-color-purple-
|
|
586
|
-
$gl-badge-danger-icon-color-active: $gl-color-red-
|
|
587
|
-
$gl-badge-danger-icon-color-hover: $gl-color-red-
|
|
588
|
-
$gl-badge-danger-icon-color-default: $gl-color-red-
|
|
589
|
-
$gl-badge-danger-text-color-active: $gl-color-red-
|
|
590
|
-
$gl-badge-danger-text-color-hover: $gl-color-red-
|
|
591
|
-
$gl-badge-danger-text-color-default: $gl-color-red-
|
|
585
|
+
$gl-badge-tier-background-color-active: $gl-color-purple-200; // Used for the background of a tier related badge in the active state.
|
|
586
|
+
$gl-badge-tier-background-color-default: $gl-color-purple-300; // Used for the background of a tier related badge when static or the default state when linked.
|
|
587
|
+
$gl-badge-danger-icon-color-active: $gl-color-red-950; // Used for the icon of a danger badge in the active state.
|
|
588
|
+
$gl-badge-danger-icon-color-hover: $gl-color-red-950; // Used for the icon of a danger badge in the hover state.
|
|
589
|
+
$gl-badge-danger-icon-color-default: $gl-color-red-950; // Used for the icon of a danger badge when static or the default state when linked.
|
|
590
|
+
$gl-badge-danger-text-color-active: $gl-color-red-950; // Used for the text of a danger badge in the active state.
|
|
591
|
+
$gl-badge-danger-text-color-hover: $gl-color-red-950; // Used for the text of a danger badge in the hover state.
|
|
592
|
+
$gl-badge-danger-text-color-default: $gl-color-red-950; // Used for the text of a danger badge when static or the default state when linked.
|
|
592
593
|
$gl-badge-danger-border-color-active: $gl-color-alpha-0; // Used for the border of a danger badge in the active state.
|
|
593
594
|
$gl-badge-danger-border-color-focus: $gl-color-alpha-0; // Used for the border of a danger badge in the focus state.
|
|
594
|
-
$gl-badge-danger-border-color-hover: $gl-color-red-
|
|
595
|
+
$gl-badge-danger-border-color-hover: $gl-color-red-200; // Used for the border of a danger badge in the hover state.
|
|
595
596
|
$gl-badge-danger-border-color-default: $gl-color-alpha-0; // Used for the border of a danger badge when static or the default state when linked.
|
|
596
|
-
$gl-badge-danger-background-color-active: $gl-color-red-
|
|
597
|
-
$gl-badge-danger-background-color-default: $gl-color-red-
|
|
598
|
-
$gl-badge-warning-icon-color-active: $gl-color-orange-
|
|
599
|
-
$gl-badge-warning-icon-color-hover: $gl-color-orange-
|
|
600
|
-
$gl-badge-warning-icon-color-default: $gl-color-orange-
|
|
601
|
-
$gl-badge-warning-text-color-active: $gl-color-orange-
|
|
602
|
-
$gl-badge-warning-text-color-hover: $gl-color-orange-
|
|
603
|
-
$gl-badge-warning-text-color-default: $gl-color-orange-
|
|
597
|
+
$gl-badge-danger-background-color-active: $gl-color-red-200; // Used for the background of a danger badge in the active state.
|
|
598
|
+
$gl-badge-danger-background-color-default: $gl-color-red-300; // Used for the background of a danger badge when static or the default state when linked.
|
|
599
|
+
$gl-badge-warning-icon-color-active: $gl-color-orange-950; // Used for the icon of a warning badge in the active state.
|
|
600
|
+
$gl-badge-warning-icon-color-hover: $gl-color-orange-950; // Used for the icon of a warning badge in the hover state.
|
|
601
|
+
$gl-badge-warning-icon-color-default: $gl-color-orange-950; // Used for the icon of a warning badge when static or the default state when linked.
|
|
602
|
+
$gl-badge-warning-text-color-active: $gl-color-orange-950; // Used for the text of a warning badge in the active state.
|
|
603
|
+
$gl-badge-warning-text-color-hover: $gl-color-orange-950; // Used for the text of a warning badge in the hover state.
|
|
604
|
+
$gl-badge-warning-text-color-default: $gl-color-orange-950; // Used for the text of a warning badge when static or the default state when linked.
|
|
604
605
|
$gl-badge-warning-border-color-active: $gl-color-alpha-0; // Used for the border of a warning badge in the active state.
|
|
605
606
|
$gl-badge-warning-border-color-focus: $gl-color-alpha-0; // Used for the border of a warning badge in the focus state.
|
|
606
|
-
$gl-badge-warning-border-color-hover: $gl-color-orange-
|
|
607
|
+
$gl-badge-warning-border-color-hover: $gl-color-orange-200; // Used for the border of a warning badge in the hover state.
|
|
607
608
|
$gl-badge-warning-border-color-default: $gl-color-alpha-0; // Used for the border of a warning badge when static or the default state when linked.
|
|
608
|
-
$gl-badge-warning-background-color-active: $gl-color-orange-
|
|
609
|
-
$gl-badge-warning-background-color-default: $gl-color-orange-
|
|
610
|
-
$gl-badge-success-icon-color-active: $gl-color-green-
|
|
611
|
-
$gl-badge-success-icon-color-hover: $gl-color-green-
|
|
612
|
-
$gl-badge-success-icon-color-default: $gl-color-green-
|
|
613
|
-
$gl-badge-success-text-color-active: $gl-color-green-
|
|
614
|
-
$gl-badge-success-text-color-hover: $gl-color-green-
|
|
615
|
-
$gl-badge-success-text-color-default: $gl-color-green-
|
|
609
|
+
$gl-badge-warning-background-color-active: $gl-color-orange-200; // Used for the background of a warning badge in the active state.
|
|
610
|
+
$gl-badge-warning-background-color-default: $gl-color-orange-300; // Used for the background of a warning badge when static or the default state when linked.
|
|
611
|
+
$gl-badge-success-icon-color-active: $gl-color-green-950; // Used for the icon of a success badge in the active state.
|
|
612
|
+
$gl-badge-success-icon-color-hover: $gl-color-green-950; // Used for the icon of a success badge in the hover state.
|
|
613
|
+
$gl-badge-success-icon-color-default: $gl-color-green-950; // Used for the icon of a success badge when static or the default state when linked.
|
|
614
|
+
$gl-badge-success-text-color-active: $gl-color-green-950; // Used for the text of a success badge in the active state.
|
|
615
|
+
$gl-badge-success-text-color-hover: $gl-color-green-950; // Used for the text of a success badge in the hover state.
|
|
616
|
+
$gl-badge-success-text-color-default: $gl-color-green-950; // Used for the text of a success badge when static or the default state when linked.
|
|
616
617
|
$gl-badge-success-border-color-active: $gl-color-alpha-0; // Used for the border of a success badge in the active state.
|
|
617
618
|
$gl-badge-success-border-color-focus: $gl-color-alpha-0; // Used for the border of a success badge in the focus state.
|
|
618
|
-
$gl-badge-success-border-color-hover: $gl-color-green-
|
|
619
|
+
$gl-badge-success-border-color-hover: $gl-color-green-200; // Used for the border of a success badge in the hover state.
|
|
619
620
|
$gl-badge-success-border-color-default: $gl-color-alpha-0; // Used for the border of a success badge when static or the default state when linked.
|
|
620
|
-
$gl-badge-success-background-color-active: $gl-color-green-
|
|
621
|
-
$gl-badge-success-background-color-default: $gl-color-green-
|
|
622
|
-
$gl-badge-info-icon-color-active: $gl-color-blue-
|
|
623
|
-
$gl-badge-info-icon-color-hover: $gl-color-blue-
|
|
624
|
-
$gl-badge-info-icon-color-default: $gl-color-blue-
|
|
625
|
-
$gl-badge-info-text-color-active: $gl-color-blue-
|
|
626
|
-
$gl-badge-info-text-color-hover: $gl-color-blue-
|
|
627
|
-
$gl-badge-info-text-color-default: $gl-color-blue-
|
|
621
|
+
$gl-badge-success-background-color-active: $gl-color-green-200; // Used for the background of a success badge in the active state.
|
|
622
|
+
$gl-badge-success-background-color-default: $gl-color-green-300; // Used for the background of a success badge when static or the default state when linked.
|
|
623
|
+
$gl-badge-info-icon-color-active: $gl-color-blue-950; // Used for the icon of an informational badge in the active state.
|
|
624
|
+
$gl-badge-info-icon-color-hover: $gl-color-blue-950; // Used for the icon of an informational badge in the hover state.
|
|
625
|
+
$gl-badge-info-icon-color-default: $gl-color-blue-950; // Used for the icon of an informational badge when static or the default state when linked.
|
|
626
|
+
$gl-badge-info-text-color-active: $gl-color-blue-950; // Used for the text of an informational badge in the active state.
|
|
627
|
+
$gl-badge-info-text-color-hover: $gl-color-blue-950; // Used for the text of an informational badge in the hover state.
|
|
628
|
+
$gl-badge-info-text-color-default: $gl-color-blue-950; // Used for the text of an informational badge when static or the default state when linked.
|
|
628
629
|
$gl-badge-info-border-color-active: $gl-color-alpha-0; // Used for the border of an informational badge in the active state.
|
|
629
630
|
$gl-badge-info-border-color-focus: $gl-color-alpha-0; // Used for the border of an informational badge in the focus state.
|
|
630
|
-
$gl-badge-info-border-color-hover: $gl-color-blue-
|
|
631
|
+
$gl-badge-info-border-color-hover: $gl-color-blue-200; // Used for the border of an informational badge in the hover state.
|
|
631
632
|
$gl-badge-info-border-color-default: $gl-color-alpha-0; // Used for the border of an informational badge when static or the default state when linked.
|
|
632
|
-
$gl-badge-info-background-color-active: $gl-color-blue-
|
|
633
|
-
$gl-badge-info-background-color-default: $gl-color-blue-
|
|
634
|
-
$gl-badge-neutral-icon-color-active: $gl-color-neutral-
|
|
635
|
-
$gl-badge-neutral-icon-color-hover: $gl-color-neutral-
|
|
636
|
-
$gl-badge-neutral-icon-color-default: $gl-color-neutral-
|
|
637
|
-
$gl-badge-neutral-text-color-active: $gl-color-neutral-
|
|
638
|
-
$gl-badge-neutral-text-color-hover: $gl-color-neutral-
|
|
639
|
-
$gl-badge-neutral-text-color-default: $gl-color-neutral-
|
|
633
|
+
$gl-badge-info-background-color-active: $gl-color-blue-200; // Used for the background of an informational badge in the active state.
|
|
634
|
+
$gl-badge-info-background-color-default: $gl-color-blue-300; // Used for the background of an informational badge when static or the default state when linked.
|
|
635
|
+
$gl-badge-neutral-icon-color-active: $gl-color-neutral-950; // Used for the icon of a neutral badge in the active state.
|
|
636
|
+
$gl-badge-neutral-icon-color-hover: $gl-color-neutral-950; // Used for the icon of a neutral badge in the hover state.
|
|
637
|
+
$gl-badge-neutral-icon-color-default: $gl-color-neutral-950; // Used for the icon of a neutral badge when static or the default state when linked.
|
|
638
|
+
$gl-badge-neutral-text-color-active: $gl-color-neutral-950; // Used for the text of a neutral badge in the active state.
|
|
639
|
+
$gl-badge-neutral-text-color-hover: $gl-color-neutral-950; // Used for the text of a neutral badge in the hover state.
|
|
640
|
+
$gl-badge-neutral-text-color-default: $gl-color-neutral-950; // Used for the text of a neutral badge when static or the default state when linked.
|
|
640
641
|
$gl-badge-neutral-border-color-active: $gl-color-alpha-0; // Used for the border of a neutral badge in the active state.
|
|
641
642
|
$gl-badge-neutral-border-color-focus: $gl-color-alpha-0; // Used for the border of a neutral badge in the focus state.
|
|
642
|
-
$gl-badge-neutral-border-color-hover: $gl-color-neutral-
|
|
643
|
+
$gl-badge-neutral-border-color-hover: $gl-color-neutral-200; // Used for the border of a neutral badge in the hover state.
|
|
643
644
|
$gl-badge-neutral-border-color-default: $gl-color-alpha-0; // Used for the border of a neutral badge when static or the default state when linked.
|
|
644
|
-
$gl-badge-neutral-background-color-active: $gl-color-neutral-
|
|
645
|
-
$gl-badge-neutral-background-color-default: $gl-color-neutral-
|
|
646
|
-
$gl-badge-muted-icon-color-active: $gl-color-neutral-
|
|
647
|
-
$gl-badge-muted-icon-color-hover: $gl-color-neutral-
|
|
648
|
-
$gl-badge-muted-icon-color-default: $gl-color-neutral-
|
|
649
|
-
$gl-badge-muted-text-color-active: $gl-color-neutral-
|
|
650
|
-
$gl-badge-muted-text-color-hover: $gl-color-neutral-
|
|
651
|
-
$gl-badge-muted-text-color-default: $gl-color-neutral-
|
|
645
|
+
$gl-badge-neutral-background-color-active: $gl-color-neutral-200; // Used for the background of a neutral badge in the active state.
|
|
646
|
+
$gl-badge-neutral-background-color-default: $gl-color-neutral-300; // Used for the background of a neutral badge when static or the default state when linked.
|
|
647
|
+
$gl-badge-muted-icon-color-active: $gl-color-neutral-950; // Used for the icon of a muted badge in the active state.
|
|
648
|
+
$gl-badge-muted-icon-color-hover: $gl-color-neutral-950; // Used for the icon of a muted badge in the hover state.
|
|
649
|
+
$gl-badge-muted-icon-color-default: $gl-color-neutral-950; // Used for the icon of a muted badge when static or the default state when linked.
|
|
650
|
+
$gl-badge-muted-text-color-active: $gl-color-neutral-950; // Used for the text of a muted badge in the active state.
|
|
651
|
+
$gl-badge-muted-text-color-hover: $gl-color-neutral-950; // Used for the text of a muted badge in the hover state.
|
|
652
|
+
$gl-badge-muted-text-color-default: $gl-color-neutral-950; // Used for the text of a muted badge when static or the default state when linked.
|
|
652
653
|
$gl-badge-muted-border-color-active: $gl-color-alpha-0; // Used for the border of a muted badge in the active state.
|
|
653
654
|
$gl-badge-muted-border-color-focus: $gl-color-alpha-0; // Used for the border of a muted badge in the focus state.
|
|
654
|
-
$gl-badge-muted-border-color-hover: $gl-color-neutral-
|
|
655
|
+
$gl-badge-muted-border-color-hover: $gl-color-neutral-300; // Used for the border of a muted badge in the hover state.
|
|
655
656
|
$gl-badge-muted-border-color-default: $gl-color-alpha-0; // Used for the border of a muted badge when static or the default state when linked.
|
|
656
|
-
$gl-badge-muted-background-color-active: $gl-color-neutral-
|
|
657
|
-
$gl-badge-muted-background-color-default: $gl-color-neutral-
|
|
657
|
+
$gl-badge-muted-background-color-active: $gl-color-neutral-300; // Used for the background of a muted badge in the active state.
|
|
658
|
+
$gl-badge-muted-background-color-default: $gl-color-neutral-400; // Used for the background of a muted badge when static or the default state when linked.
|
|
658
659
|
$gl-avatar-fallback-text-color-neutral: $gl-color-neutral-200; // Neutral text color for avatar fallback with no particular meaning.
|
|
659
660
|
$gl-avatar-fallback-text-color-orange: $gl-color-orange-200; // Orange text color for avatar fallback with no particular meaning.
|
|
660
661
|
$gl-avatar-fallback-text-color-green: $gl-color-green-200; // Green text color for avatar fallback with no particular meaning.
|
|
@@ -689,6 +690,9 @@ $gl-action-disabled-border-color: $gl-color-neutral-800; // Used for the border
|
|
|
689
690
|
$gl-action-disabled-background-color: $gl-color-neutral-900; // Used for the background of a disabled action.
|
|
690
691
|
$gl-action-disabled-foreground-color: $gl-color-neutral-500; // Used for the foreground of a disabled action.
|
|
691
692
|
$gl-focus-ring-inner-color: $gl-background-color-default; // Used for the inner neutral portion of the focus ring.
|
|
693
|
+
$gl-control-placeholder-color: $gl-text-color-disabled; // Used for placeholder text within inputs.
|
|
694
|
+
$gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
|
|
695
|
+
$gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
|
|
692
696
|
$gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
|
|
693
697
|
$gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
|
|
694
698
|
$gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
|
|
@@ -404,6 +404,7 @@ $gl-color-alpha-light-8: rgba(255, 255, 255, 0.08);
|
|
|
404
404
|
$gl-color-alpha-light-6: rgba(255, 255, 255, 0.06);
|
|
405
405
|
$gl-color-alpha-light-4: rgba(255, 255, 255, 0.04);
|
|
406
406
|
$gl-color-alpha-light-2: rgba(255, 255, 255, 0.02);
|
|
407
|
+
$gl-color-alpha-dark-40: rgba(05, 05, 06, 0.4);
|
|
407
408
|
$gl-color-alpha-dark-24: rgba(05, 05, 06, 0.24);
|
|
408
409
|
$gl-color-alpha-dark-16: rgba(05, 05, 06, 0.16);
|
|
409
410
|
$gl-color-alpha-dark-8: rgba(05, 05, 06, 0.08);
|
|
@@ -478,9 +479,6 @@ $gl-feedback-strong-text-color: $gl-color-neutral-0; // Used for text on a stron
|
|
|
478
479
|
$gl-feedback-strong-background-color: $gl-color-neutral-950; // Used for a background associated with strong feedback like a tooltip or toast message.
|
|
479
480
|
$gl-control-indicator-color-disabled: $gl-color-neutral-500; // Used for disabled checkbox and radio button state indicators.
|
|
480
481
|
$gl-control-indicator-color-selected: $gl-color-neutral-0; // Used for checkbox and radio button state indicators.
|
|
481
|
-
$gl-control-placeholder-color: $gl-color-neutral-400; // Used for placeholder text within inputs.
|
|
482
|
-
$gl-control-text-color-valid: $gl-color-green-500; // Used for the helper text when the input is valid.
|
|
483
|
-
$gl-control-text-color-error: $gl-color-red-500; // Used for the helper text when the input is invalid.
|
|
484
482
|
$gl-control-border-color-selected-focus: $gl-color-blue-700; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus.
|
|
485
483
|
$gl-control-border-color-selected-hover: $gl-color-blue-700; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on hover.
|
|
486
484
|
$gl-control-border-color-selected-default: $gl-color-blue-500; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border.
|
|
@@ -492,6 +490,8 @@ $gl-control-border-color-default: $gl-color-neutral-400; // Used for form contro
|
|
|
492
490
|
$gl-control-background-color-selected-focus: $gl-color-blue-700; // Used for checked and indeterminate (selected) form control (checkbox, radio button) background on hover.
|
|
493
491
|
$gl-control-background-color-selected-hover: $gl-color-blue-700; // Used for checked and indeterminate (selected) form control (checkbox, radio button) background on hover.
|
|
494
492
|
$gl-control-background-color-selected-default: $gl-color-blue-500; // Used for checked and indeterminate (selected) form control (checkbox, radio button) background.
|
|
493
|
+
$gl-control-background-color-readonly: $gl-color-neutral-10; // Used for the background of static content that prepends or appends a text input.
|
|
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
497
|
$gl-spinner-segment-color-light: $gl-color-neutral-200; // Used for the animated segment of a loading spinner on a dark background.
|
|
@@ -513,6 +513,7 @@ $gl-label-light-button-icon-color-default: $gl-color-neutral-950; // Used for th
|
|
|
513
513
|
$gl-label-light-button-background-color-hover: $gl-color-neutral-950; // Used for the label remove button background on a light background color in the hover state.
|
|
514
514
|
$gl-label-light-button-background-color-default: $gl-color-alpha-0; // Used for the label remove button background on a light background color in the default state.
|
|
515
515
|
$gl-label-light-text-color: $gl-color-neutral-950; // Used for the label text color on a light background color.
|
|
516
|
+
$gl-datepicker-background-color: $gl-color-neutral-0; // Used for the background color of datepicker.
|
|
516
517
|
$gl-button-disabled-border-color: $gl-color-neutral-100; // Used for the border of a disabled button.
|
|
517
518
|
$gl-button-disabled-background-color: $gl-color-neutral-10; // Used for the background of a disabled button.
|
|
518
519
|
$gl-button-disabled-foreground-color: $gl-color-neutral-500; // Used for the foreground of a disabled button.
|
|
@@ -571,9 +572,9 @@ $gl-button-default-primary-foreground-color-default: $gl-color-neutral-800; // U
|
|
|
571
572
|
$gl-breadcrumb-separator-color: $gl-color-neutral-400; // Used for the breadcrumb level separator.
|
|
572
573
|
$gl-banner-promo-background-color: $gl-color-neutral-10; // Used as background for the default banner type.
|
|
573
574
|
$gl-banner-intro-border-color: $gl-color-blue-300; // Used to compliment the info banner.
|
|
574
|
-
$gl-badge-tier-icon-color-active: $gl-color-purple-
|
|
575
|
-
$gl-badge-tier-icon-color-hover: $gl-color-purple-
|
|
576
|
-
$gl-badge-tier-icon-color-default: $gl-color-purple-
|
|
575
|
+
$gl-badge-tier-icon-color-active: $gl-color-purple-900; // Used for the icon of a tier related badge in the active state.
|
|
576
|
+
$gl-badge-tier-icon-color-hover: $gl-color-purple-800; // Used for the icon of a tier related badge in the hover state.
|
|
577
|
+
$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.
|
|
577
578
|
$gl-badge-tier-text-color-active: $gl-color-purple-900; // Used for the text of a tier related badge in the active state.
|
|
578
579
|
$gl-badge-tier-text-color-hover: $gl-color-purple-800; // Used for the text of a tier related badge in the hover state.
|
|
579
580
|
$gl-badge-tier-text-color-default: $gl-color-purple-700; // Used for the text of a tier related badge when static or the default state when linked.
|
|
@@ -583,9 +584,9 @@ $gl-badge-tier-border-color-hover: $gl-color-purple-200; // Used for the border
|
|
|
583
584
|
$gl-badge-tier-border-color-default: $gl-color-alpha-0; // Used for the border of a tier related badge when static or the default state when linked.
|
|
584
585
|
$gl-badge-tier-background-color-active: $gl-color-purple-200; // Used for the background of a tier related badge in the active state.
|
|
585
586
|
$gl-badge-tier-background-color-default: $gl-color-purple-100; // Used for the background of a tier related badge when static or the default state when linked.
|
|
586
|
-
$gl-badge-danger-icon-color-active: $gl-color-red-
|
|
587
|
-
$gl-badge-danger-icon-color-hover: $gl-color-red-
|
|
588
|
-
$gl-badge-danger-icon-color-default: $gl-color-red-
|
|
587
|
+
$gl-badge-danger-icon-color-active: $gl-color-red-900; // Used for the icon of a danger badge in the active state.
|
|
588
|
+
$gl-badge-danger-icon-color-hover: $gl-color-red-800; // Used for the icon of a danger badge in the hover state.
|
|
589
|
+
$gl-badge-danger-icon-color-default: $gl-color-red-700; // Used for the icon of a danger badge when static or the default state when linked.
|
|
589
590
|
$gl-badge-danger-text-color-active: $gl-color-red-900; // Used for the text of a danger badge in the active state.
|
|
590
591
|
$gl-badge-danger-text-color-hover: $gl-color-red-800; // Used for the text of a danger badge in the hover state.
|
|
591
592
|
$gl-badge-danger-text-color-default: $gl-color-red-700; // Used for the text of a danger badge when static or the default state when linked.
|
|
@@ -689,6 +690,9 @@ $gl-action-disabled-border-color: $gl-color-neutral-100; // Used for the border
|
|
|
689
690
|
$gl-action-disabled-background-color: $gl-color-neutral-50; // Used for the background of a disabled action.
|
|
690
691
|
$gl-action-disabled-foreground-color: $gl-color-neutral-400; // Used for the foreground of a disabled action.
|
|
691
692
|
$gl-focus-ring-inner-color: $gl-background-color-default; // Used for the inner neutral portion of the focus ring.
|
|
693
|
+
$gl-control-placeholder-color: $gl-text-color-disabled; // Used for placeholder text within inputs.
|
|
694
|
+
$gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
|
|
695
|
+
$gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
|
|
692
696
|
$gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
|
|
693
697
|
$gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
|
|
694
698
|
$gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
|
|
@@ -58,6 +58,7 @@ $gl-color-alpha-dark-6: var(--gl-color-alpha-dark-6);
|
|
|
58
58
|
$gl-color-alpha-dark-8: var(--gl-color-alpha-dark-8);
|
|
59
59
|
$gl-color-alpha-dark-16: var(--gl-color-alpha-dark-16);
|
|
60
60
|
$gl-color-alpha-dark-24: var(--gl-color-alpha-dark-24);
|
|
61
|
+
$gl-color-alpha-dark-40: var(--gl-color-alpha-dark-40);
|
|
61
62
|
$gl-color-alpha-light-2: var(--gl-color-alpha-light-2);
|
|
62
63
|
$gl-color-alpha-light-4: var(--gl-color-alpha-light-4);
|
|
63
64
|
$gl-color-alpha-light-6: var(--gl-color-alpha-light-6);
|
|
@@ -524,6 +525,7 @@ $gl-button-selected-border-color-active: var(--gl-button-selected-border-color-a
|
|
|
524
525
|
$gl-button-disabled-foreground-color: var(--gl-button-disabled-foreground-color);
|
|
525
526
|
$gl-button-disabled-background-color: var(--gl-button-disabled-background-color);
|
|
526
527
|
$gl-button-disabled-border-color: var(--gl-button-disabled-border-color);
|
|
528
|
+
$gl-datepicker-background-color: var(--gl-datepicker-background-color);
|
|
527
529
|
$gl-datepicker-date-text-color-selected: var(--gl-datepicker-date-text-color-selected);
|
|
528
530
|
$gl-label-light-text-color: var(--gl-label-light-text-color);
|
|
529
531
|
$gl-label-light-button-background-color-default: var(--gl-label-light-button-background-color-default);
|
|
@@ -548,6 +550,8 @@ $gl-table-row-background-color-hover: var(--gl-table-row-background-color-hover)
|
|
|
548
550
|
$gl-table-sorting-icon-color: var(--gl-table-sorting-icon-color);
|
|
549
551
|
$gl-control-background-color-default: var(--gl-control-background-color-default);
|
|
550
552
|
$gl-control-background-color-disabled: var(--gl-control-background-color-disabled);
|
|
553
|
+
$gl-control-background-color-concatenation: var(--gl-control-background-color-concatenation);
|
|
554
|
+
$gl-control-background-color-readonly: var(--gl-control-background-color-readonly);
|
|
551
555
|
$gl-control-background-color-selected-default: var(--gl-control-background-color-selected-default);
|
|
552
556
|
$gl-control-background-color-selected-hover: var(--gl-control-background-color-selected-hover);
|
|
553
557
|
$gl-control-background-color-selected-focus: var(--gl-control-background-color-selected-focus);
|
|
@@ -245,6 +245,7 @@ const alphaDarkColors = {
|
|
|
245
245
|
8: 'var(--gl-color-alpha-dark-8, rgba(05, 05, 06, 0.08))',
|
|
246
246
|
16: 'var(--gl-color-alpha-dark-16, rgba(05, 05, 06, 0.16))',
|
|
247
247
|
24: 'var(--gl-color-alpha-dark-24, rgba(05, 05, 06, 0.24))',
|
|
248
|
+
40: 'var(--gl-color-alpha-dark-40, rgba(05, 05, 06, 0.4))',
|
|
248
249
|
};
|
|
249
250
|
const alphaLightColors = {
|
|
250
251
|
2: 'var(--gl-color-alpha-light-2, rgba(255, 255, 255, 0.02))',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "89.
|
|
3
|
+
"version": "89.3.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@babel/preset-env": "^7.25.3",
|
|
112
112
|
"@babel/preset-react": "^7.24.7",
|
|
113
113
|
"@cypress/grep": "^4.0.1",
|
|
114
|
-
"@gitlab/eslint-plugin": "19.6.
|
|
114
|
+
"@gitlab/eslint-plugin": "19.6.1",
|
|
115
115
|
"@gitlab/fonts": "^1.3.0",
|
|
116
116
|
"@gitlab/stylelint-config": "6.2.1",
|
|
117
117
|
"@gitlab/svgs": "3.112.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"esbuild": "^0.18.0",
|
|
157
157
|
"eslint": "8.57.0",
|
|
158
158
|
"eslint-import-resolver-jest": "3.0.2",
|
|
159
|
-
"eslint-plugin-cypress": "3.
|
|
159
|
+
"eslint-plugin-cypress": "3.5.0",
|
|
160
160
|
"eslint-plugin-storybook": "0.8.0",
|
|
161
161
|
"gitlab-api-async-iterator": "^1.3.1",
|
|
162
162
|
"glob": "10.3.3",
|
|
@@ -5,19 +5,24 @@ $badge-min-width: $gl-spacing-scale-3;
|
|
|
5
5
|
$variant,
|
|
6
6
|
$color,
|
|
7
7
|
$icon-color,
|
|
8
|
-
$
|
|
8
|
+
$background-color,
|
|
9
9
|
$hover-color,
|
|
10
10
|
$hover-icon-color,
|
|
11
|
-
$
|
|
11
|
+
$hover-background-color,
|
|
12
|
+
$hover-border-color,
|
|
13
|
+
$focus-color,
|
|
14
|
+
$focus-icon-color,
|
|
15
|
+
$focus-background-color,
|
|
12
16
|
$active-color,
|
|
13
17
|
$active-icon-color,
|
|
14
|
-
$active-
|
|
18
|
+
$active-background-color
|
|
15
19
|
) {
|
|
16
20
|
.gl-badge.badge-#{$variant} {
|
|
17
|
-
background-color: $
|
|
21
|
+
background-color: $background-color;
|
|
18
22
|
color: $color;
|
|
19
23
|
|
|
20
24
|
.gl-badge-icon {
|
|
25
|
+
color: $icon-color;
|
|
21
26
|
transition: inherit;
|
|
22
27
|
}
|
|
23
28
|
}
|
|
@@ -26,8 +31,8 @@ $badge-min-width: $gl-spacing-scale-3;
|
|
|
26
31
|
&:hover {
|
|
27
32
|
color: $hover-color;
|
|
28
33
|
// Needed to override bootstrap's badge variant background
|
|
29
|
-
background-color: $
|
|
30
|
-
box-shadow: inset 0 0 0 $gl-border-size-1 $border-color;
|
|
34
|
+
background-color: $hover-background-color;
|
|
35
|
+
box-shadow: inset 0 0 0 $gl-border-size-1 $hover-border-color;
|
|
31
36
|
@include gl-text-decoration-none;
|
|
32
37
|
|
|
33
38
|
.gl-badge-icon {
|
|
@@ -35,20 +40,20 @@ $badge-min-width: $gl-spacing-scale-3;
|
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
|
|
43
|
+
|
|
38
44
|
&:focus {
|
|
39
|
-
color: $
|
|
40
|
-
|
|
41
|
-
background-color: $bg;
|
|
45
|
+
color: $focus-color;
|
|
46
|
+
background-color: $focus-background-color;
|
|
42
47
|
|
|
43
48
|
.gl-badge-icon {
|
|
44
|
-
color: $
|
|
49
|
+
color: $focus-icon-color;
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
&.active,
|
|
49
54
|
&:active {
|
|
50
55
|
color: $active-color;
|
|
51
|
-
background-color: $active-
|
|
56
|
+
background-color: $active-background-color;
|
|
52
57
|
|
|
53
58
|
.gl-badge-icon {
|
|
54
59
|
color: $active-icon-color;
|
|
@@ -118,91 +123,119 @@ $badge-min-width: $gl-spacing-scale-3;
|
|
|
118
123
|
$variant: muted,
|
|
119
124
|
$color: var(--gl-badge-muted-text-color-default),
|
|
120
125
|
$icon-color: var(--gl-badge-muted-icon-color-default),
|
|
121
|
-
$
|
|
126
|
+
$background-color: var(--gl-badge-muted-background-color-default),
|
|
122
127
|
$hover-color: var(--gl-badge-muted-text-color-hover),
|
|
123
128
|
$hover-icon-color: var(--gl-badge-muted-icon-color-hover),
|
|
124
|
-
$
|
|
129
|
+
$hover-background-color: var(--gl-badge-muted-background-color-hover),
|
|
130
|
+
$hover-border-color: var(--gl-badge-muted-border-color-hover),
|
|
131
|
+
$focus-color: var(--gl-badge-muted-text-color-focus),
|
|
132
|
+
$focus-icon-color:var(--gl-badge-muted-icon-color-focus),
|
|
133
|
+
$focus-background-color: var(--gl-badge-muted-background-color-focus),
|
|
125
134
|
$active-color: var(--gl-badge-muted-text-color-active),
|
|
126
135
|
$active-icon-color:var(--gl-badge-muted-icon-color-active),
|
|
127
|
-
$active-
|
|
136
|
+
$active-background-color: var(--gl-badge-muted-background-color-active)
|
|
128
137
|
);
|
|
129
138
|
|
|
130
139
|
@include gl-badge-variant(
|
|
131
140
|
$variant: neutral,
|
|
132
141
|
$color: var(--gl-badge-neutral-text-color-default),
|
|
133
142
|
$icon-color: var(--gl-badge-neutral-icon-color-default),
|
|
134
|
-
$
|
|
143
|
+
$background-color: var(--gl-badge-neutral-background-color-default),
|
|
135
144
|
$hover-color: var(--gl-badge-neutral-text-color-hover),
|
|
136
145
|
$hover-icon-color: var(--gl-badge-neutral-icon-color-hover),
|
|
137
|
-
$
|
|
146
|
+
$hover-background-color: var(--gl-badge-neutral-background-color-hover),
|
|
147
|
+
$hover-border-color: var(--gl-badge-neutral-border-color-hover),
|
|
148
|
+
$focus-color: var(--gl-badge-neutral-text-color-focus),
|
|
149
|
+
$focus-icon-color:var(--gl-badge-neutral-icon-color-focus),
|
|
150
|
+
$focus-background-color: var(--gl-badge-neutral-background-color-focus),
|
|
138
151
|
$active-color: var(--gl-badge-neutral-text-color-active),
|
|
139
152
|
$active-icon-color:var(--gl-badge-neutral-icon-color-active),
|
|
140
|
-
$active-
|
|
153
|
+
$active-background-color: var(--gl-badge-neutral-background-color-active)
|
|
141
154
|
);
|
|
142
155
|
|
|
143
156
|
@include gl-badge-variant(
|
|
144
157
|
$variant: info,
|
|
145
158
|
$color: var(--gl-badge-info-text-color-default),
|
|
146
159
|
$icon-color: var(--gl-badge-info-icon-color-default),
|
|
147
|
-
$
|
|
160
|
+
$background-color: var(--gl-badge-info-background-color-default),
|
|
148
161
|
$hover-color: var(--gl-badge-info-text-color-hover),
|
|
149
162
|
$hover-icon-color: var(--gl-badge-info-icon-color-hover),
|
|
150
|
-
$
|
|
163
|
+
$hover-background-color: var(--gl-badge-info-background-color-hover),
|
|
164
|
+
$hover-border-color: var(--gl-badge-info-border-color-hover),
|
|
165
|
+
$focus-color: var(--gl-badge-info-text-color-focus),
|
|
166
|
+
$focus-icon-color:var(--gl-badge-info-icon-color-focus),
|
|
167
|
+
$focus-background-color: var(--gl-badge-info-background-color-focus),
|
|
151
168
|
$active-color: var(--gl-badge-info-text-color-active),
|
|
152
169
|
$active-icon-color:var(--gl-badge-info-icon-color-active),
|
|
153
|
-
$active-
|
|
170
|
+
$active-background-color: var(--gl-badge-info-background-color-active)
|
|
154
171
|
);
|
|
155
172
|
|
|
156
173
|
@include gl-badge-variant(
|
|
157
174
|
$variant: success,
|
|
158
175
|
$color: var(--gl-badge-success-text-color-default),
|
|
159
176
|
$icon-color: var(--gl-badge-success-icon-color-default),
|
|
160
|
-
$
|
|
177
|
+
$background-color: var(--gl-badge-success-background-color-default),
|
|
161
178
|
$hover-color: var(--gl-badge-success-text-color-hover),
|
|
162
179
|
$hover-icon-color: var(--gl-badge-success-icon-color-hover),
|
|
163
|
-
$
|
|
180
|
+
$hover-background-color: var(--gl-badge-success-background-color-hover),
|
|
181
|
+
$hover-border-color: var(--gl-badge-success-border-color-hover),
|
|
182
|
+
$focus-color: var(--gl-badge-success-text-color-focus),
|
|
183
|
+
$focus-icon-color:var(--gl-badge-success-icon-color-focus),
|
|
184
|
+
$focus-background-color: var(--gl-badge-success-background-color-focus),
|
|
164
185
|
$active-color: var(--gl-badge-success-text-color-active),
|
|
165
186
|
$active-icon-color:var(--gl-badge-success-icon-color-active),
|
|
166
|
-
$active-
|
|
187
|
+
$active-background-color: var(--gl-badge-success-background-color-active)
|
|
167
188
|
);
|
|
168
189
|
|
|
169
190
|
@include gl-badge-variant(
|
|
170
191
|
$variant: warning,
|
|
171
192
|
$color: var(--gl-badge-warning-text-color-default),
|
|
172
193
|
$icon-color: var(--gl-badge-warning-icon-color-default),
|
|
173
|
-
$
|
|
194
|
+
$background-color: var(--gl-badge-warning-background-color-default),
|
|
174
195
|
$hover-color: var(--gl-badge-warning-text-color-hover),
|
|
175
196
|
$hover-icon-color: var(--gl-badge-warning-icon-color-hover),
|
|
176
|
-
$
|
|
197
|
+
$hover-background-color: var(--gl-badge-warning-background-color-hover),
|
|
198
|
+
$hover-border-color: var(--gl-badge-warning-border-color-hover),
|
|
199
|
+
$focus-color: var(--gl-badge-warning-text-color-focus),
|
|
200
|
+
$focus-icon-color:var(--gl-badge-warning-icon-color-focus),
|
|
201
|
+
$focus-background-color: var(--gl-badge-warning-background-color-focus),
|
|
177
202
|
$active-color: var(--gl-badge-warning-text-color-active),
|
|
178
203
|
$active-icon-color:var(--gl-badge-warning-icon-color-active),
|
|
179
|
-
$active-
|
|
204
|
+
$active-background-color: var(--gl-badge-warning-background-color-active)
|
|
180
205
|
);
|
|
181
206
|
|
|
182
207
|
@include gl-badge-variant(
|
|
183
208
|
$variant: danger,
|
|
184
209
|
$color: var(--gl-badge-danger-text-color-default),
|
|
185
210
|
$icon-color: var(--gl-badge-danger-icon-color-default),
|
|
186
|
-
$
|
|
211
|
+
$background-color: var(--gl-badge-danger-background-color-default),
|
|
187
212
|
$hover-color: var(--gl-badge-danger-text-color-hover),
|
|
188
213
|
$hover-icon-color: var(--gl-badge-danger-icon-color-hover),
|
|
189
|
-
$
|
|
214
|
+
$hover-background-color: var(--gl-badge-danger-background-color-hover),
|
|
215
|
+
$hover-border-color: var(--gl-badge-danger-border-color-hover),
|
|
216
|
+
$focus-color: var(--gl-badge-danger-text-color-focus),
|
|
217
|
+
$focus-icon-color:var(--gl-badge-danger-icon-color-focus),
|
|
218
|
+
$focus-background-color: var(--gl-badge-danger-background-color-focus),
|
|
190
219
|
$active-color: var(--gl-badge-danger-text-color-active),
|
|
191
220
|
$active-icon-color:var(--gl-badge-danger-icon-color-active),
|
|
192
|
-
$active-
|
|
221
|
+
$active-background-color: var(--gl-badge-danger-background-color-active)
|
|
193
222
|
);
|
|
194
223
|
|
|
195
224
|
@include gl-badge-variant(
|
|
196
225
|
$variant: tier,
|
|
197
226
|
$color: var(--gl-badge-tier-text-color-default),
|
|
198
227
|
$icon-color: var(--gl-badge-tier-icon-color-default),
|
|
199
|
-
$
|
|
228
|
+
$background-color: var(--gl-badge-tier-background-color-default),
|
|
200
229
|
$hover-color: var(--gl-badge-tier-text-color-hover),
|
|
201
230
|
$hover-icon-color: var(--gl-badge-tier-icon-color-hover),
|
|
202
|
-
$
|
|
231
|
+
$hover-background-color: var(--gl-badge-tier-background-color-hover),
|
|
232
|
+
$hover-border-color: var(--gl-badge-tier-border-color-hover),
|
|
233
|
+
$focus-color: var(--gl-badge-tier-text-color-focus),
|
|
234
|
+
$focus-icon-color:var(--gl-badge-tier-icon-color-focus),
|
|
235
|
+
$focus-background-color: var(--gl-badge-tier-background-color-focus),
|
|
203
236
|
$active-color: var(--gl-badge-tier-text-color-active),
|
|
204
237
|
$active-icon-color:var(--gl-badge-tier-icon-color-active),
|
|
205
|
-
$active-
|
|
238
|
+
$active-background-color: var(--gl-badge-tier-background-color-active)
|
|
206
239
|
);
|
|
207
240
|
|
|
208
241
|
// overriding Bootstap's `.btn .badge {top: -1px}` as the badge is not vertically centered otherwise
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
$pd-text-color: var(--gl-text-color-default);
|
|
3
3
|
$pd-title-color: var(--gl-action-neutral-foreground-color-default);
|
|
4
4
|
$pd-title-bg: var(--gl-action-neutral-background-color-default);
|
|
5
|
-
$pd-picker-bg: var(--gl-
|
|
5
|
+
$pd-picker-bg: var(--gl-datepicker-background-color);
|
|
6
6
|
$pd-picker-border: var(--gl-border-color-default);
|
|
7
7
|
$pd-picker-border-bottom: var(--gl-border-color-default);
|
|
8
8
|
$pd-th-color: var(--gl-text-color-subtle);
|
|
@@ -41,7 +41,7 @@ $pd-week-color: var(--gl-text-color-subtle);
|
|
|
41
41
|
@apply gl-border-none;
|
|
42
42
|
@apply gl-rounded-base;
|
|
43
43
|
@include gl-mt-3;
|
|
44
|
-
background-color: var(--gl-
|
|
44
|
+
background-color: var(--gl-datepicker-background-color);
|
|
45
45
|
|
|
46
46
|
&.is-bound {
|
|
47
47
|
@include gl-shadow-md;
|
|
@@ -82,6 +82,11 @@ $pd-week-color: var(--gl-text-color-subtle);
|
|
|
82
82
|
opacity: 100%;
|
|
83
83
|
|
|
84
84
|
&::before {
|
|
85
|
+
/* Apply a slightly larger border-radius to the ::before pseudo-element
|
|
86
|
+
to prevent background color shimmer issue in Safari.
|
|
87
|
+
This is necessary because the parent element (which already has a border-radius)
|
|
88
|
+
requires the ::before element to extend beyond its edges to ensure proper coverage. */
|
|
89
|
+
@apply gl-rounded-lg;
|
|
85
90
|
content: '';
|
|
86
91
|
position: absolute;
|
|
87
92
|
top: 0;
|