@gitlab/ui 91.12.0 → 91.13.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.
@@ -1868,6 +1868,47 @@
1868
1868
  "disabled"
1869
1869
  ]
1870
1870
  },
1871
+ "overlap": {
1872
+ "value": "#fff",
1873
+ "$type": "color",
1874
+ "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.",
1875
+ "filePath": "src/tokens/background.tokens.json",
1876
+ "isSource": true,
1877
+ "original": {
1878
+ "value": {
1879
+ "default": "{color.neutral.0}",
1880
+ "dark": "{color.neutral.800}"
1881
+ },
1882
+ "$type": "color",
1883
+ "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content."
1884
+ },
1885
+ "name": "BACKGROUND_COLOR_OVERLAP",
1886
+ "attributes": {},
1887
+ "path": [
1888
+ "background",
1889
+ "color",
1890
+ "overlap"
1891
+ ]
1892
+ },
1893
+ "section": {
1894
+ "value": "#fff",
1895
+ "$type": "color",
1896
+ "comment": "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.",
1897
+ "filePath": "src/tokens/background.tokens.json",
1898
+ "isSource": true,
1899
+ "original": {
1900
+ "value": "{background.color.overlap}",
1901
+ "$type": "color",
1902
+ "comment": "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."
1903
+ },
1904
+ "name": "BACKGROUND_COLOR_SECTION",
1905
+ "attributes": {},
1906
+ "path": [
1907
+ "background",
1908
+ "color",
1909
+ "section"
1910
+ ]
1911
+ },
1871
1912
  "overlay": {
1872
1913
  "value": "rgba(05, 05, 06, 0.24)",
1873
1914
  "$type": "color",
@@ -1960,6 +2001,28 @@
1960
2001
  "strong"
1961
2002
  ]
1962
2003
  },
