@gitlab/ui 86.3.1 → 86.4.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 +8 -0
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +13 -1
- package/dist/tokens/build/js/tokens.js +13 -1
- package/dist/tokens/css/tokens.css +12 -0
- package/dist/tokens/css/tokens.dark.css +12 -0
- package/dist/tokens/js/tokens.dark.js +12 -0
- package/dist/tokens/js/tokens.js +12 -0
- package/dist/tokens/json/tokens.dark.json +314 -0
- package/dist/tokens/json/tokens.json +314 -0
- package/dist/tokens/scss/_tokens.dark.scss +12 -0
- package/dist/tokens/scss/_tokens.scss +12 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +12 -0
- package/package.json +1 -1
- package/src/components/base/label/label.scss +18 -65
- package/src/tokens/build/css/tokens.css +12 -0
- package/src/tokens/build/css/tokens.dark.css +12 -0
- package/src/tokens/build/js/tokens.dark.js +12 -0
- package/src/tokens/build/js/tokens.js +12 -0
- package/src/tokens/build/json/tokens.dark.json +314 -0
- package/src/tokens/build/json/tokens.json +314 -0
- package/src/tokens/build/scss/_tokens.dark.scss +12 -0
- package/src/tokens/build/scss/_tokens.scss +12 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +12 -0
- package/src/tokens/contextual/label.tokens.json +118 -0
|
@@ -11085,6 +11085,320 @@
|
|
|
11085
11085
|
}
|
|
11086
11086
|
}
|
|
11087
11087
|
},
|
|
11088
|
+
"label": {
|
|
11089
|
+
"light": {
|
|
11090
|
+
"text": {
|
|
11091
|
+
"color": {
|
|
11092
|
+
"value": "#1f1e24",
|
|
11093
|
+
"$type": "color",
|
|
11094
|
+
"comment": "Used for the label text color on a light background color.",
|
|
11095
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11096
|
+
"isSource": true,
|
|
11097
|
+
"original": {
|
|
11098
|
+
"value": "{color.neutral.950}",
|
|
11099
|
+
"$type": "color",
|
|
11100
|
+
"comment": "Used for the label text color on a light background color."
|
|
11101
|
+
},
|
|
11102
|
+
"name": "LABEL_LIGHT_TEXT_COLOR",
|
|
11103
|
+
"attributes": {},
|
|
11104
|
+
"path": [
|
|
11105
|
+
"label",
|
|
11106
|
+
"light",
|
|
11107
|
+
"text",
|
|
11108
|
+
"color"
|
|
11109
|
+
]
|
|
11110
|
+
}
|
|
11111
|
+
},
|
|
11112
|
+
"button": {
|
|
11113
|
+
"background": {
|
|
11114
|
+
"color": {
|
|
11115
|
+
"default": {
|
|
11116
|
+
"value": "transparent",
|
|
11117
|
+
"$type": "color",
|
|
11118
|
+
"comment": "Used for the label remove button background on a light background color in the default state.",
|
|
11119
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11120
|
+
"isSource": true,
|
|
11121
|
+
"original": {
|
|
11122
|
+
"value": "{color.alpha.0}",
|
|
11123
|
+
"$type": "color",
|
|
11124
|
+
"comment": "Used for the label remove button background on a light background color in the default state."
|
|
11125
|
+
},
|
|
11126
|
+
"name": "LABEL_LIGHT_BUTTON_BACKGROUND_COLOR_DEFAULT",
|
|
11127
|
+
"attributes": {},
|
|
11128
|
+
"path": [
|
|
11129
|
+
"label",
|
|
11130
|
+
"light",
|
|
11131
|
+
"button",
|
|
11132
|
+
"background",
|
|
11133
|
+
"color",
|
|
11134
|
+
"default"
|
|
11135
|
+
]
|
|
11136
|
+
},
|
|
11137
|
+
"hover": {
|
|
11138
|
+
"value": "#1f1e24",
|
|
11139
|
+
"$type": "color",
|
|
11140
|
+
"comment": "Used for the label remove button background on a light background color in the hover state.",
|
|
11141
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11142
|
+
"isSource": true,
|
|
11143
|
+
"original": {
|
|
11144
|
+
"value": "{color.neutral.950}",
|
|
11145
|
+
"$type": "color",
|
|
11146
|
+
"comment": "Used for the label remove button background on a light background color in the hover state."
|
|
11147
|
+
},
|
|
11148
|
+
"name": "LABEL_LIGHT_BUTTON_BACKGROUND_COLOR_HOVER",
|
|
11149
|
+
"attributes": {},
|
|
11150
|
+
"path": [
|
|
11151
|
+
"label",
|
|
11152
|
+
"light",
|
|
11153
|
+
"button",
|
|
11154
|
+
"background",
|
|
11155
|
+
"color",
|
|
11156
|
+
"hover"
|
|
11157
|
+
]
|
|
11158
|
+
}
|
|
11159
|
+
}
|
|
11160
|
+
},
|
|
11161
|
+
"icon": {
|
|
11162
|
+
"color": {
|
|
11163
|
+
"default": {
|
|
11164
|
+
"value": "#1f1e24",
|
|
11165
|
+
"$type": "color",
|
|
11166
|
+
"comment": "Used for the label remove button icon on a light background color in the default state.",
|
|
11167
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11168
|
+
"isSource": true,
|
|
11169
|
+
"original": {
|
|
11170
|
+
"value": "{color.neutral.950}",
|
|
11171
|
+
"$type": "color",
|
|
11172
|
+
"comment": "Used for the label remove button icon on a light background color in the default state."
|
|
11173
|
+
},
|
|
11174
|
+
"name": "LABEL_LIGHT_BUTTON_ICON_COLOR_DEFAULT",
|
|
11175
|
+
"attributes": {},
|
|
11176
|
+
"path": [
|
|
11177
|
+
"label",
|
|
11178
|
+
"light",
|
|
11179
|
+
"button",
|
|
11180
|
+
"icon",
|
|
11181
|
+
"color",
|
|
11182
|
+
"default"
|
|
11183
|
+
]
|
|
11184
|
+
}
|
|
11185
|
+
}
|
|
11186
|
+
}
|
|
11187
|
+
}
|
|
11188
|
+
},
|
|
11189
|
+
"dark": {
|
|
11190
|
+
"text": {
|
|
11191
|
+
"color": {
|
|
11192
|
+
"value": "#fff",
|
|
11193
|
+
"$type": "color",
|
|
11194
|
+
"comment": "Used for the label text color on a dark background color.",
|
|
11195
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11196
|
+
"isSource": true,
|
|
11197
|
+
"original": {
|
|
11198
|
+
"value": "{color.neutral.0}",
|
|
11199
|
+
"$type": "color",
|
|
11200
|
+
"comment": "Used for the label text color on a dark background color."
|
|
11201
|
+
},
|
|
11202
|
+
"name": "LABEL_DARK_TEXT_COLOR",
|
|
11203
|
+
"attributes": {},
|
|
11204
|
+
"path": [
|
|
11205
|
+
"label",
|
|
11206
|
+
"dark",
|
|
11207
|
+
"text",
|
|
11208
|
+
"color"
|
|
11209
|
+
]
|
|
11210
|
+
}
|
|
11211
|
+
},
|
|
11212
|
+
"button": {
|
|
11213
|
+
"background": {
|
|
11214
|
+
"color": {
|
|
11215
|
+
"default": {
|
|
11216
|
+
"value": "transparent",
|
|
11217
|
+
"$type": "color",
|
|
11218
|
+
"comment": "Used for the label remove button background on a dark background color in the default state.",
|
|
11219
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11220
|
+
"isSource": true,
|
|
11221
|
+
"original": {
|
|
11222
|
+
"value": "{color.alpha.0}",
|
|
11223
|
+
"$type": "color",
|
|
11224
|
+
"comment": "Used for the label remove button background on a dark background color in the default state."
|
|
11225
|
+
},
|
|
11226
|
+
"name": "LABEL_DARK_BUTTON_BACKGROUND_COLOR_DEFAULT",
|
|
11227
|
+
"attributes": {},
|
|
11228
|
+
"path": [
|
|
11229
|
+
"label",
|
|
11230
|
+
"dark",
|
|
11231
|
+
"button",
|
|
11232
|
+
"background",
|
|
11233
|
+
"color",
|
|
11234
|
+
"default"
|
|
11235
|
+
]
|
|
11236
|
+
},
|
|
11237
|
+
"hover": {
|
|
11238
|
+
"value": "#fff",
|
|
11239
|
+
"$type": "color",
|
|
11240
|
+
"comment": "Used for the label remove button background on a dark background color in the hover state.",
|
|
11241
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11242
|
+
"isSource": true,
|
|
11243
|
+
"original": {
|
|
11244
|
+
"value": "{color.neutral.0}",
|
|
11245
|
+
"$type": "color",
|
|
11246
|
+
"comment": "Used for the label remove button background on a dark background color in the hover state."
|
|
11247
|
+
},
|
|
11248
|
+
"name": "LABEL_DARK_BUTTON_BACKGROUND_COLOR_HOVER",
|
|
11249
|
+
"attributes": {},
|
|
11250
|
+
"path": [
|
|
11251
|
+
"label",
|
|
11252
|
+
"dark",
|
|
11253
|
+
"button",
|
|
11254
|
+
"background",
|
|
11255
|
+
"color",
|
|
11256
|
+
"hover"
|
|
11257
|
+
]
|
|
11258
|
+
}
|
|
11259
|
+
}
|
|
11260
|
+
},
|
|
11261
|
+
"icon": {
|
|
11262
|
+
"color": {
|
|
11263
|
+
"default": {
|
|
11264
|
+
"value": "#fff",
|
|
11265
|
+
"$type": "color",
|
|
11266
|
+
"comment": "Used for the label remove button icon on a dark background color in the default state.",
|
|
11267
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11268
|
+
"isSource": true,
|
|
11269
|
+
"original": {
|
|
11270
|
+
"value": "{color.neutral.0}",
|
|
11271
|
+
"$type": "color",
|
|
11272
|
+
"comment": "Used for the label remove button icon on a dark background color in the default state."
|
|
11273
|
+
},
|
|
11274
|
+
"name": "LABEL_DARK_BUTTON_ICON_COLOR_DEFAULT",
|
|
11275
|
+
"attributes": {},
|
|
11276
|
+
"path": [
|
|
11277
|
+
"label",
|
|
11278
|
+
"dark",
|
|
11279
|
+
"button",
|
|
11280
|
+
"icon",
|
|
11281
|
+
"color",
|
|
11282
|
+
"default"
|
|
11283
|
+
]
|
|
11284
|
+
}
|
|
11285
|
+
}
|
|
11286
|
+
}
|
|
11287
|
+
}
|
|
11288
|
+
},
|
|
11289
|
+
"scoped": {
|
|
11290
|
+
"text": {
|
|
11291
|
+
"color": {
|
|
11292
|
+
"value": "#1f1e24",
|
|
11293
|
+
"$type": "color",
|
|
11294
|
+
"comment": "Used for the scoped label text color.",
|
|
11295
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11296
|
+
"isSource": true,
|
|
11297
|
+
"original": {
|
|
11298
|
+
"value": {
|
|
11299
|
+
"default": "{color.neutral.950}",
|
|
11300
|
+
"dark": "{color.neutral.0}"
|
|
11301
|
+
},
|
|
11302
|
+
"$type": "color",
|
|
11303
|
+
"comment": "Used for the scoped label text color."
|
|
11304
|
+
},
|
|
11305
|
+
"name": "LABEL_SCOPED_TEXT_COLOR",
|
|
11306
|
+
"attributes": {},
|
|
11307
|
+
"path": [
|
|
11308
|
+
"label",
|
|
11309
|
+
"scoped",
|
|
11310
|
+
"text",
|
|
11311
|
+
"color"
|
|
11312
|
+
]
|
|
11313
|
+
}
|
|
11314
|
+
},
|
|
11315
|
+
"button": {
|
|
11316
|
+
"background": {
|
|
11317
|
+
"color": {
|
|
11318
|
+
"hover": {
|
|
11319
|
+
"value": "#1f1e24",
|
|
11320
|
+
"$type": "color",
|
|
11321
|
+
"comment": "Used for the scoped label remove button background in the hover state.",
|
|
11322
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11323
|
+
"isSource": true,
|
|
11324
|
+
"original": {
|
|
11325
|
+
"value": {
|
|
11326
|
+
"default": "{color.neutral.950}",
|
|
11327
|
+
"dark": "{color.neutral.0}"
|
|
11328
|
+
},
|
|
11329
|
+
"$type": "color",
|
|
11330
|
+
"comment": "Used for the scoped label remove button background in the hover state."
|
|
11331
|
+
},
|
|
11332
|
+
"name": "LABEL_SCOPED_BUTTON_BACKGROUND_COLOR_HOVER",
|
|
11333
|
+
"attributes": {},
|
|
11334
|
+
"path": [
|
|
11335
|
+
"label",
|
|
11336
|
+
"scoped",
|
|
11337
|
+
"button",
|
|
11338
|
+
"background",
|
|
11339
|
+
"color",
|
|
11340
|
+
"hover"
|
|
11341
|
+
]
|
|
11342
|
+
}
|
|
11343
|
+
}
|
|
11344
|
+
},
|
|
11345
|
+
"icon": {
|
|
11346
|
+
"color": {
|
|
11347
|
+
"default": {
|
|
11348
|
+
"value": "#1f1e24",
|
|
11349
|
+
"$type": "color",
|
|
11350
|
+
"comment": "Used for the scoped label remove button icon in the default state.",
|
|
11351
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11352
|
+
"isSource": true,
|
|
11353
|
+
"original": {
|
|
11354
|
+
"value": {
|
|
11355
|
+
"default": "{color.neutral.950}",
|
|
11356
|
+
"dark": "{color.neutral.0}"
|
|
11357
|
+
},
|
|
11358
|
+
"$type": "color",
|
|
11359
|
+
"comment": "Used for the scoped label remove button icon in the default state."
|
|
11360
|
+
},
|
|
11361
|
+
"name": "LABEL_SCOPED_BUTTON_ICON_COLOR_DEFAULT",
|
|
11362
|
+
"attributes": {},
|
|
11363
|
+
"path": [
|
|
11364
|
+
"label",
|
|
11365
|
+
"scoped",
|
|
11366
|
+
"button",
|
|
11367
|
+
"icon",
|
|
11368
|
+
"color",
|
|
11369
|
+
"default"
|
|
11370
|
+
]
|
|
11371
|
+
},
|
|
11372
|
+
"hover": {
|
|
11373
|
+
"value": "#fff",
|
|
11374
|
+
"$type": "color",
|
|
11375
|
+
"comment": "Used for the scoped label remove button icon in the hover state.",
|
|
11376
|
+
"filePath": "src/tokens/contextual/label.tokens.json",
|
|
11377
|
+
"isSource": true,
|
|
11378
|
+
"original": {
|
|
11379
|
+
"value": {
|
|
11380
|
+
"default": "{color.neutral.0}",
|
|
11381
|
+
"dark": "{color.neutral.950}"
|
|
11382
|
+
},
|
|
11383
|
+
"$type": "color",
|
|
11384
|
+
"comment": "Used for the scoped label remove button icon in the hover state."
|
|
11385
|
+
},
|
|
11386
|
+
"name": "LABEL_SCOPED_BUTTON_ICON_COLOR_HOVER",
|
|
11387
|
+
"attributes": {},
|
|
11388
|
+
"path": [
|
|
11389
|
+
"label",
|
|
11390
|
+
"scoped",
|
|
11391
|
+
"button",
|
|
11392
|
+
"icon",
|
|
11393
|
+
"color",
|
|
11394
|
+
"hover"
|
|
11395
|
+
]
|
|
11396
|
+
}
|
|
11397
|
+
}
|
|
11398
|
+
}
|
|
11399
|
+
}
|
|
11400
|
+
}
|
|
11401
|
+
},
|
|
11088
11402
|
"popover": {
|
|
11089
11403
|
"background": {
|
|
11090
11404
|
"color": {
|
|
@@ -536,6 +536,18 @@ $gl-control-background-color-default: $gl-color-neutral-900; // Used for form co
|
|
|
536
536
|
$gl-skeleton-loader-shimmer-color: $gl-color-neutral-700; // Used for the animated shimmer effect in a skeleton loader.
|
|
537
537
|
$gl-skeleton-loader-background-color: $gl-color-neutral-800; // Used for the skeleton loader background color.
|
|
538
538
|
$gl-popover-background-color: $gl-color-neutral-900; // Used for the background color of popover.
|
|
539
|
+
$gl-label-scoped-button-icon-color-hover: $gl-color-neutral-950; // Used for the scoped label remove button icon in the hover state.
|
|
540
|
+
$gl-label-scoped-button-icon-color-default: $gl-color-neutral-0; // Used for the scoped label remove button icon in the default state.
|
|
541
|
+
$gl-label-scoped-button-background-color-hover: $gl-color-neutral-0; // Used for the scoped label remove button background in the hover state.
|
|
542
|
+
$gl-label-scoped-text-color: $gl-color-neutral-0; // Used for the scoped label text color.
|
|
543
|
+
$gl-label-dark-button-icon-color-default: $gl-color-neutral-0; // Used for the label remove button icon on a dark background color in the default state.
|
|
544
|
+
$gl-label-dark-button-background-color-hover: $gl-color-neutral-0; // Used for the label remove button background on a dark background color in the hover state.
|
|
545
|
+
$gl-label-dark-button-background-color-default: $gl-color-alpha-0; // Used for the label remove button background on a dark background color in the default state.
|
|
546
|
+
$gl-label-dark-text-color: $gl-color-neutral-0; // Used for the label text color on a dark background color.
|
|
547
|
+
$gl-label-light-button-icon-color-default: $gl-color-neutral-950; // Used for the label remove button icon on a light background color in the default state.
|
|
548
|
+
$gl-label-light-button-background-color-hover: $gl-color-neutral-950; // Used for the label remove button background on a light background color in the hover state.
|
|
549
|
+
$gl-label-light-button-background-color-default: $gl-color-alpha-0; // Used for the label remove button background on a light background color in the default state.
|
|
550
|
+
$gl-label-light-text-color: $gl-color-neutral-950; // Used for the label text color on a light background color.
|
|
539
551
|
$gl-breadcrumb-separator-color: $gl-color-neutral-700; // Used for the breadcrumb level separator.
|
|
540
552
|
$gl-banner-promo-background-color: $gl-color-neutral-900; // Used as background for the default banner type.
|
|
541
553
|
$gl-banner-intro-border-color: $gl-color-blue-600; // Used to compliment the info banner.
|
|
@@ -536,6 +536,18 @@ $gl-control-background-color-default: $gl-color-neutral-0; // Used for form cont
|
|
|
536
536
|
$gl-skeleton-loader-shimmer-color: $gl-color-neutral-50; // Used for the animated shimmer effect in a skeleton loader.
|
|
537
537
|
$gl-skeleton-loader-background-color: $gl-color-neutral-100; // Used for the skeleton loader background color.
|
|
538
538
|
$gl-popover-background-color: $gl-color-neutral-0; // Used for the background color of popover.
|
|
539
|
+
$gl-label-scoped-button-icon-color-hover: $gl-color-neutral-0; // Used for the scoped label remove button icon in the hover state.
|
|
540
|
+
$gl-label-scoped-button-icon-color-default: $gl-color-neutral-950; // Used for the scoped label remove button icon in the default state.
|
|
541
|
+
$gl-label-scoped-button-background-color-hover: $gl-color-neutral-950; // Used for the scoped label remove button background in the hover state.
|
|
542
|
+
$gl-label-scoped-text-color: $gl-color-neutral-950; // Used for the scoped label text color.
|
|
543
|
+
$gl-label-dark-button-icon-color-default: $gl-color-neutral-0; // Used for the label remove button icon on a dark background color in the default state.
|
|
544
|
+
$gl-label-dark-button-background-color-hover: $gl-color-neutral-0; // Used for the label remove button background on a dark background color in the hover state.
|
|
545
|
+
$gl-label-dark-button-background-color-default: $gl-color-alpha-0; // Used for the label remove button background on a dark background color in the default state.
|
|
546
|
+
$gl-label-dark-text-color: $gl-color-neutral-0; // Used for the label text color on a dark background color.
|
|
547
|
+
$gl-label-light-button-icon-color-default: $gl-color-neutral-950; // Used for the label remove button icon on a light background color in the default state.
|
|
548
|
+
$gl-label-light-button-background-color-hover: $gl-color-neutral-950; // Used for the label remove button background on a light background color in the hover state.
|
|
549
|
+
$gl-label-light-button-background-color-default: $gl-color-alpha-0; // Used for the label remove button background on a light background color in the default state.
|
|
550
|
+
$gl-label-light-text-color: $gl-color-neutral-950; // Used for the label text color on a light background color.
|
|
539
551
|
$gl-breadcrumb-separator-color: $gl-color-neutral-200; // Used for the breadcrumb level separator.
|
|
540
552
|
$gl-banner-promo-background-color: $gl-color-neutral-10; // Used as background for the default banner type.
|
|
541
553
|
$gl-banner-intro-border-color: $gl-color-blue-300; // Used to compliment the info banner.
|
|
@@ -510,6 +510,18 @@ $gl-avatar-fallback-background-color-neutral: var(--gl-avatar-fallback-backgroun
|
|
|
510
510
|
$gl-banner-intro-border-color: var(--gl-banner-intro-border-color);
|
|
511
511
|
$gl-banner-promo-background-color: var(--gl-banner-promo-background-color);
|
|
512
512
|
$gl-breadcrumb-separator-color: var(--gl-breadcrumb-separator-color);
|
|
513
|
+
$gl-label-light-text-color: var(--gl-label-light-text-color);
|
|
514
|
+
$gl-label-light-button-background-color-default: var(--gl-label-light-button-background-color-default);
|
|
515
|
+
$gl-label-light-button-background-color-hover: var(--gl-label-light-button-background-color-hover);
|
|
516
|
+
$gl-label-light-button-icon-color-default: var(--gl-label-light-button-icon-color-default);
|
|
517
|
+
$gl-label-dark-text-color: var(--gl-label-dark-text-color);
|
|
518
|
+
$gl-label-dark-button-background-color-default: var(--gl-label-dark-button-background-color-default);
|
|
519
|
+
$gl-label-dark-button-background-color-hover: var(--gl-label-dark-button-background-color-hover);
|
|
520
|
+
$gl-label-dark-button-icon-color-default: var(--gl-label-dark-button-icon-color-default);
|
|
521
|
+
$gl-label-scoped-text-color: var(--gl-label-scoped-text-color);
|
|
522
|
+
$gl-label-scoped-button-background-color-hover: var(--gl-label-scoped-button-background-color-hover);
|
|
523
|
+
$gl-label-scoped-button-icon-color-default: var(--gl-label-scoped-button-icon-color-default);
|
|
524
|
+
$gl-label-scoped-button-icon-color-hover: var(--gl-label-scoped-button-icon-color-hover);
|
|
513
525
|
$gl-popover-background-color: var(--gl-popover-background-color);
|
|
514
526
|
$gl-skeleton-loader-background-color: var(--gl-skeleton-loader-background-color);
|
|
515
527
|
$gl-skeleton-loader-shimmer-color: var(--gl-skeleton-loader-shimmer-color);
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
|
|
|
5
5
|
|
|
6
6
|
.gl-label {
|
|
7
7
|
@include gl-align-items-center;
|
|
8
|
-
|
|
8
|
+
background-color: var(--gl-background-color-default);
|
|
9
9
|
@include gl-overflow-hidden;
|
|
10
10
|
@include gl-display-inline-flex;
|
|
11
11
|
@include gl-rounded-pill;
|
|
@@ -24,7 +24,7 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&:has(*:first-child:focus) {
|
|
27
|
-
@include gl-focus($color: var(--label-background-color,
|
|
27
|
+
@include gl-focus($color: var(--label-background-color, --gl-background-color-default), $important: true);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.gl-label-link {
|
|
@@ -62,18 +62,6 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
|
|
|
62
62
|
@include gl-rounded-full;
|
|
63
63
|
@include gl-shadow-none;
|
|
64
64
|
|
|
65
|
-
&[disabled],
|
|
66
|
-
&[disabled]:hover,
|
|
67
|
-
&[disabled]:focus {
|
|
68
|
-
@include gl-opacity-5;
|
|
69
|
-
@include gl-reset-bg;
|
|
70
|
-
@include gl-shadow-none;
|
|
71
|
-
|
|
72
|
-
.gl-icon {
|
|
73
|
-
@include gl-fill-current-color;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
65
|
&:focus,
|
|
78
66
|
&:active {
|
|
79
67
|
@include gl-focus;
|
|
@@ -85,82 +73,47 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
|
|
|
85
73
|
}
|
|
86
74
|
}
|
|
87
75
|
|
|
76
|
+
// styles for the the light label variant (which uses dark text)
|
|
88
77
|
.gl-label-text-dark {
|
|
89
|
-
|
|
78
|
+
color: var(--gl-label-light-text-color);
|
|
90
79
|
|
|
91
80
|
#{$label-close-button} {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
&[disabled]:hover .gl-icon,
|
|
95
|
-
&[disabled]:focus .gl-icon {
|
|
96
|
-
@include gl-text-black-normal;
|
|
97
|
-
}
|
|
81
|
+
color: var(--gl-label-light-button-icon-color-default);
|
|
82
|
+
background-color: var(--gl-label-light-button-background-color-default);
|
|
98
83
|
|
|
99
84
|
&:focus,
|
|
100
85
|
&:hover {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.gl-icon {
|
|
104
|
-
color: var(--label-background-color);
|
|
105
|
-
}
|
|
86
|
+
color: var(--label-background-color);
|
|
87
|
+
background-color: var(--gl-label-light-button-background-color-hover);
|
|
106
88
|
}
|
|
107
89
|
}
|
|
108
90
|
}
|
|
109
91
|
|
|
92
|
+
// styles for the the dark label variant (which uses light text)
|
|
110
93
|
.gl-label-text-light {
|
|
111
|
-
|
|
94
|
+
color: var(--gl-label-dark-text-color);
|
|
112
95
|
|
|
113
96
|
#{$label-close-button} {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
&[disabled]:hover .gl-icon,
|
|
117
|
-
&[disabled]:focus .gl-icon {
|
|
118
|
-
@include gl-text-white;
|
|
119
|
-
}
|
|
97
|
+
color: var(--gl-label-dark-button-icon-color-default);
|
|
98
|
+
background-color: var(--gl-label-dark-button-background-color-default);
|
|
120
99
|
|
|
121
100
|
&:focus,
|
|
122
101
|
&:hover {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.gl-icon {
|
|
126
|
-
color: var(--label-background-color);
|
|
127
|
-
}
|
|
102
|
+
color: var(--label-background-color);
|
|
103
|
+
background-color: var(--gl-label-dark-button-background-color-hover);
|
|
128
104
|
}
|
|
129
105
|
}
|
|
130
106
|
}
|
|
131
107
|
|
|
132
108
|
.gl-label-scoped {
|
|
133
|
-
&.gl-label-text-light {
|
|
134
|
-
#{$label-close-button} .gl-icon,
|
|
135
|
-
#{$label-close-button}[disabled]:hover .gl-icon {
|
|
136
|
-
color: var(--label-background-color);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
#{$label-close-button}:not(:disabled) {
|
|
140
|
-
&:focus,
|
|
141
|
-
&:hover {
|
|
142
|
-
background-color: var(--label-background-color);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&.gl-label-text-dark {
|
|
148
|
-
#{$label-close-button}:not(:disabled) {
|
|
149
|
-
&:focus,
|
|
150
|
-
&:hover {
|
|
151
|
-
@include gl-bg-black;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
109
|
#{$label-close-button} {
|
|
157
110
|
margin-left: #{-$label-padding-horizontal};
|
|
111
|
+
color: var(--gl-label-scoped-button-icon-color-default);
|
|
158
112
|
|
|
159
113
|
&:focus,
|
|
160
114
|
&:hover {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
115
|
+
color: var(--gl-label-scoped-button-icon-color-hover);
|
|
116
|
+
background-color: var(--gl-label-scoped-button-background-color-hover);
|
|
164
117
|
}
|
|
165
118
|
}
|
|
166
119
|
|
|
@@ -173,7 +126,7 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
|
|
|
173
126
|
}
|
|
174
127
|
|
|
175
128
|
.gl-label-text-scoped {
|
|
176
|
-
|
|
129
|
+
color: var(--gl-label-scoped-text-color);
|
|
177
130
|
padding-left: $gl-spacing-scale-2;
|
|
178
131
|
padding-right: $gl-spacing-scale-3;
|
|
179
132
|
}
|
|
@@ -538,6 +538,18 @@
|
|
|
538
538
|
--gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-50); /* Used for the animated shimmer effect in a skeleton loader. */
|
|
539
539
|
--gl-skeleton-loader-background-color: var(--gl-color-neutral-100); /* Used for the skeleton loader background color. */
|
|
540
540
|
--gl-popover-background-color: var(--gl-color-neutral-0); /* Used for the background color of popover. */
|
|
541
|
+
--gl-label-scoped-button-icon-color-hover: var(--gl-color-neutral-0); /* Used for the scoped label remove button icon in the hover state. */
|
|
542
|
+
--gl-label-scoped-button-icon-color-default: var(--gl-color-neutral-950); /* Used for the scoped label remove button icon in the default state. */
|
|
543
|
+
--gl-label-scoped-button-background-color-hover: var(--gl-color-neutral-950); /* Used for the scoped label remove button background in the hover state. */
|
|
544
|
+
--gl-label-scoped-text-color: var(--gl-color-neutral-950); /* Used for the scoped label text color. */
|
|
545
|
+
--gl-label-dark-button-icon-color-default: var(--gl-color-neutral-0); /* Used for the label remove button icon on a dark background color in the default state. */
|
|
546
|
+
--gl-label-dark-button-background-color-hover: var(--gl-color-neutral-0); /* Used for the label remove button background on a dark background color in the hover state. */
|
|
547
|
+
--gl-label-dark-button-background-color-default: var(--gl-color-alpha-0); /* Used for the label remove button background on a dark background color in the default state. */
|
|
548
|
+
--gl-label-dark-text-color: var(--gl-color-neutral-0); /* Used for the label text color on a dark background color. */
|
|
549
|
+
--gl-label-light-button-icon-color-default: var(--gl-color-neutral-950); /* Used for the label remove button icon on a light background color in the default state. */
|
|
550
|
+
--gl-label-light-button-background-color-hover: var(--gl-color-neutral-950); /* Used for the label remove button background on a light background color in the hover state. */
|
|
551
|
+
--gl-label-light-button-background-color-default: var(--gl-color-alpha-0); /* Used for the label remove button background on a light background color in the default state. */
|
|
552
|
+
--gl-label-light-text-color: var(--gl-color-neutral-950); /* Used for the label text color on a light background color. */
|
|
541
553
|
--gl-breadcrumb-separator-color: var(--gl-color-neutral-200); /* Used for the breadcrumb level separator. */
|
|
542
554
|
--gl-banner-promo-background-color: var(--gl-color-neutral-10); /* Used as background for the default banner type. */
|
|
543
555
|
--gl-banner-intro-border-color: var(--gl-color-blue-300); /* Used to compliment the info banner. */
|
|
@@ -538,6 +538,18 @@
|
|
|
538
538
|
--gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-700); /* Used for the animated shimmer effect in a skeleton loader. */
|
|
539
539
|
--gl-skeleton-loader-background-color: var(--gl-color-neutral-800); /* Used for the skeleton loader background color. */
|
|
540
540
|
--gl-popover-background-color: var(--gl-color-neutral-900); /* Used for the background color of popover. */
|
|
541
|
+
--gl-label-scoped-button-icon-color-hover: var(--gl-color-neutral-950); /* Used for the scoped label remove button icon in the hover state. */
|
|
542
|
+
--gl-label-scoped-button-icon-color-default: var(--gl-color-neutral-0); /* Used for the scoped label remove button icon in the default state. */
|
|
543
|
+
--gl-label-scoped-button-background-color-hover: var(--gl-color-neutral-0); /* Used for the scoped label remove button background in the hover state. */
|
|
544
|
+
--gl-label-scoped-text-color: var(--gl-color-neutral-0); /* Used for the scoped label text color. */
|
|
545
|
+
--gl-label-dark-button-icon-color-default: var(--gl-color-neutral-0); /* Used for the label remove button icon on a dark background color in the default state. */
|
|
546
|
+
--gl-label-dark-button-background-color-hover: var(--gl-color-neutral-0); /* Used for the label remove button background on a dark background color in the hover state. */
|
|
547
|
+
--gl-label-dark-button-background-color-default: var(--gl-color-alpha-0); /* Used for the label remove button background on a dark background color in the default state. */
|
|
548
|
+
--gl-label-dark-text-color: var(--gl-color-neutral-0); /* Used for the label text color on a dark background color. */
|
|
549
|
+
--gl-label-light-button-icon-color-default: var(--gl-color-neutral-950); /* Used for the label remove button icon on a light background color in the default state. */
|
|
550
|
+
--gl-label-light-button-background-color-hover: var(--gl-color-neutral-950); /* Used for the label remove button background on a light background color in the hover state. */
|
|
551
|
+
--gl-label-light-button-background-color-default: var(--gl-color-alpha-0); /* Used for the label remove button background on a light background color in the default state. */
|
|
552
|
+
--gl-label-light-text-color: var(--gl-color-neutral-950); /* Used for the label text color on a light background color. */
|
|
541
553
|
--gl-breadcrumb-separator-color: var(--gl-color-neutral-700); /* Used for the breadcrumb level separator. */
|
|
542
554
|
--gl-banner-promo-background-color: var(--gl-color-neutral-900); /* Used as background for the default banner type. */
|
|
543
555
|
--gl-banner-intro-border-color: var(--gl-color-blue-600); /* Used to compliment the info banner. */
|
|
@@ -510,6 +510,18 @@ export const GL_AVATAR_FALLBACK_BACKGROUND_COLOR_NEUTRAL = '#333238'; // Neutral
|
|
|
510
510
|
export const GL_BANNER_INTRO_BORDER_COLOR = '#1068bf'; // Used to compliment the info banner.
|
|
511
511
|
export const GL_BANNER_PROMO_BACKGROUND_COLOR = '#333238'; // Used as background for the default banner type.
|
|
512
512
|
export const GL_BREADCRUMB_SEPARATOR_COLOR = '#535158'; // Used for the breadcrumb level separator.
|
|
513
|
+
export const GL_LABEL_LIGHT_TEXT_COLOR = '#1f1e24'; // Used for the label text color on a light background color.
|
|
514
|
+
export const GL_LABEL_LIGHT_BUTTON_BACKGROUND_COLOR_DEFAULT = 'transparent'; // Used for the label remove button background on a light background color in the default state.
|
|
515
|
+
export const GL_LABEL_LIGHT_BUTTON_BACKGROUND_COLOR_HOVER = '#1f1e24'; // Used for the label remove button background on a light background color in the hover state.
|
|
516
|
+
export const GL_LABEL_LIGHT_BUTTON_ICON_COLOR_DEFAULT = '#1f1e24'; // Used for the label remove button icon on a light background color in the default state.
|
|
517
|
+
export const GL_LABEL_DARK_TEXT_COLOR = '#fff'; // Used for the label text color on a dark background color.
|
|
518
|
+
export const GL_LABEL_DARK_BUTTON_BACKGROUND_COLOR_DEFAULT = 'transparent'; // Used for the label remove button background on a dark background color in the default state.
|
|
519
|
+
export const GL_LABEL_DARK_BUTTON_BACKGROUND_COLOR_HOVER = '#fff'; // Used for the label remove button background on a dark background color in the hover state.
|
|
520
|
+
export const GL_LABEL_DARK_BUTTON_ICON_COLOR_DEFAULT = '#fff'; // Used for the label remove button icon on a dark background color in the default state.
|
|
521
|
+
export const GL_LABEL_SCOPED_TEXT_COLOR = '#fff'; // Used for the scoped label text color.
|
|
522
|
+
export const GL_LABEL_SCOPED_BUTTON_BACKGROUND_COLOR_HOVER = '#fff'; // Used for the scoped label remove button background in the hover state.
|
|
523
|
+
export const GL_LABEL_SCOPED_BUTTON_ICON_COLOR_DEFAULT = '#fff'; // Used for the scoped label remove button icon in the default state.
|
|
524
|
+
export const GL_LABEL_SCOPED_BUTTON_ICON_COLOR_HOVER = '#1f1e24'; // Used for the scoped label remove button icon in the hover state.
|
|
513
525
|
export const GL_POPOVER_BACKGROUND_COLOR = '#333238'; // Used for the background color of popover.
|
|
514
526
|
export const GL_SKELETON_LOADER_BACKGROUND_COLOR = '#434248'; // Used for the skeleton loader background color.
|
|
515
527
|
export const GL_SKELETON_LOADER_SHIMMER_COLOR = '#535158'; // Used for the animated shimmer effect in a skeleton loader.
|
|
@@ -510,6 +510,18 @@ export const GL_AVATAR_FALLBACK_BACKGROUND_COLOR_NEUTRAL = '#ececef'; // Neutral
|
|
|
510
510
|
export const GL_BANNER_INTRO_BORDER_COLOR = '#63a6e9'; // Used to compliment the info banner.
|
|
511
511
|
export const GL_BANNER_PROMO_BACKGROUND_COLOR = '#fbfafd'; // Used as background for the default banner type.
|
|
512
512
|
export const GL_BREADCRUMB_SEPARATOR_COLOR = '#bfbfc3'; // Used for the breadcrumb level separator.
|
|
513
|
+
export const GL_LABEL_LIGHT_TEXT_COLOR = '#1f1e24'; // Used for the label text color on a light background color.
|
|
514
|
+
export const GL_LABEL_LIGHT_BUTTON_BACKGROUND_COLOR_DEFAULT = 'transparent'; // Used for the label remove button background on a light background color in the default state.
|
|
515
|
+
export const GL_LABEL_LIGHT_BUTTON_BACKGROUND_COLOR_HOVER = '#1f1e24'; // Used for the label remove button background on a light background color in the hover state.
|
|
516
|
+
export const GL_LABEL_LIGHT_BUTTON_ICON_COLOR_DEFAULT = '#1f1e24'; // Used for the label remove button icon on a light background color in the default state.
|
|
517
|
+
export const GL_LABEL_DARK_TEXT_COLOR = '#fff'; // Used for the label text color on a dark background color.
|
|
518
|
+
export const GL_LABEL_DARK_BUTTON_BACKGROUND_COLOR_DEFAULT = 'transparent'; // Used for the label remove button background on a dark background color in the default state.
|
|
519
|
+
export const GL_LABEL_DARK_BUTTON_BACKGROUND_COLOR_HOVER = '#fff'; // Used for the label remove button background on a dark background color in the hover state.
|
|
520
|
+
export const GL_LABEL_DARK_BUTTON_ICON_COLOR_DEFAULT = '#fff'; // Used for the label remove button icon on a dark background color in the default state.
|
|
521
|
+
export const GL_LABEL_SCOPED_TEXT_COLOR = '#1f1e24'; // Used for the scoped label text color.
|
|
522
|
+
export const GL_LABEL_SCOPED_BUTTON_BACKGROUND_COLOR_HOVER = '#1f1e24'; // Used for the scoped label remove button background in the hover state.
|
|
523
|
+
export const GL_LABEL_SCOPED_BUTTON_ICON_COLOR_DEFAULT = '#1f1e24'; // Used for the scoped label remove button icon in the default state.
|
|
524
|
+
export const GL_LABEL_SCOPED_BUTTON_ICON_COLOR_HOVER = '#fff'; // Used for the scoped label remove button icon in the hover state.
|
|
513
525
|
export const GL_POPOVER_BACKGROUND_COLOR = '#fff'; // Used for the background color of popover.
|
|
514
526
|
export const GL_SKELETON_LOADER_BACKGROUND_COLOR = '#dcdcde'; // Used for the skeleton loader background color.
|
|
515
527
|
export const GL_SKELETON_LOADER_SHIMMER_COLOR = '#ececef'; // Used for the animated shimmer effect in a skeleton loader.
|