@gitlab/ui 134.1.3 → 134.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/dist/components/base/form/form_date/form_date.js +17 -1
- package/dist/components/base/nav_item/nav_item.js +122 -0
- package/dist/components/index.js +1 -0
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +20 -1
- package/dist/tokens/build/js/tokens.js +20 -1
- package/package.json +16 -15
- package/src/components/base/form/form_date/form_date.vue +18 -0
- package/src/components/base/nav_item/nav_item.scss +90 -0
- package/src/components/base/nav_item/nav_item.vue +156 -0
- package/src/components/index.js +1 -0
- package/src/scss/components.scss +1 -0
- package/src/tokens/build/css/tokens.css +19 -0
- package/src/tokens/build/css/tokens.dark.css +19 -0
- package/src/tokens/build/figma/mode.dark.json +190 -0
- package/src/tokens/build/figma/mode.json +190 -0
- package/src/tokens/build/js/tokens.dark.js +19 -0
- package/src/tokens/build/js/tokens.js +19 -0
- package/src/tokens/build/json/tokens.dark.json +658 -0
- package/src/tokens/build/json/tokens.json +658 -0
- package/src/tokens/build/scss/_tokens.dark.scss +19 -0
- package/src/tokens/build/scss/_tokens.scss +19 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +19 -0
- package/src/tokens/contextual/nav.tokens.json +218 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "134.
|
|
3
|
+
"version": "134.3.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -92,19 +92,19 @@
|
|
|
92
92
|
"chokidar": "^4.0.3",
|
|
93
93
|
"sane": "^5.0.1",
|
|
94
94
|
"jackspeak": "2.3.6",
|
|
95
|
-
"postcss": "8.5.
|
|
95
|
+
"postcss": "8.5.15",
|
|
96
96
|
"json5": "2.2.3",
|
|
97
97
|
"rollup-plugin-vue/@vue/component-compiler/postcss-modules-sync/generic-names/loader-utils": "3.3.1"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@adobe/leonardo-contrast-colors": "^1.1.0",
|
|
101
|
-
"@babel/core": "^7.29.
|
|
101
|
+
"@babel/core": "^7.29.7",
|
|
102
102
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
103
103
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
104
|
-
"@babel/preset-env": "^7.29.
|
|
105
|
-
"@babel/preset-react": "^7.
|
|
104
|
+
"@babel/preset-env": "^7.29.7",
|
|
105
|
+
"@babel/preset-react": "^7.29.7",
|
|
106
106
|
"@cypress/grep": "^4.1.1",
|
|
107
|
-
"@figma/code-connect": "^1.4.
|
|
107
|
+
"@figma/code-connect": "^1.4.7",
|
|
108
108
|
"@gitlab/fonts": "^1.3.1",
|
|
109
109
|
"@gitlab/hybrid-vue": "npm:@vue/compat@3.5.34",
|
|
110
110
|
"@gitlab/svgs": "*",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"@vue/compiler-sfc": "3.5.32",
|
|
131
131
|
"@vue/server-renderer": "3.5.32",
|
|
132
132
|
"@vue/test-utils": "1.3.6",
|
|
133
|
-
"@vue/test-utils-vue3": "npm:@vue/test-utils@^2.4.
|
|
133
|
+
"@vue/test-utils-vue3": "npm:@vue/test-utils@^2.4.11",
|
|
134
134
|
"@vue/vue2-jest": "29.2.6",
|
|
135
135
|
"@vue/vue3-jest": "^29.2.6",
|
|
136
136
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
@@ -139,24 +139,25 @@
|
|
|
139
139
|
"autoprefixer": "10.5.0",
|
|
140
140
|
"axe-playwright": "^2.2.2",
|
|
141
141
|
"babel-loader": "^9.2.1",
|
|
142
|
-
"cypress": "15.
|
|
142
|
+
"cypress": "15.16.0",
|
|
143
143
|
"cypress-real-events": "^1.15.0",
|
|
144
144
|
"dompurify": "^3.1.2",
|
|
145
145
|
"emoji-regex": "^10.6.0",
|
|
146
146
|
"gitlab-api-async-iterator": "^1.3.1",
|
|
147
147
|
"glob": "11.1.0",
|
|
148
148
|
"identity-obj-proxy": "^3.0.0",
|
|
149
|
-
"jest": "30.
|
|
150
|
-
"jest-circus": "30.
|
|
151
|
-
"jest-environment-jsdom": "30.
|
|
149
|
+
"jest": "30.4.2",
|
|
150
|
+
"jest-circus": "30.4.2",
|
|
151
|
+
"jest-environment-jsdom": "30.4.1",
|
|
152
|
+
"jest-environment-node": "30.4.1",
|
|
152
153
|
"jest-image-snapshot": "^6.5.2",
|
|
153
|
-
"merge-cobertura": "^1.0.
|
|
154
|
+
"merge-cobertura": "^1.0.9",
|
|
154
155
|
"mockdate": "^3.0.5",
|
|
155
156
|
"module-alias": "^2.3.4",
|
|
156
157
|
"pikaday": "^1.8.0",
|
|
157
158
|
"playwright": "^1.60.0",
|
|
158
159
|
"playwright-core": "^1.60.0",
|
|
159
|
-
"postcss": "8.5.
|
|
160
|
+
"postcss": "8.5.15",
|
|
160
161
|
"postcss-loader": "8.2.1",
|
|
161
162
|
"postcss-scss": "4.0.9",
|
|
162
163
|
"react": "18.3.1",
|
|
@@ -167,13 +168,13 @@
|
|
|
167
168
|
"rollup-plugin-string": "^3.0.0",
|
|
168
169
|
"rollup-plugin-svg": "^2.0.0",
|
|
169
170
|
"rollup-plugin-vue": "^5.1.9",
|
|
170
|
-
"sass": "^1.
|
|
171
|
+
"sass": "^1.100.0",
|
|
171
172
|
"sass-loader": "^10.5.2",
|
|
172
173
|
"sass-true": "^9",
|
|
173
174
|
"start-server-and-test": "^2.1.5",
|
|
174
175
|
"storybook": "^7.6.24",
|
|
175
176
|
"storybook-dark-mode": "4.0.2",
|
|
176
|
-
"style-dictionary": "^5.4.
|
|
177
|
+
"style-dictionary": "^5.4.2",
|
|
177
178
|
"style-loader": "^4",
|
|
178
179
|
"tailwindcss": "3.4.19",
|
|
179
180
|
"vue": "2.7.16",
|
|
@@ -101,6 +101,22 @@ export default {
|
|
|
101
101
|
this.updateValueAsDate();
|
|
102
102
|
this.$emit('change', $event);
|
|
103
103
|
},
|
|
104
|
+
onKeydown($event) {
|
|
105
|
+
/**
|
|
106
|
+
* Emitted when a key is pressed inside the date input.
|
|
107
|
+
*
|
|
108
|
+
* @event keydown
|
|
109
|
+
*/
|
|
110
|
+
this.$emit('keydown', $event);
|
|
111
|
+
},
|
|
112
|
+
onBlur($event) {
|
|
113
|
+
/**
|
|
114
|
+
* Emitted when the date input loses focus.
|
|
115
|
+
*
|
|
116
|
+
* @event blur
|
|
117
|
+
*/
|
|
118
|
+
this.$emit('blur', $event);
|
|
119
|
+
},
|
|
104
120
|
},
|
|
105
121
|
};
|
|
106
122
|
</script>
|
|
@@ -119,6 +135,8 @@ export default {
|
|
|
119
135
|
:state="state"
|
|
120
136
|
type="date"
|
|
121
137
|
@change="onChange"
|
|
138
|
+
@keydown="onKeydown"
|
|
139
|
+
@blur="onBlur"
|
|
122
140
|
/>
|
|
123
141
|
<output v-if="outputValue" :id="outputId" ref="output" :for="inputId" class="gl-sr-only">
|
|
124
142
|
{{ outputValue }}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.gl-nav-item {
|
|
2
|
+
@apply gl-relative;
|
|
3
|
+
@apply gl-flex;
|
|
4
|
+
@apply gl-items-center;
|
|
5
|
+
@apply gl-gap-3;
|
|
6
|
+
@apply gl-py-1;
|
|
7
|
+
@apply gl-px-3;
|
|
8
|
+
@apply gl-w-full;
|
|
9
|
+
@apply gl-no-underline;
|
|
10
|
+
@apply gl-text-left;
|
|
11
|
+
@apply gl-border-none;
|
|
12
|
+
@apply gl-cursor-pointer;
|
|
13
|
+
@apply gl-appearance-none;
|
|
14
|
+
@apply focus:gl-focus-inset;
|
|
15
|
+
min-height: 1.75rem;
|
|
16
|
+
min-width: 1.75rem;
|
|
17
|
+
border-radius: var(--gl-nav-item-border-radius);
|
|
18
|
+
font-size: var(--gl-nav-item-font-size);
|
|
19
|
+
font-weight: var(--gl-nav-item-font-weight);
|
|
20
|
+
color: var(--gl-nav-item-foreground-color-default);
|
|
21
|
+
background-color: var(--gl-nav-item-background-color-default);
|
|
22
|
+
|
|
23
|
+
&.gl-nav-item-is-icon-only {
|
|
24
|
+
@apply gl-px-2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.gl-nav-item-has-start-slot {
|
|
28
|
+
@apply gl-pl-2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.gl-nav-item-has-end-slot {
|
|
32
|
+
@apply gl-pr-2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
@apply gl-no-underline;
|
|
37
|
+
color: var(--gl-nav-item-foreground-color-hover);
|
|
38
|
+
background-color: var(--gl-nav-item-background-color-hover);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:focus {
|
|
42
|
+
color: var(--gl-nav-item-foreground-color-focus);
|
|
43
|
+
background-color: var(--gl-nav-item-background-color-focus);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:active,
|
|
47
|
+
&:focus:active {
|
|
48
|
+
color: var(--gl-nav-item-foreground-color-active);
|
|
49
|
+
background-color: var(--gl-nav-item-background-color-active);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.selected {
|
|
53
|
+
color: var(--gl-nav-item-selected-foreground-color-default);
|
|
54
|
+
background-color: var(--gl-nav-item-selected-background-color-default);
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
color: var(--gl-nav-item-selected-foreground-color-hover);
|
|
58
|
+
background-color: var(--gl-nav-item-selected-background-color-hover);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:focus {
|
|
62
|
+
color: var(--gl-nav-item-selected-foreground-color-focus);
|
|
63
|
+
background-color: var(--gl-nav-item-selected-background-color-focus);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:active,
|
|
67
|
+
&:focus:active {
|
|
68
|
+
color: var(--gl-nav-item-selected-foreground-color-active);
|
|
69
|
+
background-color: var(--gl-nav-item-selected-background-color-active);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.gl-nav-item-slot {
|
|
75
|
+
@apply gl-flex;
|
|
76
|
+
@apply gl-items-center;
|
|
77
|
+
@apply gl-justify-center;
|
|
78
|
+
@apply gl-h-6;
|
|
79
|
+
@apply gl-w-6;
|
|
80
|
+
@apply gl-shrink-0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.gl-nav-item-label {
|
|
84
|
+
@apply gl-grow;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.gl-nav-item-chevron {
|
|
88
|
+
@apply gl-m-auto;
|
|
89
|
+
@apply gl-text-subtle;
|
|
90
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import GlAnimatedChevronRightDownIcon from '../animated_icon/animated_chevron_right_down_icon.vue';
|
|
3
|
+
import GlIcon from '../icon/icon.vue';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: 'GlNavItem',
|
|
7
|
+
components: {
|
|
8
|
+
GlAnimatedChevronRightDownIcon,
|
|
9
|
+
GlIcon,
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
/**
|
|
13
|
+
* Link href attribute
|
|
14
|
+
*/
|
|
15
|
+
href: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: false,
|
|
18
|
+
default: null,
|
|
19
|
+
},
|
|
20
|
+
/**
|
|
21
|
+
* Icon name
|
|
22
|
+
*/
|
|
23
|
+
icon: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false,
|
|
26
|
+
default: null,
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* Is icon only
|
|
30
|
+
*/
|
|
31
|
+
isIconOnly: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: false,
|
|
34
|
+
default: false,
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Is parent
|
|
38
|
+
*/
|
|
39
|
+
isParent: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
required: false,
|
|
42
|
+
default: false,
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* Expanded
|
|
46
|
+
*/
|
|
47
|
+
expanded: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
required: false,
|
|
50
|
+
default: false,
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* Is currently selected
|
|
54
|
+
*/
|
|
55
|
+
selected: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: false,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* Router link to property
|
|
62
|
+
*/
|
|
63
|
+
to: {
|
|
64
|
+
type: [String, Object],
|
|
65
|
+
required: false,
|
|
66
|
+
default: null,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
computed: {
|
|
70
|
+
ariaExpanded() {
|
|
71
|
+
return this.isParent ? String(this.expanded) : null;
|
|
72
|
+
},
|
|
73
|
+
classes() {
|
|
74
|
+
return [
|
|
75
|
+
'gl-nav-item',
|
|
76
|
+
{
|
|
77
|
+
'gl-nav-item-is-icon-only': this.isIconOnly,
|
|
78
|
+
'gl-nav-item-has-start-slot': this.icon || Boolean(this.$scopedSlots.icon),
|
|
79
|
+
'gl-nav-item-has-end-slot': Boolean(this.$scopedSlots.end) || this.isParent,
|
|
80
|
+
selected: this.selected,
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
</script>
|
|
87
|
+
|
|
88
|
+
<template>
|
|
89
|
+
<router-link v-if="to" #default="{ navigate }" :to="to" active-class="selected" custom>
|
|
90
|
+
<a :class="classes" :aria-current="selected ? 'page' : null" @click="navigate">
|
|
91
|
+
<span v-if="icon || $scopedSlots.icon" class="gl-nav-item-slot" data-testid="nav-item-start">
|
|
92
|
+
<slot name="icon">
|
|
93
|
+
<gl-icon :name="icon" />
|
|
94
|
+
</slot>
|
|
95
|
+
</span>
|
|
96
|
+
<template v-if="!isIconOnly">
|
|
97
|
+
<span v-if="$scopedSlots.default" class="gl-nav-item-label" data-testid="nav-item-label">
|
|
98
|
+
<slot :is-active="selected"></slot>
|
|
99
|
+
</span>
|
|
100
|
+
<span v-if="$scopedSlots.end" class="gl-nav-item-slot" data-testid="nav-item-end">
|
|
101
|
+
<slot name="end"></slot>
|
|
102
|
+
</span>
|
|
103
|
+
</template>
|
|
104
|
+
</a>
|
|
105
|
+
</router-link>
|
|
106
|
+
<a
|
|
107
|
+
v-else-if="href"
|
|
108
|
+
:class="classes"
|
|
109
|
+
:href="href"
|
|
110
|
+
:aria-current="selected ? 'page' : null"
|
|
111
|
+
@click="$emit('click')"
|
|
112
|
+
@keydown.escape="$emit('escape')"
|
|
113
|
+
@pointerover="$emit('pointerover', $event)"
|
|
114
|
+
@pointerleave="$emit('pointerleave', $event)"
|
|
115
|
+
>
|
|
116
|
+
<span v-if="icon || $scopedSlots.icon" class="gl-nav-item-slot" data-testid="nav-item-start">
|
|
117
|
+
<slot name="icon">
|
|
118
|
+
<gl-icon :name="icon" />
|
|
119
|
+
</slot>
|
|
120
|
+
</span>
|
|
121
|
+
<template v-if="!isIconOnly">
|
|
122
|
+
<span v-if="$scopedSlots.default" class="gl-nav-item-label" data-testid="nav-item-label">
|
|
123
|
+
<slot></slot>
|
|
124
|
+
</span>
|
|
125
|
+
<span v-if="$scopedSlots.end" class="gl-nav-item-slot" data-testid="nav-item-end">
|
|
126
|
+
<slot name="end"></slot>
|
|
127
|
+
</span>
|
|
128
|
+
</template>
|
|
129
|
+
</a>
|
|
130
|
+
<button
|
|
131
|
+
v-else
|
|
132
|
+
:aria-expanded="ariaExpanded"
|
|
133
|
+
:class="classes"
|
|
134
|
+
@click="$emit('click')"
|
|
135
|
+
@keydown.escape="$emit('escape')"
|
|
136
|
+
@pointerover="$emit('pointerover', $event)"
|
|
137
|
+
@pointerleave="$emit('pointerleave', $event)"
|
|
138
|
+
>
|
|
139
|
+
<span v-if="icon || $scopedSlots.icon" class="gl-nav-item-slot" data-testid="nav-item-start">
|
|
140
|
+
<slot name="icon">
|
|
141
|
+
<gl-icon :name="icon" />
|
|
142
|
+
</slot>
|
|
143
|
+
</span>
|
|
144
|
+
<template v-if="!isIconOnly">
|
|
145
|
+
<span v-if="$scopedSlots.default" class="gl-nav-item-label" data-testid="nav-item-label">
|
|
146
|
+
<slot></slot>
|
|
147
|
+
</span>
|
|
148
|
+
<span v-if="$scopedSlots.end" class="gl-nav-item-slot" data-testid="nav-item-end">
|
|
149
|
+
<slot name="end"></slot>
|
|
150
|
+
</span>
|
|
151
|
+
<span v-else-if="isParent" class="gl-nav-item-slot" data-testid="nav-item-chevron">
|
|
152
|
+
<gl-animated-chevron-right-down-icon class="gl-nav-item-chevron" :is-on="expanded" />
|
|
153
|
+
</span>
|
|
154
|
+
</template>
|
|
155
|
+
</button>
|
|
156
|
+
</template>
|
package/src/components/index.js
CHANGED
|
@@ -96,6 +96,7 @@ export { default as GlBroadcastMessage } from './base/broadcast_message/broadcas
|
|
|
96
96
|
export { default as GlCollapse } from './base/collapse/collapse.vue';
|
|
97
97
|
export { default as GlAccordion } from './base/accordion/accordion.vue';
|
|
98
98
|
export { default as GlAccordionItem } from './base/accordion/accordion_item.vue';
|
|
99
|
+
export { default as GlNavItem } from './base/nav_item/nav_item.vue';
|
|
99
100
|
|
|
100
101
|
// Dashboards
|
|
101
102
|
export { default as GlDashboardLayout } from './dashboards/dashboard_layout/dashboard_layout.vue';
|
package/src/scss/components.scss
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
@import "../components/base/loading_icon/loading_icon";
|
|
52
52
|
@import "../components/base/markdown/markdown";
|
|
53
53
|
@import "../components/base/modal/modal";
|
|
54
|
+
@import "../components/base/nav_item/nav_item";
|
|
54
55
|
@import "../components/base/button/button";
|
|
55
56
|
@import "../components/base/button_group/button_group";
|
|
56
57
|
@import "../components/base/pagination/pagination";
|
|
@@ -298,6 +298,7 @@
|
|
|
298
298
|
--gl-illustration-isometric-base-top-fill-color: #e7e4f2; /** Used for the top surface of an isometric base platform. */
|
|
299
299
|
--gl-illustration-isometric-base-front-fill-color: #d5d0e8; /** Used for the front face of an isometric base platform. */
|
|
300
300
|
--gl-illustration-isometric-base-side-fill-color: #aea5d6; /** Used for the side face of an isometric base platform. */
|
|
301
|
+
--gl-nav-item-font-weight: 425; /** Used for the font weight of a navigation item */
|
|
301
302
|
--data-viz-green-50: #ddfab7;
|
|
302
303
|
--data-viz-green-100: #c6ed94;
|
|
303
304
|
--data-viz-green-200: #b0d97b;
|
|
@@ -646,6 +647,10 @@
|
|
|
646
647
|
--gl-link-mention-text-color-current: var(--gl-color-orange-800); /** Used for the mention link text color when referencing the current user. */
|
|
647
648
|
--gl-link-mention-background-color-default: var(--gl-color-blue-100); /** Used for the mention link default background. */
|
|
648
649
|
--gl-link-mention-background-color-current: var(--gl-color-orange-100); /** Used for the mention link background when referencing the current user. */
|
|
650
|
+
--gl-nav-item-font-size: var(--gl-font-size-300); /** Used for the font size of a navigation item */
|
|
651
|
+
--gl-nav-item-background-color-default: var(--gl-action-neutral-background-color-default); /** Used for the background of a default navigation item in the default state. */
|
|
652
|
+
--gl-nav-item-background-color-hover: var(--gl-action-neutral-background-color-hover); /** Used for the background of a default navigation item in the hover state. */
|
|
653
|
+
--gl-nav-item-background-color-active: var(--gl-action-neutral-background-color-active); /** Used for the background of a default navigation item in the active state. */
|
|
649
654
|
--gl-progress-bar-track-color: var(--gl-color-neutral-200); /** Used for the track color for all progress-bar variants. */
|
|
650
655
|
--gl-skeleton-loader-background-color: var(--gl-color-neutral-100); /** Used for the skeleton loader background color. */
|
|
651
656
|
--gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-50); /** Used for the animated shimmer effect in a skeleton loader. */
|
|
@@ -1005,6 +1010,12 @@
|
|
|
1005
1010
|
--gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of an unselected dropdown option in the focus state. */
|
|
1006
1011
|
--gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /** Used for the background of a selected dropdown option in the focus state. */
|
|
1007
1012
|
--gl-modal-border-radius: var(--gl-border-radius-2xl); /** Used for modal border radius. */
|
|
1013
|
+
--gl-nav-item-foreground-color-default: var(--gl-action-neutral-foreground-color-default); /** Used for the foreground of a default navigation item in the default state. */
|
|
1014
|
+
--gl-nav-item-background-color-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of a default navigation item in the focus state. */
|
|
1015
|
+
--gl-nav-item-selected-foreground-color-default: var(--gl-action-selected-foreground-color-default); /** Used for the foreground of a selected navigation item in the default state. */
|
|
1016
|
+
--gl-nav-item-selected-background-color-default: var(--gl-action-selected-background-color-default); /** Used for the background of a selected navigation item in the default state. */
|
|
1017
|
+
--gl-nav-item-selected-background-color-hover: var(--gl-action-selected-background-color-hover); /** Used for the background of a selected navigation item in the hover state. */
|
|
1018
|
+
--gl-nav-item-selected-background-color-active: var(--gl-action-selected-background-color-active); /** Used for the background of a selected navigation item in the active state. */
|
|
1008
1019
|
--gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /** Used for the indicator color for the primary progress-bar variant. */
|
|
1009
1020
|
--gl-progress-bar-indicator-color-success: var(--gl-status-success-icon-color); /** Used for the indicator color for the success progress-bar variant. */
|
|
1010
1021
|
--gl-progress-bar-indicator-color-warning: var(--gl-status-warning-icon-color); /** Used for the indicator color for the warning progress-bar variant. */
|
|
@@ -1199,6 +1210,12 @@
|
|
|
1199
1210
|
--gl-dropdown-option-text-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the text of a dropdown option in the hover state. */
|
|
1200
1211
|
--gl-dropdown-option-text-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the text of a dropdown option in the focus state. */
|
|
1201
1212
|
--gl-dropdown-option-text-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the text of a dropdown option in the active state. */
|
|
1213
|
+
--gl-nav-item-border-radius: var(--gl-action-border-radius); /** Used for the border radius of a navigation item */
|
|
1214
|
+
--gl-nav-item-foreground-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the foreground of a default navigation item in the hover state. */
|
|
1215
|
+
--gl-nav-item-foreground-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the foreground of a default navigation item in the focus state. */
|
|
1216
|
+
--gl-nav-item-foreground-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the foreground of a default navigation item in the active state. */
|
|
1217
|
+
--gl-nav-item-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-hover); /** Used for the foreground of a selected navigation item in the hover state. */
|
|
1218
|
+
--gl-nav-item-selected-background-color-focus: var(--gl-action-selected-background-color-focus); /** Used for the background of a selected navigation item in the focus state. */
|
|
1202
1219
|
--gl-toggle-switch-icon-color-unchecked-focus: var(--gl-action-strong-neutral-background-color-focus); /** Used for the icon color of an unchecked toggle switch in the focus state. */
|
|
1203
1220
|
--gl-toggle-switch-icon-color-checked-focus: var(--gl-action-strong-confirm-background-color-focus); /** Used for the icon color of a checked toggle switch in the focus state. */
|
|
1204
1221
|
--gl-token-border-radius: var(--gl-border-radius-default); /** Used for token border radius. */
|
|
@@ -1209,10 +1226,12 @@
|
|
|
1209
1226
|
--gl-action-strong-neutral-foreground-color-focus: var(--gl-action-strong-neutral-foreground-color-hover); /** Used for the foreground of a strong neutral action in the focus state. */
|
|
1210
1227
|
--gl-action-strong-neutral-border-color-focus: var(--gl-action-strong-neutral-border-color-hover); /** Used for the border of a strong neutral action in the focus state. */
|
|
1211
1228
|
--gl-button-confirm-primary-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a confirm (positive) primary button in the focus state. */
|
|
1229
|
+
--gl-nav-item-selected-foreground-color-focus: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected navigation item in the focus state. */
|
|
1212
1230
|
--gl-action-selected-foreground-color-active: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected action in the active state. */
|
|
1213
1231
|
--gl-action-strong-confirm-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a strong confirm action in the active state. */
|
|
1214
1232
|
--gl-action-strong-confirm-border-color-active: var(--gl-action-strong-confirm-border-color-focus); /** Used for the border of a strong confirm action in the active state. */
|
|
1215
1233
|
--gl-action-strong-neutral-foreground-color-active: var(--gl-action-strong-neutral-foreground-color-focus); /** Used for the foreground of a strong neutral action in the active state. */
|
|
1216
1234
|
--gl-action-strong-neutral-border-color-active: var(--gl-action-strong-neutral-border-color-focus); /** Used for the border of a strong neutral action in the active state. */
|
|
1217
1235
|
--gl-button-confirm-primary-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-active); /** Used for the foreground of a confirm (positive) primary button in the active state. */
|
|
1236
|
+
--gl-nav-item-selected-foreground-color-active: var(--gl-action-selected-foreground-color-active); /** Used for the foreground of a selected navigation item in the active state. */
|
|
1218
1237
|
}
|
|
@@ -308,6 +308,7 @@
|
|
|
308
308
|
--gl-illustration-isometric-base-top-fill-color: #32303c; /** Used for the top surface of an isometric base platform. */
|
|
309
309
|
--gl-illustration-isometric-base-front-fill-color: #2b2932; /** Used for the front face of an isometric base platform. */
|
|
310
310
|
--gl-illustration-isometric-base-side-fill-color: #23222b; /** Used for the side face of an isometric base platform. */
|
|
311
|
+
--gl-nav-item-font-weight: 425; /** Used for the font weight of a navigation item */
|
|
311
312
|
--data-viz-green-50: #133a03;
|
|
312
313
|
--data-viz-green-100: #1a4500;
|
|
313
314
|
--data-viz-green-200: #275600;
|
|
@@ -665,6 +666,10 @@
|
|
|
665
666
|
--gl-link-mention-text-color-current: var(--gl-color-orange-100); /** Used for the mention link text color when referencing the current user. */
|
|
666
667
|
--gl-link-mention-background-color-default: var(--gl-color-blue-800); /** Used for the mention link default background. */
|
|
667
668
|
--gl-link-mention-background-color-current: var(--gl-color-orange-800); /** Used for the mention link background when referencing the current user. */
|
|
669
|
+
--gl-nav-item-font-size: var(--gl-font-size-300); /** Used for the font size of a navigation item */
|
|
670
|
+
--gl-nav-item-background-color-default: var(--gl-action-neutral-background-color-default); /** Used for the background of a default navigation item in the default state. */
|
|
671
|
+
--gl-nav-item-background-color-hover: var(--gl-action-neutral-background-color-hover); /** Used for the background of a default navigation item in the hover state. */
|
|
672
|
+
--gl-nav-item-background-color-active: var(--gl-action-neutral-background-color-active); /** Used for the background of a default navigation item in the active state. */
|
|
668
673
|
--gl-progress-bar-track-color: var(--gl-color-neutral-700); /** Used for the track color for all progress-bar variants. */
|
|
669
674
|
--gl-skeleton-loader-background-color: var(--gl-color-neutral-800); /** Used for the skeleton loader background color. */
|
|
670
675
|
--gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-700); /** Used for the animated shimmer effect in a skeleton loader. */
|
|
@@ -1012,6 +1017,12 @@
|
|
|
1012
1017
|
--gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of an unselected dropdown option in the focus state. */
|
|
1013
1018
|
--gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /** Used for the background of a selected dropdown option in the focus state. */
|
|
1014
1019
|
--gl-modal-border-radius: var(--gl-border-radius-2xl); /** Used for modal border radius. */
|
|
1020
|
+
--gl-nav-item-foreground-color-default: var(--gl-action-neutral-foreground-color-default); /** Used for the foreground of a default navigation item in the default state. */
|
|
1021
|
+
--gl-nav-item-background-color-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of a default navigation item in the focus state. */
|
|
1022
|
+
--gl-nav-item-selected-foreground-color-default: var(--gl-action-selected-foreground-color-default); /** Used for the foreground of a selected navigation item in the default state. */
|
|
1023
|
+
--gl-nav-item-selected-background-color-default: var(--gl-action-selected-background-color-default); /** Used for the background of a selected navigation item in the default state. */
|
|
1024
|
+
--gl-nav-item-selected-background-color-hover: var(--gl-action-selected-background-color-hover); /** Used for the background of a selected navigation item in the hover state. */
|
|
1025
|
+
--gl-nav-item-selected-background-color-active: var(--gl-action-selected-background-color-active); /** Used for the background of a selected navigation item in the active state. */
|
|
1015
1026
|
--gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /** Used for the indicator color for the primary progress-bar variant. */
|
|
1016
1027
|
--gl-progress-bar-indicator-color-success: var(--gl-status-success-icon-color); /** Used for the indicator color for the success progress-bar variant. */
|
|
1017
1028
|
--gl-progress-bar-indicator-color-warning: var(--gl-status-warning-icon-color); /** Used for the indicator color for the warning progress-bar variant. */
|
|
@@ -1201,6 +1212,12 @@
|
|
|
1201
1212
|
--gl-dropdown-option-text-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the text of a dropdown option in the hover state. */
|
|
1202
1213
|
--gl-dropdown-option-text-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the text of a dropdown option in the focus state. */
|
|
1203
1214
|
--gl-dropdown-option-text-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the text of a dropdown option in the active state. */
|
|
1215
|
+
--gl-nav-item-border-radius: var(--gl-action-border-radius); /** Used for the border radius of a navigation item */
|
|
1216
|
+
--gl-nav-item-foreground-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the foreground of a default navigation item in the hover state. */
|
|
1217
|
+
--gl-nav-item-foreground-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the foreground of a default navigation item in the focus state. */
|
|
1218
|
+
--gl-nav-item-foreground-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the foreground of a default navigation item in the active state. */
|
|
1219
|
+
--gl-nav-item-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-hover); /** Used for the foreground of a selected navigation item in the hover state. */
|
|
1220
|
+
--gl-nav-item-selected-background-color-focus: var(--gl-action-selected-background-color-focus); /** Used for the background of a selected navigation item in the focus state. */
|
|
1204
1221
|
--gl-toggle-switch-icon-color-unchecked-focus: var(--gl-action-strong-neutral-background-color-focus); /** Used for the icon color of an unchecked toggle switch in the focus state. */
|
|
1205
1222
|
--gl-toggle-switch-icon-color-checked-focus: var(--gl-action-strong-confirm-background-color-focus); /** Used for the icon color of a checked toggle switch in the focus state. */
|
|
1206
1223
|
--gl-token-border-radius: var(--gl-border-radius-default); /** Used for token border radius. */
|
|
@@ -1210,9 +1227,11 @@
|
|
|
1210
1227
|
--gl-action-strong-confirm-border-color-focus: var(--gl-action-strong-confirm-border-color-hover); /** Used for the border of a strong confirm action in the focus state. */
|
|
1211
1228
|
--gl-action-strong-neutral-border-color-focus: var(--gl-action-strong-neutral-border-color-hover); /** Used for the border of a strong neutral action in the focus state. */
|
|
1212
1229
|
--gl-button-confirm-primary-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a confirm (positive) primary button in the focus state. */
|
|
1230
|
+
--gl-nav-item-selected-foreground-color-focus: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected navigation item in the focus state. */
|
|
1213
1231
|
--gl-action-selected-foreground-color-active: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected action in the active state. */
|
|
1214
1232
|
--gl-action-strong-confirm-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a strong confirm action in the active state. */
|
|
1215
1233
|
--gl-action-strong-confirm-border-color-active: var(--gl-action-strong-confirm-border-color-focus); /** Used for the border of a strong confirm action in the active state. */
|
|
1216
1234
|
--gl-action-strong-neutral-border-color-active: var(--gl-action-strong-neutral-border-color-focus); /** Used for the border of a strong neutral action in the active state. */
|
|
1217
1235
|
--gl-button-confirm-primary-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-active); /** Used for the foreground of a confirm (positive) primary button in the active state. */
|
|
1236
|
+
--gl-nav-item-selected-foreground-color-active: var(--gl-action-selected-foreground-color-active); /** Used for the foreground of a selected navigation item in the active state. */
|
|
1218
1237
|
}
|