2004
+ "section": {
2005
+ "value": "#dcdcde",
2006
+ "$type": "color",
2007
+ "comment": "Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.",
2008
+ "filePath": "src/tokens/border.tokens.json",
2009
+ "isSource": true,
2010
+ "original": {
2011
+ "value": {
2012
+ "default": "{border.color.default}",
2013
+ "dark": "{background.color.default}"
2014
+ },
2015
+ "$type": "color",
2016
+ "comment": "Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page."
2017
+ },
2018
+ "name": "BORDER_COLOR_SECTION",
2019
+ "attributes": {},
2020
+ "path": [
2021
+ "border",
2022
+ "color",
2023
+ "section"
2024
+ ]
2025
+ },
1963
2026
  "transparent": {
1964
2027
  "value": "transparent",
1965
2028
  "$type": "color",
@@ -721,6 +721,7 @@ $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border th
721
721
  $gl-border-color-subtle: $gl-color-neutral-900; // Used for a subtle border in combination with the default background.
722
722
  $gl-border-color-default: $gl-color-neutral-800; // Used for the default border color.
723
723
  $gl-background-color-overlay: rgba(0,0,0,0.64); // Used for an overlay that covers other content.
724
+ $gl-background-color-overlap: $gl-color-neutral-800; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
724
725
  $gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
725
726
  $gl-background-color-strong: $gl-color-neutral-800; // Used to make the background easily stand out from the default.
726
727
  $gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
@@ -834,6 +835,8 @@ $gl-alert-info-background-color: $gl-background-color-subtle; // Used for the ba
834
835
  $gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
835
836
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
836
837
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
838
+ $gl-border-color-section: $gl-background-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
839
+ $gl-background-color-section: $gl-background-color-overlap; // 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.
837
840
  $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.
838
841
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
839
842
  $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.
@@ -721,6 +721,7 @@ $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border th
721
721
  $gl-border-color-subtle: $gl-color-neutral-50; // Used for a subtle border in combination with the default background.
722
722
  $gl-border-color-default: $gl-color-neutral-100; // Used for the default border color.
723
723
  $gl-background-color-overlay: $gl-color-alpha-dark-24; // Used for an overlay that covers other content.
724
+ $gl-background-color-overlap: $gl-color-neutral-0; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
724
725
  $gl-background-color-disabled: $gl-color-neutral-10; // Used to identify a disabled section.
725
726
  $gl-background-color-strong: $gl-color-neutral-50; // Used to make the background easily stand out from the default.
726
727
  $gl-background-color-subtle: $gl-color-neutral-10; // Used to slightly differentiate the background from the default.
@@ -834,6 +835,8 @@ $gl-alert-info-background-color: $gl-feedback-info-background-color; // Used for
834
835
  $gl-alert-info-title-color: $gl-text-color-heading; // Used for the title color of an info alert.
835
836
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
836
837
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
838
+ $gl-border-color-section: $gl-border-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
839
+ $gl-background-color-section: $gl-background-color-overlap; // 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.
837
840
  $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.
838
841
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
839
842
  $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.
@@ -82,10 +82,13 @@ $gl-background-color-default: var(--gl-background-color-default);
82
82
  $gl-background-color-subtle: var(--gl-background-color-subtle);
83
83
  $gl-background-color-strong: var(--gl-background-color-strong);
84
84
  $gl-background-color-disabled: var(--gl-background-color-disabled);
85
+ $gl-background-color-overlap: var(--gl-background-color-overlap);
86
+ $gl-background-color-section: var(--gl-background-color-section);
85
87
  $gl-background-color-overlay: var(--gl-background-color-overlay);
86
88
  $gl-border-color-default: var(--gl-border-color-default);
87
89
  $gl-border-color-subtle: var(--gl-border-color-subtle);
88
90
  $gl-border-color-strong: var(--gl-border-color-strong);
91
+ $gl-border-color-section: var(--gl-border-color-section);
89
92
  $gl-border-color-transparent: var(--gl-border-color-transparent);
90
93
  $gl-color-alpha-0: var(--gl-color-alpha-0);
91
94
  $gl-color-alpha-dark-2: var(--gl-color-alpha-dark-2);
@@ -218,6 +218,8 @@ const backgroundColors = {
218
218
  subtle: 'var(--gl-background-color-subtle, var(--gl-color-neutral-10, #fbfafd))',
219
219
  strong: 'var(--gl-background-color-strong, var(--gl-color-neutral-50, #ececef))',
220
220
  disabled: 'var(--gl-background-color-disabled, var(--gl-color-neutral-10, #fbfafd))',
221
+ overlap: 'var(--gl-background-color-overlap, var(--gl-color-neutral-0, #fff))',
222
+ section: 'var(--gl-background-color-section, var(--gl-background-color-overlap, #fff))',
221
223
  overlay:
222
224
  'var(--gl-background-color-overlay, var(--gl-color-alpha-dark-24, rgba(05, 05, 06, 0.24)))',
223
225
  };
@@ -225,6 +227,7 @@ const borderColors = {
225
227
  default: 'var(--gl-border-color-default, var(--gl-color-neutral-100, #dcdcde))',
226
228
  subtle: 'var(--gl-border-color-subtle, var(--gl-color-neutral-50, #ececef))',
227
229
  strong: 'var(--gl-border-color-strong, var(--gl-color-neutral-400, #89888d))',
230
+ section: 'var(--gl-border-color-section, var(--gl-border-color-default, #dcdcde))',
228
231
  transparent: 'var(--gl-border-color-transparent, var(--gl-color-alpha-0, transparent))',
229
232
  };
230
233
  const iconColors = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "91.12.0",
3
+ "version": "91.13.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  position: absolute;
28
28
  @include gl-transition-medium;
29
29
  @include gl-opacity-0;
30
- right: $gl-spacing-scale-4;
30
+ right: $gl-spacing-scale-3;
31
31
  top: $gl-spacing-scale-3;
32
32
  }
33
33
 
@@ -62,4 +62,4 @@
62
62
  copy-code {
63
63
  margin-right: 0;
64
64
  }
65
- }
65
+ }
@@ -33,6 +33,19 @@
33
33
  "$type": "color",
34
34
  "$description": "Used to identify a disabled section."
35
35
  },
