@gitlab/ui 89.2.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 +13 -0
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +91 -91
- package/dist/tokens/build/js/tokens.js +8 -8
- package/dist/tokens/css/tokens.css +6 -6
- package/dist/tokens/css/tokens.dark.css +63 -63
- package/dist/tokens/js/tokens.dark.js +91 -91
- package/dist/tokens/js/tokens.js +8 -8
- package/dist/tokens/json/tokens.dark.json +160 -160
- package/dist/tokens/json/tokens.json +77 -77
- package/dist/tokens/scss/_tokens.dark.scss +63 -63
- package/dist/tokens/scss/_tokens.scss +6 -6
- package/package.json +1 -1
- package/src/components/base/badge/badge.scss +65 -32
- package/src/components/base/datepicker/datepicker.scss +5 -0
- package/src/components/base/toggle/toggle.scss +8 -5
- package/src/tokens/build/css/tokens.css +6 -6
- package/src/tokens/build/css/tokens.dark.css +63 -63
- package/src/tokens/build/js/tokens.dark.js +91 -91
- package/src/tokens/build/js/tokens.js +8 -8
- package/src/tokens/build/json/tokens.dark.json +160 -160
- package/src/tokens/build/json/tokens.json +77 -77
- package/src/tokens/build/scss/_tokens.dark.scss +63 -63
- package/src/tokens/build/scss/_tokens.scss +6 -6
- package/src/tokens/contextual/badge.tokens.json +69 -69
|
@@ -572,90 +572,90 @@ $gl-button-default-primary-foreground-color-default: $gl-color-neutral-50; // Us
|
|
|
572
572
|
$gl-breadcrumb-separator-color: $gl-color-neutral-400; // Used for the breadcrumb level separator.
|
|
573
573
|
$gl-banner-promo-background-color: $gl-color-neutral-900; // Used as background for the default banner type.
|
|
574
574
|
$gl-banner-intro-border-color: $gl-color-blue-600; // Used to compliment the info banner.
|
|
575
|
-
$gl-badge-tier-icon-color-active: $gl-color-purple-
|
|
576
|
-
$gl-badge-tier-icon-color-hover: $gl-color-purple-
|
|
577
|
-
$gl-badge-tier-icon-color-default: $gl-color-purple-
|
|
578
|
-
$gl-badge-tier-text-color-active: $gl-color-purple-
|
|
579
|
-
$gl-badge-tier-text-color-hover: $gl-color-purple-
|
|
580
|
-
$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.
|
|
581
581
|
$gl-badge-tier-border-color-active: $gl-color-alpha-0; // Used for the border of a tier related badge in the active state.
|
|
582
582
|
$gl-badge-tier-border-color-focus: $gl-color-alpha-0; // Used for the border of a tier related badge in the focus state.
|
|
583
|
-
$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.
|
|
584
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.
|
|
585
|
-
$gl-badge-tier-background-color-active: $gl-color-purple-
|
|
586
|
-
$gl-badge-tier-background-color-default: $gl-color-purple-
|
|
587
|
-
$gl-badge-danger-icon-color-active: $gl-color-red-
|
|
588
|
-
$gl-badge-danger-icon-color-hover: $gl-color-red-
|
|
589
|
-
$gl-badge-danger-icon-color-default: $gl-color-red-
|
|
590
|
-
$gl-badge-danger-text-color-active: $gl-color-red-
|
|
591
|
-
$gl-badge-danger-text-color-hover: $gl-color-red-
|
|
592
|
-
$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.
|
|
593
593
|
$gl-badge-danger-border-color-active: $gl-color-alpha-0; // Used for the border of a danger badge in the active state.
|
|
594
594
|
$gl-badge-danger-border-color-focus: $gl-color-alpha-0; // Used for the border of a danger badge in the focus state.
|
|
595
|
-
$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.
|
|
596
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.
|
|
597
|
-
$gl-badge-danger-background-color-active: $gl-color-red-
|
|
598
|
-
$gl-badge-danger-background-color-default: $gl-color-red-
|
|
599
|
-
$gl-badge-warning-icon-color-active: $gl-color-orange-
|
|
600
|
-
$gl-badge-warning-icon-color-hover: $gl-color-orange-
|
|
601
|
-
$gl-badge-warning-icon-color-default: $gl-color-orange-
|
|
602
|
-
$gl-badge-warning-text-color-active: $gl-color-orange-
|
|
603
|
-
$gl-badge-warning-text-color-hover: $gl-color-orange-
|
|
604
|
-
$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.
|
|
605
605
|
$gl-badge-warning-border-color-active: $gl-color-alpha-0; // Used for the border of a warning badge in the active state.
|
|
606
606
|
$gl-badge-warning-border-color-focus: $gl-color-alpha-0; // Used for the border of a warning badge in the focus state.
|
|
607
|
-
$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.
|
|
608
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.
|
|
609
|
-
$gl-badge-warning-background-color-active: $gl-color-orange-
|
|
610
|
-
$gl-badge-warning-background-color-default: $gl-color-orange-
|
|
611
|
-
$gl-badge-success-icon-color-active: $gl-color-green-
|
|
612
|
-
$gl-badge-success-icon-color-hover: $gl-color-green-
|
|
613
|
-
$gl-badge-success-icon-color-default: $gl-color-green-
|
|
614
|
-
$gl-badge-success-text-color-active: $gl-color-green-
|
|
615
|
-
$gl-badge-success-text-color-hover: $gl-color-green-
|
|
616
|
-
$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.
|
|
617
617
|
$gl-badge-success-border-color-active: $gl-color-alpha-0; // Used for the border of a success badge in the active state.
|
|
618
618
|
$gl-badge-success-border-color-focus: $gl-color-alpha-0; // Used for the border of a success badge in the focus state.
|
|
619
|
-
$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.
|
|
620
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.
|
|
621
|
-
$gl-badge-success-background-color-active: $gl-color-green-
|
|
622
|
-
$gl-badge-success-background-color-default: $gl-color-green-
|
|
623
|
-
$gl-badge-info-icon-color-active: $gl-color-blue-
|
|
624
|
-
$gl-badge-info-icon-color-hover: $gl-color-blue-
|
|
625
|
-
$gl-badge-info-icon-color-default: $gl-color-blue-
|
|
626
|
-
$gl-badge-info-text-color-active: $gl-color-blue-
|
|
627
|
-
$gl-badge-info-text-color-hover: $gl-color-blue-
|
|
628
|
-
$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.
|
|
629
629
|
$gl-badge-info-border-color-active: $gl-color-alpha-0; // Used for the border of an informational badge in the active state.
|
|
630
630
|
$gl-badge-info-border-color-focus: $gl-color-alpha-0; // Used for the border of an informational badge in the focus state.
|
|
631
|
-
$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.
|
|
632
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.
|
|
633
|
-
$gl-badge-info-background-color-active: $gl-color-blue-
|
|
634
|
-
$gl-badge-info-background-color-default: $gl-color-blue-
|
|
635
|
-
$gl-badge-neutral-icon-color-active: $gl-color-neutral-
|
|
636
|
-
$gl-badge-neutral-icon-color-hover: $gl-color-neutral-
|
|
637
|
-
$gl-badge-neutral-icon-color-default: $gl-color-neutral-
|
|
638
|
-
$gl-badge-neutral-text-color-active: $gl-color-neutral-
|
|
639
|
-
$gl-badge-neutral-text-color-hover: $gl-color-neutral-
|
|
640
|
-
$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.
|
|
641
641
|
$gl-badge-neutral-border-color-active: $gl-color-alpha-0; // Used for the border of a neutral badge in the active state.
|
|
642
642
|
$gl-badge-neutral-border-color-focus: $gl-color-alpha-0; // Used for the border of a neutral badge in the focus state.
|
|
643
|
-
$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.
|
|
644
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.
|
|
645
|
-
$gl-badge-neutral-background-color-active: $gl-color-neutral-
|
|
646
|
-
$gl-badge-neutral-background-color-default: $gl-color-neutral-
|
|
647
|
-
$gl-badge-muted-icon-color-active: $gl-color-neutral-
|
|
648
|
-
$gl-badge-muted-icon-color-hover: $gl-color-neutral-
|
|
649
|
-
$gl-badge-muted-icon-color-default: $gl-color-neutral-
|
|
650
|
-
$gl-badge-muted-text-color-active: $gl-color-neutral-
|
|
651
|
-
$gl-badge-muted-text-color-hover: $gl-color-neutral-
|
|
652
|
-
$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.
|
|
653
653
|
$gl-badge-muted-border-color-active: $gl-color-alpha-0; // Used for the border of a muted badge in the active state.
|
|
654
654
|
$gl-badge-muted-border-color-focus: $gl-color-alpha-0; // Used for the border of a muted badge in the focus state.
|
|
655
|
-
$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.
|
|
656
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.
|
|
657
|
-
$gl-badge-muted-background-color-active: $gl-color-neutral-
|
|
658
|
-
$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.
|
|
659
659
|
$gl-avatar-fallback-text-color-neutral: $gl-color-neutral-200; // Neutral text color for avatar fallback with no particular meaning.
|
|
660
660
|
$gl-avatar-fallback-text-color-orange: $gl-color-orange-200; // Orange text color for avatar fallback with no particular meaning.
|
|
661
661
|
$gl-avatar-fallback-text-color-green: $gl-color-green-200; // Green text color for avatar fallback with no particular meaning.
|
|
@@ -572,9 +572,9 @@ $gl-button-default-primary-foreground-color-default: $gl-color-neutral-800; // U
|
|
|
572
572
|
$gl-breadcrumb-separator-color: $gl-color-neutral-400; // Used for the breadcrumb level separator.
|
|
573
573
|
$gl-banner-promo-background-color: $gl-color-neutral-10; // Used as background for the default banner type.
|
|
574
574
|
$gl-banner-intro-border-color: $gl-color-blue-300; // Used to compliment the info banner.
|
|
575
|
-
$gl-badge-tier-icon-color-active: $gl-color-purple-
|
|
576
|
-
$gl-badge-tier-icon-color-hover: $gl-color-purple-
|
|
577
|
-
$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.
|
|
578
578
|
$gl-badge-tier-text-color-active: $gl-color-purple-900; // Used for the text of a tier related badge in the active state.
|
|
579
579
|
$gl-badge-tier-text-color-hover: $gl-color-purple-800; // Used for the text of a tier related badge in the hover state.
|
|
580
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.
|
|
@@ -584,9 +584,9 @@ $gl-badge-tier-border-color-hover: $gl-color-purple-200; // Used for the border
|
|
|
584
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.
|
|
585
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
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.
|
|
587
|
-
$gl-badge-danger-icon-color-active: $gl-color-red-
|
|
588
|
-
$gl-badge-danger-icon-color-hover: $gl-color-red-
|
|
589
|
-
$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.
|
|
590
590
|
$gl-badge-danger-text-color-active: $gl-color-red-900; // Used for the text of a danger badge in the active state.
|
|
591
591
|
$gl-badge-danger-text-color-hover: $gl-color-red-800; // Used for the text of a danger badge in the hover state.
|
|
592
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.
|
package/package.json
CHANGED
|
@@ -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
|
|
@@ -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;
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
* </button>
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
+
$toggle-width: 4.5 * $grid-size;
|
|
22
|
+
$toggle-translate-width: 2 * $grid-size;
|
|
23
|
+
$toggle-height: 2.5 * $grid-size;
|
|
24
|
+
|
|
21
25
|
.gl-toggle-wrapper {
|
|
22
26
|
@include gl-line-height-normal;
|
|
23
27
|
@include gl-font-weight-normal;
|
|
@@ -83,10 +87,9 @@
|
|
|
83
87
|
@apply gl-border-0;
|
|
84
88
|
@include gl-cursor-pointer;
|
|
85
89
|
@include gl-bg-gray-600;
|
|
86
|
-
@include gl-p-1;
|
|
87
90
|
position: relative;
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
width: $toggle-width;
|
|
92
|
+
height: $toggle-height;
|
|
90
93
|
@include gl-outline-none;
|
|
91
94
|
user-select: none;
|
|
92
95
|
@include gl-rounded-pill;
|
|
@@ -126,7 +129,7 @@
|
|
|
126
129
|
top: $gl-spacing-scale-1;
|
|
127
130
|
@include gl-transition-medium;
|
|
128
131
|
@include gl-justify-content-center;
|
|
129
|
-
@include gl-p-
|
|
132
|
+
@include gl-p-1;
|
|
130
133
|
|
|
131
134
|
> svg {
|
|
132
135
|
@include gl-w-4;
|
|
@@ -147,7 +150,7 @@
|
|
|
147
150
|
}
|
|
148
151
|
|
|
149
152
|
.toggle-icon {
|
|
150
|
-
transform: translateX($
|
|
153
|
+
transform: translateX($toggle-translate-width);
|
|
151
154
|
|
|
152
155
|
> svg {
|
|
153
156
|
@include gl-fill-blue-500;
|
|
@@ -574,9 +574,9 @@
|
|
|
574
574
|
--gl-breadcrumb-separator-color: var(--gl-color-neutral-400); /* Used for the breadcrumb level separator. */
|
|
575
575
|
--gl-banner-promo-background-color: var(--gl-color-neutral-10); /* Used as background for the default banner type. */
|
|
576
576
|
--gl-banner-intro-border-color: var(--gl-color-blue-300); /* Used to compliment the info banner. */
|
|
577
|
-
--gl-badge-tier-icon-color-active: var(--gl-color-purple-
|
|
578
|
-
--gl-badge-tier-icon-color-hover: var(--gl-color-purple-
|
|
579
|
-
--gl-badge-tier-icon-color-default: var(--gl-color-purple-
|
|
577
|
+
--gl-badge-tier-icon-color-active: var(--gl-color-purple-900); /* Used for the icon of a tier related badge in the active state. */
|
|
578
|
+
--gl-badge-tier-icon-color-hover: var(--gl-color-purple-800); /* Used for the icon of a tier related badge in the hover state. */
|
|
579
|
+
--gl-badge-tier-icon-color-default: var(--gl-color-purple-700); /* Used for the icon of a tier related badge when static or the default state when linked. */
|
|
580
580
|
--gl-badge-tier-text-color-active: var(--gl-color-purple-900); /* Used for the text of a tier related badge in the active state. */
|
|
581
581
|
--gl-badge-tier-text-color-hover: var(--gl-color-purple-800); /* Used for the text of a tier related badge in the hover state. */
|
|
582
582
|
--gl-badge-tier-text-color-default: var(--gl-color-purple-700); /* Used for the text of a tier related badge when static or the default state when linked. */
|
|
@@ -586,9 +586,9 @@
|
|
|
586
586
|
--gl-badge-tier-border-color-default: var(--gl-color-alpha-0); /* Used for the border of a tier related badge when static or the default state when linked. */
|
|
587
587
|
--gl-badge-tier-background-color-active: var(--gl-color-purple-200); /* Used for the background of a tier related badge in the active state. */
|
|
588
588
|
--gl-badge-tier-background-color-default: var(--gl-color-purple-100); /* Used for the background of a tier related badge when static or the default state when linked. */
|
|
589
|
-
--gl-badge-danger-icon-color-active: var(--gl-color-red-
|
|
590
|
-
--gl-badge-danger-icon-color-hover: var(--gl-color-red-
|
|
591
|
-
--gl-badge-danger-icon-color-default: var(--gl-color-red-
|
|
589
|
+
--gl-badge-danger-icon-color-active: var(--gl-color-red-900); /* Used for the icon of a danger badge in the active state. */
|
|
590
|
+
--gl-badge-danger-icon-color-hover: var(--gl-color-red-800); /* Used for the icon of a danger badge in the hover state. */
|
|
591
|
+
--gl-badge-danger-icon-color-default: var(--gl-color-red-700); /* Used for the icon of a danger badge when static or the default state when linked. */
|
|
592
592
|
--gl-badge-danger-text-color-active: var(--gl-color-red-900); /* Used for the text of a danger badge in the active state. */
|
|
593
593
|
--gl-badge-danger-text-color-hover: var(--gl-color-red-800); /* Used for the text of a danger badge in the hover state. */
|
|
594
594
|
--gl-badge-danger-text-color-default: var(--gl-color-red-700); /* Used for the text of a danger badge when static or the default state when linked. */
|