36
+ "overlap": {
37
+ "$value": {
38
+ "default": "{color.neutral.0}",
39
+ "dark": "{color.neutral.800}"
40
+ },
41
+ "$type": "color",
42
+ "$description": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content."
43
+ },
44
+ "section": {
45
+ "$value": "{background.color.overlap}",
46
+ "$type": "color",
47
+ "$description": "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."
48
+ },
36
49
  "overlay": {
37
50
  "$value": {
38
51
  "default": "{color.alpha.dark.24}",
@@ -25,6 +25,14 @@
25
25
  "$type": "color",
26
26
  "$description": "Used for a distinct border that emphasizes an edge or boundaries."
27
27
  },
28
+ "section": {
29
+ "$value": {
30
+ "default": "{border.color.default}",
31
+ "dark": "{background.color.default}"
32
+ },
33
+ "$type": "color",
34
+ "$description": "Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page."
35
+ },
28
36
  "transparent": {
29
37
  "$value": "{color.alpha.0}",
30
38
  "$type": "color",
@@ -723,6 +723,7 @@
723
723
  --gl-border-color-subtle: var(--gl-color-neutral-50); /* Used for a subtle border in combination with the default background. */
724
724
  --gl-border-color-default: var(--gl-color-neutral-100); /* Used for the default border color. */
725
725
  --gl-background-color-overlay: var(--gl-color-alpha-dark-24); /* Used for an overlay that covers other content. */
726
+ --gl-background-color-overlap: var(--gl-color-neutral-0); /* Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content. */
726
727
  --gl-background-color-disabled: var(--gl-color-neutral-10); /* Used to identify a disabled section. */
727
728
  --gl-background-color-strong: var(--gl-color-neutral-50); /* Used to make the background easily stand out from the default. */
728
729
  --gl-background-color-subtle: var(--gl-color-neutral-10); /* Used to slightly differentiate the background from the default. */
@@ -836,6 +837,8 @@
836
837
  --gl-alert-info-title-color: var(--gl-text-color-heading); /* Used for the title color of an info alert. */
837
838
  --gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /* Used for the background color of a neutral alert. */
838
839
  --gl-alert-neutral-title-color: var(--gl-text-color-heading); /* Used for the title color of a neutral alert. */
840
+ --gl-border-color-section: var(--gl-border-color-default); /* Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page. */
841
+ --gl-background-color-section: var(--gl-background-color-overlap); /* 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. */
839
842
  --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. */
840
843
  --gl-action-strong-neutral-foreground-color-hover: var(--gl-action-strong-neutral-foreground-color-default); /* Used for the foreground of a strong neutral action in the hover state. */
841
844
  --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. */
@@ -723,6 +723,7 @@
723
723
  --gl-border-color-subtle: var(--gl-color-neutral-900); /* Used for a subtle border in combination with the default background. */
724
724
  --gl-border-color-default: var(--gl-color-neutral-800); /* Used for the default border color. */
725
725
  --gl-background-color-overlay: rgba(0,0,0,0.64); /* Used for an overlay that covers other content. */
726
+ --gl-background-color-overlap: var(--gl-color-neutral-800); /* Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content. */
726
727
  --gl-background-color-disabled: var(--gl-color-neutral-900); /* Used to identify a disabled section. */
727
728
  --gl-background-color-strong: var(--gl-color-neutral-800); /* Used to make the background easily stand out from the default. */
728
729
  --gl-background-color-subtle: var(--gl-color-neutral-900); /* Used to slightly differentiate the background from the default. */
@@ -836,6 +837,8 @@
836
837
  --gl-alert-info-title-color: var(--gl-color-blue-300); /* Used for the title color of an info alert. */
837
838
  --gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /* Used for the background color of a neutral alert. */
838
839
  --gl-alert-neutral-title-color: var(--gl-text-color-heading); /* Used for the title color of a neutral alert. */
840
+ --gl-border-color-section: var(--gl-background-color-default); /* Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page. */
841
+ --gl-background-color-section: var(--gl-background-color-overlap); /* 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. */
839
842
  --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. */
840
843
  --gl-action-strong-neutral-foreground-color-hover: var(--gl-action-strong-neutral-foreground-color-default); /* Used for the foreground of a strong neutral action in the hover state. */
841
844
  --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. */
@@ -82,10 +82,13 @@ export const GL_BACKGROUND_COLOR_DEFAULT = '#18171d'; // Used for the default ba
82
82
  export const GL_BACKGROUND_COLOR_SUBTLE = '#28272d'; // Used to slightly differentiate the background from the default.
83
83
  export const GL_BACKGROUND_COLOR_STRONG = '#3a383f'; // Used to make the background easily stand out from the default.
84
84
  export const GL_BACKGROUND_COLOR_DISABLED = '#28272d'; // Used to identify a disabled section.
85
+ export const GL_BACKGROUND_COLOR_OVERLAP = '#3a383f'; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
86
+ export const GL_BACKGROUND_COLOR_SECTION = '#3a383f'; // 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.
85
87
  export const GL_BACKGROUND_COLOR_OVERLAY = 'rgba(0,0,0,0.64)'; // Used for an overlay that covers other content.
86
88
  export const GL_BORDER_COLOR_DEFAULT = '#3a383f'; // Used for the default border color.
87
89
  export const GL_BORDER_COLOR_SUBTLE = '#28272d'; // Used for a subtle border in combination with the default background.
88
90
  export const GL_BORDER_COLOR_STRONG = '#89888d'; // Used for a distinct border that emphasizes an edge or boundaries.
91
+ export const GL_BORDER_COLOR_SECTION = '#18171d'; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
89
92
  export const GL_BORDER_COLOR_TRANSPARENT = 'transparent'; // Used when a border needs to be present, but not visibly perceived.
90
93
  export const GL_COLOR_ALPHA_0 = 'transparent';
91
94
  export const GL_COLOR_ALPHA_DARK_2 = 'rgba(05, 05, 06, 0.02)';
@@ -82,10 +82,13 @@ export const GL_BACKGROUND_COLOR_DEFAULT = '#fff'; // Used for the default backg
82
82
  export const GL_BACKGROUND_COLOR_SUBTLE = '#fbfafd'; // Used to slightly differentiate the background from the default.
83
83
  export const GL_BACKGROUND_COLOR_STRONG = '#ececef'; // Used to make the background easily stand out from the default.
84
84
  export const GL_BACKGROUND_COLOR_DISABLED = '#fbfafd'; // Used to identify a disabled section.
85
+ export const GL_BACKGROUND_COLOR_OVERLAP = '#fff'; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
86
+ export const GL_BACKGROUND_COLOR_SECTION = '#fff'; // 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.
85
87
  export const GL_BACKGROUND_COLOR_OVERLAY = 'rgba(05, 05, 06, 0.24)'; // Used for an overlay that covers other content.
86
88
  export const GL_BORDER_COLOR_DEFAULT = '#dcdcde'; // Used for the default border color.
87
89
  export const GL_BORDER_COLOR_SUBTLE = '#ececef'; // Used for a subtle border in combination with the default background.
88
90
  export const GL_BORDER_COLOR_STRONG = '#89888d'; // Used for a distinct border that emphasizes an edge or boundaries.
91
+ export const GL_BORDER_COLOR_SECTION = '#dcdcde'; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
89
92
  export const GL_BORDER_COLOR_TRANSPARENT = 'transparent'; // Used when a border needs to be present, but not visibly perceived.
90
93
  export const GL_COLOR_ALPHA_0 = 'transparent';
91
94
  export const GL_COLOR_ALPHA_DARK_2 = 'rgba(05, 05, 06, 0.02)';
@@ -1868,6 +1868,47 @@
1868
1868
  "disabled"
1869
1869
  ]
1870
1870
  },
1871
+ "overlap": {
1872
+ "value": "#3a383f",
1873
+ "$type": "color",
1874
+ "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.",
1875
+ "filePath": "src/tokens/background.tokens.json",
1876
+ "isSource": true,
1877
+ "original": {
1878
+ "value": {
1879
+ "default": "{color.neutral.0}",
1880
+ "dark": "{color.neutral.800}"
1881
+ },
1882
+ "$type": "color",
1883
+ "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content."
1884
+ },
1885
+ "name": "BACKGROUND_COLOR_OVERLAP",
1886
+ "attributes": {},
1887
+ "path": [
1888
+ "background",
1889
+ "color",
1890
+ "overlap"
1891
+ ]
1892
+ },
1893
+ "section": {
1894
+ "value": "#3a383f",
1895
+ "$type": "color",
1896
+ "comment": "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.",
1897
+ "filePath": "src/tokens/background.tokens.json",
1898
+ "isSource": true,
1899
+ "original": {
1900
+ "value": "{background.color.overlap}",
1901
+ "$type": "color",
1902
+ "comment": "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."
1903
+ },
1904
+ "name": "BACKGROUND_COLOR_SECTION",
1905
+ "attributes": {},
1906
+ "path": [
1907
+ "background",
1908
+ "color",
1909
+ "section"
1910
+ ]
1911
+ },
1871
1912
  "overlay": {
1872
1913
  "value": "rgba(0,0,0,0.64)",
1873
1914
  "$type": "color",
@@ -1960,6 +2001,28 @@
1960
2001
  "strong"
1961
2002
  ]
1962
2003
  },
2004
+ "section": {
2005
+ "value": "#18171d",
2006
+ "$type": "color",
2007
+ "comment": "Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.",
2008
+ "filePath": "src/tokens/border.tokens.json",
2009
+ "isSource": true,
2010
+ "original": {
2011
+ "value": {
2012
+ "default": "{border.color.default}",
2013
+ "dark": "{background.color.default}"
2014
+ },
2015
+ "$type": "color",
2016
+ "comment": "Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page."
2017
+ },
2018
+ "name": "BORDER_COLOR_SECTION",
2019
+ "attributes": {},
2020
+ "path": [
2021
+ "border",
2022
+ "color",
2023
+ "section"
2024
+ ]
2025
+ },
1963
2026
  "transparent": {
1964
2027
  "value": "transparent",
1965
2028
  "$type": "color",
@@ -1868,6 +1868,47 @@
1868
1868
  "disabled"
1869
1869
  ]
1870
1870
  },
1871
+ "overlap": {
1872
+ "value": "#fff",
1873
+ "$type": "color",
1874
+ "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.",
1875
+ "filePath": "src/tokens/background.tokens.json",
1876
+ "isSource": true,
1877
+ "original": {
1878
+ "value": {
1879
+ "default": "{color.neutral.0}",
1880
+ "dark": "{color.neutral.800}"
1881
+ },
1882
+ "$type": "color",
1883
+ "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content."
1884
+ },
1885
+ "name": "BACKGROUND_COLOR_OVERLAP",
1886
+ "attributes": {},
1887
+ "path": [
1888
+ "background",
1889
+ "color",
1890
+ "overlap"
1891
+ ]
1892
+ },
1893
+ "section": {
1894
+ "value": "#fff",
1895
+ "$type": "color",
1896
+ "comment": "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.",
1897
+ "filePath": "src/tokens/background.tokens.json",
1898
+ "isSource": true,
1899
+ "original": {
1900
+ "value": "{background.color.overlap}",
1901
+ "$type": "color",
1902
+ "comment": "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."
1903
+ },
1904
+ "name": "BACKGROUND_COLOR_SECTION",
1905
+ "attributes": {},
1906
+ "path": [
1907
+ "background",
1908
+ "color",
1909
+ "section"
1910
+ ]
1911
+ },
1871
1912
  "overlay": {
1872
1913
  "value": "rgba(05, 05, 06, 0.24)",
1873
1914
  "$type": "color",
@@ -1960,6 +2001,28 @@
1960
2001
  "strong"
1961
2002
  ]
1962
2003
  },
2004
+ "section": {
2005
+ "value": "#dcdcde",
2006
+ "$type": "color",
2007
+ "comment": "Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.",
2008
+ "filePath": "src/tokens/border.tokens.json",
2009
+ "isSource": true,
2010
+ "original": {
2011
+ "value": {
2012
+ "default": "{border.color.default}",
2013
+ "dark": "{background.color.default}"
2014
+ },
2015
+ "$type": "color",
2016
+ "comment": "Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page."
2017
+ },
2018
+ "name": "BORDER_COLOR_SECTION",
2019
+ "attributes": {},
2020
+ "path": [
2021
+ "border",
2022
+ "color",
2023
+ "section"
2024
+ ]
2025
+ },
1963
2026
  "transparent": {
1964
2027
  "value": "transparent",
1965
2028
  "$type": "color",
@@ -721,6 +721,7 @@ $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border th
721
721
  $gl-border-color-subtle: $gl-color-neutral-900; // Used for a subtle border in combination with the default background.
722
722
  $gl-border-color-default: $gl-color-neutral-800; // Used for the default border color.
723
723
  $gl-background-color-overlay: rgba(0,0,0,0.64); // Used for an overlay that covers other content.
724
+ $gl-background-color-overlap: $gl-color-neutral-800; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
724
725
  $gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
725
726
  $gl-background-color-strong: $gl-color-neutral-800; // Used to make the background easily stand out from the default.
726
727
  $gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
@@ -834,6 +835,8 @@ $gl-alert-info-background-color: $gl-background-color-subtle; // Used for the ba
834
835
  $gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
835
836
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
836
837
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
838
+ $gl-border-color-section: $gl-background-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
839
+ $gl-background-color-section: $gl-background-color-overlap; // 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.
837
840
  $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.
838
841
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
839
842
  $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.
@@ -721,6 +721,7 @@ $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border th
721
721
  $gl-border-color-subtle: $gl-color-neutral-50; // Used for a subtle border in combination with the default background.
722
722
  $gl-border-color-default: $gl-color-neutral-100; // Used for the default border color.
723
723
  $gl-background-color-overlay: $gl-color-alpha-dark-24; // Used for an overlay that covers other content.
724
+ $gl-background-color-overlap: $gl-color-neutral-0; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
724
725
  $gl-background-color-disabled: $gl-color-neutral-10; // Used to identify a disabled section.
725
726
  $gl-background-color-strong: $gl-color-neutral-50; // Used to make the background easily stand out from the default.
726
727
  $gl-background-color-subtle: $gl-color-neutral-10; // Used to slightly differentiate the background from the default.
@@ -834,6 +835,8 @@ $gl-alert-info-background-color: $gl-feedback-info-background-color; // Used for
834
835
  $gl-alert-info-title-color: $gl-text-color-heading; // Used for the title color of an info alert.
835
836
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
836
837
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
838
+ $gl-border-color-section: $gl-border-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
839
+ $gl-background-color-section: $gl-background-color-overlap; // 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.
837
840
  $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.
838
841
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
839
842
  $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.
@@ -82,10 +82,13 @@ $gl-background-color-default: var(--gl-background-color-default);
82
82
  $gl-background-color-subtle: var(--gl-background-color-subtle);
83
83
  $gl-background-color-strong: var(--gl-background-color-strong);
84
84
  $gl-background-color-disabled: var(--gl-background-color-disabled);
85
+ $gl-background-color-overlap: var(--gl-background-color-overlap);
86
+ $gl-background-color-section: var(--gl-background-color-section);
85
87
  $gl-background-color-overlay: var(--gl-background-color-overlay);
86
88
  $gl-border-color-default: var(--gl-border-color-default);
87
89
  $gl-border-color-subtle: var(--gl-border-color-subtle);
88
90
  $gl-border-color-strong: var(--gl-border-color-strong);
91
+ $gl-border-color-section: var(--gl-border-color-section);
89
92
  $gl-border-color-transparent: var(--gl-border-color-transparent);
90
93
  $gl-color-alpha-0: var(--gl-color-alpha-0);
91
94
  $gl-color-alpha-dark-2: var(--gl-color-alpha-dark-2);
@@ -218,6 +218,8 @@ const backgroundColors = {
218
218
  subtle: 'var(--gl-background-color-subtle, var(--gl-color-neutral-10, #fbfafd))',
219
219
  strong: 'var(--gl-background-color-strong, var(--gl-color-neutral-50, #ececef))',
220
220
  disabled: 'var(--gl-background-color-disabled, var(--gl-color-neutral-10, #fbfafd))',
221
+ overlap: 'var(--gl-background-color-overlap, var(--gl-color-neutral-0, #fff))',
222
+ section: 'var(--gl-background-color-section, var(--gl-background-color-overlap, #fff))',
221
223
  overlay:
222
224
  'var(--gl-background-color-overlay, var(--gl-color-alpha-dark-24, rgba(05, 05, 06, 0.24)))',
223
225
  };
@@ -225,6 +227,7 @@ const borderColors = {
225
227
  default: 'var(--gl-border-color-default, var(--gl-color-neutral-100, #dcdcde))',
226
228
  subtle: 'var(--gl-border-color-subtle, var(--gl-color-neutral-50, #ececef))',
227
229
  strong: 'var(--gl-border-color-strong, var(--gl-color-neutral-400, #89888d))',
230
+ section: 'var(--gl-border-color-section, var(--gl-border-color-default, #dcdcde))',
228
231
  transparent: 'var(--gl-border-color-transparent, var(--gl-color-alpha-0, transparent))',
229
232
  };
230
233
  const iconColors = {