@atlassian/aui 9.9.2 → 9.9.4
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/aui/aui-prototyping-browserfocus.css +10 -10
- package/dist/aui/aui-prototyping-darkmode.css +6 -6
- package/dist/aui/aui-prototyping-design-tokens-api-full.js +2 -2
- package/dist/aui/aui-prototyping-design-tokens-api-full.js.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css +8 -0
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css.map +1 -0
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js +9 -0
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js.map +1 -0
- package/dist/aui/aui-prototyping-design-tokens-base-themes.js +1 -1
- package/dist/aui/aui-prototyping.css +5 -5
- package/dist/aui/aui-prototyping.css.map +1 -1
- package/dist/aui/aui-prototyping.js +5 -5
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +5 -5
- package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +4 -4
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.css +793 -0
- package/entry/token-themes-generated/p2/aui-prototyping-design-tokens-theme.css +793 -0
- package/package.json +1 -1
- package/src/js/aui/design-tokens/design-tokens-testing-theme.js +21 -18
- package/src/js/aui/select2.js +13 -2
- package/src/js/aui/tooltip.js +41 -6
- package/src/less/aui-experimental-labels.less +13 -6
- package/src/less/forms-radios-and-checkboxes.less +27 -30
- package/src/less/imports/aui-theme/adg/adg-colors.less +1 -0
- package/src/less/imports/aui-theme/components/forms.less +8 -0
- package/src/less/imports/aui-theme/components/label.less +2 -0
- package/src/less/imports/aui-theme/core/colors.less +16 -16
- package/src/less/imports/aui-theme/core/layers.less +3 -1
- package/src/less/imports/aui-theme/theme.less +8 -6
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import TokenNames from "@atlaskit/tokens/token-names";
|
|
2
2
|
|
|
3
|
+
const testingThemeTargetElement = document.documentElement;
|
|
3
4
|
const testingColorVariableName = '--aui-theme-testing-color';
|
|
4
5
|
const defaultTestingColor = 'color(srgb 1 0.75 0.8 / 0.6)';
|
|
5
|
-
const
|
|
6
|
+
const testingThemeTargetClass = "aui-theme-testing";
|
|
7
|
+
const testingThemeSelector =
|
|
8
|
+
`html.${testingThemeTargetClass}[data-theme*="light:"], ` +
|
|
9
|
+
`html.${testingThemeTargetClass}[data-theme*="dark:"]`;
|
|
6
10
|
|
|
7
11
|
/**
|
|
8
12
|
* Theme that replaces all the design tokens with single color, helping to visually identify custom colors on the page
|
|
@@ -14,7 +18,7 @@ const testingThemeName = "aui-theme-testing";
|
|
|
14
18
|
const initialComment = "This theme is autogenerated using AJS.DesignTokens.generateTestingTheme()."
|
|
15
19
|
|
|
16
20
|
// If function called many times theme should be only added once
|
|
17
|
-
const isThemeAlreadyInitialised = !document.
|
|
21
|
+
const isThemeAlreadyInitialised = !document.querySelector(testingThemeSelector)
|
|
18
22
|
if (!isThemeAlreadyInitialised) {
|
|
19
23
|
return;
|
|
20
24
|
}
|
|
@@ -26,10 +30,10 @@ const testingThemeName = "aui-theme-testing";
|
|
|
26
30
|
const allDeclarations = [ colorDeclaration, ...themeCSSDeclarations ];
|
|
27
31
|
|
|
28
32
|
|
|
29
|
-
const themeCSS = `/* ${initialComment} */\
|
|
33
|
+
const themeCSS = `/* ${initialComment} */\n${testingThemeSelector} {\n${allDeclarations.join('\n')}\n}`;
|
|
30
34
|
|
|
31
35
|
const themeElement = document.createElement('style');
|
|
32
|
-
themeElement.id =
|
|
36
|
+
themeElement.id = "aui-design-tokens-testing-theme";
|
|
33
37
|
themeElement.innerText = themeCSS;
|
|
34
38
|
|
|
35
39
|
const head = document.querySelector('head');
|
|
@@ -46,37 +50,36 @@ function setTestingThemeColor(color = defaultTestingColor) {
|
|
|
46
50
|
document.body.style.setProperty(testingColorVariableName, color);
|
|
47
51
|
}
|
|
48
52
|
|
|
53
|
+
function isTestingThemeEnabled() {
|
|
54
|
+
return testingThemeTargetElement.matches(testingThemeSelector);
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
function enableTestingTheme() {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
document.body.classList.add(testingThemeName);
|
|
58
|
+
if (!isTestingThemeEnabled()) {
|
|
59
|
+
testingThemeTargetElement.classList.add(testingThemeTargetClass);
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
function disableTestingTheme() {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
document.body.classList.remove(testingThemeName);
|
|
60
|
-
document.body.style.removeProperty(testingColorVariableName);
|
|
64
|
+
if (isTestingThemeEnabled()) {
|
|
65
|
+
testingThemeTargetElement.classList.remove(testingThemeTargetClass);
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
/**
|
|
65
70
|
* Enables or disables testing theme for Design Tokens based on current state
|
|
66
|
-
* @param
|
|
71
|
+
* @param targetState Optional parameter. Allows to force specific state.
|
|
67
72
|
*/
|
|
68
|
-
function toggleTestingTheme(
|
|
73
|
+
function toggleTestingTheme(targetState) {
|
|
69
74
|
|
|
70
75
|
// If not passed, invert existing state
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
state = !currentState;
|
|
76
|
+
if (targetState == null) {
|
|
77
|
+
targetState = !isTestingThemeEnabled();
|
|
74
78
|
}
|
|
75
79
|
|
|
76
|
-
|
|
80
|
+
targetState ? enableTestingTheme() : disableTestingTheme();
|
|
77
81
|
}
|
|
78
82
|
|
|
79
|
-
|
|
80
83
|
export {
|
|
81
84
|
setTestingThemeColor,
|
|
82
85
|
enableTestingTheme,
|
package/src/js/aui/select2.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import $ from './jquery';
|
|
2
2
|
import '../../js-vendor/jquery/plugins/jquery.select2';
|
|
3
|
+
import layer from "./layer";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Wraps a vanilla Select2 with ADG _style_, as an auiSelect2 method on jQuery objects.
|
|
@@ -21,6 +22,7 @@ const auiHasAvatar = 'aui-has-avatar';
|
|
|
21
22
|
|
|
22
23
|
$.fn.auiSelect2 = function (first) {
|
|
23
24
|
let updatedArgs;
|
|
25
|
+
let dropdownLayer;
|
|
24
26
|
|
|
25
27
|
if ($.isPlainObject(first)) {
|
|
26
28
|
const auiOpts = $.extend({}, first);
|
|
@@ -79,14 +81,20 @@ $.fn.auiSelect2 = function (first) {
|
|
|
79
81
|
|
|
80
82
|
select2Instance.on('select2-open', function () {
|
|
81
83
|
const $selectInput = $(this);
|
|
84
|
+
const $selectDropdown = $selectInput.select2('dropdown');
|
|
85
|
+
|
|
86
|
+
if (!dropdownLayer) dropdownLayer = layer();
|
|
87
|
+
dropdownLayer.show(); // add layer to layer manager to get top z-index
|
|
88
|
+
|
|
89
|
+
$selectDropdown.css('z-index', dropdownLayer.$el.css('z-index'));
|
|
90
|
+
// mask is created during opening event, before open
|
|
91
|
+
$("#select2-drop-mask").css('z-index', dropdownLayer.$el.css('z-index'));
|
|
82
92
|
|
|
83
93
|
if (options.multiple || $selectInput.attr('multiple')) {
|
|
84
94
|
// This is a multi-select, exiting
|
|
85
95
|
return;
|
|
86
96
|
}
|
|
87
97
|
|
|
88
|
-
const $selectDropdown = $selectInput.select2('dropdown');
|
|
89
|
-
|
|
90
98
|
if (searchLabel) {
|
|
91
99
|
$selectDropdown.find('.select2-search label').text(searchLabel);
|
|
92
100
|
}
|
|
@@ -94,6 +102,9 @@ $.fn.auiSelect2 = function (first) {
|
|
|
94
102
|
|
|
95
103
|
select2Instance.on('select2-close', function () {
|
|
96
104
|
const $selectInput = $(this);
|
|
105
|
+
|
|
106
|
+
dropdownLayer.hide();
|
|
107
|
+
|
|
97
108
|
$selectInput.removeData('was-ariadescribedby-cleared');
|
|
98
109
|
});
|
|
99
110
|
|
package/src/js/aui/tooltip.js
CHANGED
|
@@ -60,6 +60,7 @@ class Tooltip {
|
|
|
60
60
|
this.enabled = this.options.enabled;
|
|
61
61
|
this.moveTitleToTooltip();
|
|
62
62
|
this.initContainer();
|
|
63
|
+
this.observeTriggerRemoval();
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
destroy() {
|
|
@@ -82,6 +83,38 @@ class Tooltip {
|
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
observeTriggerRemoval() {
|
|
87
|
+
|
|
88
|
+
const observedElements = [];
|
|
89
|
+
|
|
90
|
+
if (this.options.$delegationRoot && this.options.$delegationRoot.get(0)) {
|
|
91
|
+
observedElements.push(this.options.$delegationRoot.get(0));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (this.triggerElement) {
|
|
95
|
+
observedElements.push(this.triggerElement);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
this.triggerObservers = observedElements
|
|
99
|
+
.map(element => {
|
|
100
|
+
const parent = element.parentElement;
|
|
101
|
+
if (parent) {
|
|
102
|
+
const observer = new MutationObserver(() => {
|
|
103
|
+
const isToDestroy = !parent.contains(element);
|
|
104
|
+
if (isToDestroy) {
|
|
105
|
+
this.destroy();
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
observer.observe(parent, {
|
|
109
|
+
childList: true,
|
|
110
|
+
subtree: false // We take trigger parent, so we only care about direct children
|
|
111
|
+
});
|
|
112
|
+
return observer;
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
.filter(observer => !!observer);
|
|
116
|
+
}
|
|
117
|
+
|
|
85
118
|
unbindHandlers() {
|
|
86
119
|
const selector = this.options.live;
|
|
87
120
|
|
|
@@ -93,6 +126,10 @@ class Tooltip {
|
|
|
93
126
|
return;
|
|
94
127
|
}
|
|
95
128
|
|
|
129
|
+
if (this.triggerObservers.length > 0) {
|
|
130
|
+
this.triggerObservers.forEach(observer => observer.disconnect());
|
|
131
|
+
}
|
|
132
|
+
|
|
96
133
|
// We only need to unbind event handlers from this particular element
|
|
97
134
|
this.$triggerElement.off(`.${pluginKey}`);
|
|
98
135
|
}
|
|
@@ -310,14 +347,12 @@ $.fn.tooltip = function (arg) {
|
|
|
310
347
|
$collection.on(activationEvents, selector, show);
|
|
311
348
|
$collection.on(deactivationEvents, selector, hide);
|
|
312
349
|
$collection.on('keyup', selector, hideOnEsc);
|
|
313
|
-
|
|
314
|
-
|
|
350
|
+
} else {
|
|
351
|
+
$collection.on(activationEvents, show);
|
|
352
|
+
$collection.on(deactivationEvents, hide);
|
|
353
|
+
$collection.on('keyup', hideOnEsc);
|
|
315
354
|
}
|
|
316
355
|
|
|
317
|
-
$collection.on(activationEvents, show);
|
|
318
|
-
$collection.on(deactivationEvents, hide);
|
|
319
|
-
$collection.on('keyup', hideOnEsc);
|
|
320
|
-
|
|
321
356
|
return $collection;
|
|
322
357
|
};
|
|
323
358
|
|
|
@@ -36,7 +36,7 @@ a.aui-label:active {
|
|
|
36
36
|
|
|
37
37
|
.aui-label-split .aui-label-split-main:hover,
|
|
38
38
|
.aui-label-split .aui-label-split-main:active,
|
|
39
|
-
.aui-label-split .aui-label-split-main:focus{
|
|
39
|
+
.aui-label-split .aui-label-split-main:focus {
|
|
40
40
|
text-decoration: none;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -55,7 +55,6 @@ a.aui-label:active {
|
|
|
55
55
|
top: 0;
|
|
56
56
|
bottom: 0;
|
|
57
57
|
width: @aui-label-close-button-width;
|
|
58
|
-
filter: opacity(0.5);
|
|
59
58
|
|
|
60
59
|
//The close cross
|
|
61
60
|
&::before {
|
|
@@ -64,10 +63,18 @@ a.aui-label:active {
|
|
|
64
63
|
font-size: 10px;
|
|
65
64
|
margin: auto;
|
|
66
65
|
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/*
|
|
69
|
+
* Hover pseudo class can't be triggered in automated tests
|
|
70
|
+
* As a workaround we use a normal css class for testing
|
|
71
|
+
*/
|
|
72
|
+
.aui-label-closeable:has(.aui-icon-close:hover),
|
|
73
|
+
.aui-label-closeable:has(.aui-icon-close.hover) {
|
|
74
|
+
background: @aui-label-closable-bg-color;
|
|
75
|
+
color: @aui-label-closable-text-color;
|
|
67
76
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
color: var(--aui-label-close-hover-text-color);
|
|
71
|
-
filter: none;
|
|
77
|
+
a.aui-label-split-main {
|
|
78
|
+
color: @aui-label-closable-text-color;
|
|
72
79
|
}
|
|
73
80
|
}
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
@import (reference) './imports/aui-theme/components/forms';
|
|
4
4
|
|
|
5
5
|
@label-left-offset: 20px;
|
|
6
|
-
@button-border-width:
|
|
6
|
+
@button-border-width: @aui-form-button-border-width;
|
|
7
7
|
@button-focus-size: 12px;
|
|
8
8
|
@button-focus-border-color: @aui-focus-ring-color;
|
|
9
9
|
@button-focus-border: @aui-form-button-focus-border-width solid @button-focus-border-color;
|
|
10
10
|
|
|
11
11
|
@radio-offset-top: 4px;
|
|
12
12
|
@radio-offset-left: 0px;
|
|
13
|
+
@radio-glyph-offset-adjustment: 2px;
|
|
13
14
|
|
|
14
15
|
@checkbox-offset-top: 3px;
|
|
15
16
|
@checkbox-offset-left: 0px;
|
|
@@ -48,26 +49,32 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
48
49
|
top: @radio-offset-top - 1px;
|
|
49
50
|
}
|
|
50
51
|
.aui-radio-position(iconfont) {
|
|
51
|
-
@fudge: 2px; // the glyph renders in a slightly different position for font-related reasons.
|
|
52
52
|
position: absolute;
|
|
53
|
-
left: @radio-offset-left - @
|
|
54
|
-
top: @radio-offset-top - @
|
|
53
|
+
left: @radio-offset-left - @radio-glyph-offset-adjustment/2;
|
|
54
|
+
top: @radio-offset-top - @radio-glyph-offset-adjustment;
|
|
55
|
+
}
|
|
56
|
+
.aui-radio-outline-position() {
|
|
57
|
+
position: absolute;
|
|
58
|
+
left: @radio-offset-left - @aui-form-button-border-width - @aui-form-radio-checkbox-outline-padding-space;
|
|
59
|
+
top: @radio-offset-top - 1px - @aui-form-button-border-width - @aui-form-radio-checkbox-outline-padding-space;
|
|
55
60
|
}
|
|
56
61
|
.aui-checkbox-position() {
|
|
57
62
|
position: absolute;
|
|
58
63
|
left: @checkbox-offset-left;
|
|
59
64
|
top: @checkbox-offset-top;
|
|
60
65
|
}
|
|
61
|
-
.aui-checkbox-
|
|
66
|
+
.aui-checkbox-outline-position() {
|
|
62
67
|
position: absolute;
|
|
63
|
-
left: @checkbox-offset-left - @aui-form-button-
|
|
64
|
-
top: @checkbox-offset-top - @aui-form-button-
|
|
68
|
+
left: @checkbox-offset-left - @aui-form-button-border-width - @aui-form-radio-checkbox-outline-padding-space;
|
|
69
|
+
top: @checkbox-offset-top - @aui-form-button-border-width - @aui-form-radio-checkbox-outline-padding-space;
|
|
65
70
|
}
|
|
66
71
|
.aui-radio-disabled-style() {
|
|
67
72
|
& ~ label {
|
|
73
|
+
cursor: not-allowed;
|
|
68
74
|
color: @aui-form-disabled-field-label-color;
|
|
69
75
|
}
|
|
70
76
|
& + .aui-form-glyph::before {
|
|
77
|
+
cursor: not-allowed;
|
|
71
78
|
color: @radio-disabled-bg-color;
|
|
72
79
|
border-color: transparent;
|
|
73
80
|
background: transparent;
|
|
@@ -75,9 +82,11 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
75
82
|
}
|
|
76
83
|
.aui-checkbox-disabled-style() {
|
|
77
84
|
& ~ label {
|
|
85
|
+
cursor: not-allowed;
|
|
78
86
|
color: @aui-form-disabled-field-label-color;
|
|
79
87
|
}
|
|
80
88
|
& + .aui-form-glyph::before {
|
|
89
|
+
cursor: not-allowed;
|
|
81
90
|
color: @checkbox-disabled-icon-color;
|
|
82
91
|
border-color: @checkbox-disabled-border-color;
|
|
83
92
|
background: @checkbox-disabled-bg-color;
|
|
@@ -200,8 +209,8 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
200
209
|
}
|
|
201
210
|
|
|
202
211
|
&:focus + .aui-form-glyph::after {
|
|
203
|
-
.aui-radio-
|
|
204
|
-
.aui-radio-
|
|
212
|
+
#aui-forms.aui-radio-checkbox-outline-size();
|
|
213
|
+
.aui-radio-outline-position();
|
|
205
214
|
|
|
206
215
|
content: "";
|
|
207
216
|
|
|
@@ -209,10 +218,6 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
209
218
|
border-radius: @aui-form-button-size;
|
|
210
219
|
background-color: transparent;
|
|
211
220
|
}
|
|
212
|
-
|
|
213
|
-
&:focus + .aui-form-glyph::before {
|
|
214
|
-
border-color: @button-focus-border-color;
|
|
215
|
-
}
|
|
216
221
|
}
|
|
217
222
|
}
|
|
218
223
|
|
|
@@ -269,25 +274,17 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
269
274
|
}
|
|
270
275
|
}
|
|
271
276
|
|
|
272
|
-
&:focus + .aui-form-glyph::
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
+
&:focus + .aui-form-glyph::after {
|
|
278
|
+
#aui-forms.aui-radio-checkbox-outline-size();
|
|
279
|
+
.aui-checkbox-outline-position();
|
|
277
280
|
|
|
278
|
-
|
|
279
|
-
// Focus styles
|
|
280
|
-
//
|
|
281
|
+
content: "";
|
|
281
282
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
.aui-radio-focus-position() {
|
|
288
|
-
position: absolute;
|
|
289
|
-
left: @radio-offset-left;
|
|
290
|
-
top: @radio-offset-top - 1px;
|
|
283
|
+
border: @button-focus-border;
|
|
284
|
+
border-radius: @checkbox-border-radius;
|
|
285
|
+
background-color: transparent;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
291
288
|
}
|
|
292
289
|
|
|
293
290
|
}
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
@aui-form-transition-time: 0.2s;
|
|
39
39
|
|
|
40
40
|
@aui-form-button-size: 10px;
|
|
41
|
+
@aui-form-button-border-width: 2px;
|
|
41
42
|
@aui-form-button-focus-border-width: 2px;
|
|
43
|
+
@aui-form-radio-checkbox-outline-padding-space: 2px;
|
|
42
44
|
|
|
43
45
|
#aui-forms {
|
|
44
46
|
.aui-input-field-style(normal) {
|
|
@@ -73,6 +75,12 @@
|
|
|
73
75
|
width: @aui-form-button-size;
|
|
74
76
|
height: @aui-form-button-size;
|
|
75
77
|
}
|
|
78
|
+
|
|
79
|
+
.aui-radio-checkbox-outline-size() {
|
|
80
|
+
display: inline-block;
|
|
81
|
+
width: @aui-form-button-size + @aui-form-button-border-width * 2 + (@aui-form-radio-checkbox-outline-padding-space * 2);
|
|
82
|
+
height: @aui-form-button-size + @aui-form-button-border-width * 2 + (@aui-form-radio-checkbox-outline-padding-space * 2);
|
|
83
|
+
}
|
|
76
84
|
}
|
|
77
85
|
|
|
78
86
|
#aui-legacy-forms {
|
|
@@ -6,5 +6,7 @@
|
|
|
6
6
|
@aui-label-border-color: var(--aui-label-bg-color);
|
|
7
7
|
@aui-label-hover-bg-color: var(--aui-label-hover-bg-color);
|
|
8
8
|
@aui-label-hover-border-color: var(--aui-label-hover-bg-color);
|
|
9
|
+
@aui-label-closable-bg-color: var(--aui-label-close-hover-bg-color);
|
|
10
|
+
@aui-label-closable-text-color: var(--aui-label-close-hover-text-color);
|
|
9
11
|
|
|
10
12
|
@aui-label-border-radius: @aui-border-radius-smallish;
|
|
@@ -167,8 +167,8 @@
|
|
|
167
167
|
--aui-label-link-color: inherit;
|
|
168
168
|
--aui-label-bg-color: @ak-color-N20;
|
|
169
169
|
--aui-label-hover-bg-color: @ak-color-N20;
|
|
170
|
-
--aui-label-close-hover-bg-color: @ak-color-
|
|
171
|
-
--aui-label-close-hover-text-color: @ak-color-
|
|
170
|
+
--aui-label-close-hover-bg-color: @ak-color-R50;
|
|
171
|
+
--aui-label-close-hover-text-color: @ak-color-R500;
|
|
172
172
|
|
|
173
173
|
// Forms
|
|
174
174
|
--aui-form-placeholder-text-color: @ak-color-N300;
|
|
@@ -210,8 +210,8 @@
|
|
|
210
210
|
--aui-form-checkbox-active-bg-color: @ak-color-B50;
|
|
211
211
|
--aui-form-checkbox-active-border-color: @ak-color-B50;
|
|
212
212
|
--aui-form-checkbox-active-icon-color: @ak-color-B400;
|
|
213
|
-
--aui-form-radio-unchecked-bg-color: @ak-color-
|
|
214
|
-
--aui-form-radio-unchecked-border-color: @ak-color-
|
|
213
|
+
--aui-form-radio-unchecked-bg-color: @ak-color-N20;
|
|
214
|
+
--aui-form-radio-unchecked-border-color: @ak-color-N200;
|
|
215
215
|
|
|
216
216
|
// Toggle
|
|
217
217
|
--aui-toggle-default-bg-color: @ak-color-N200;
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
--aui-border: @ak-color-N50;
|
|
375
375
|
--aui-border-strong: @ak-color-N100;
|
|
376
376
|
--aui-focus: @ak-color-B100;
|
|
377
|
-
--aui-link-color: @ak-color-
|
|
377
|
+
--aui-link-color: @ak-color-B90;
|
|
378
378
|
--aui-link-decoration: none;
|
|
379
379
|
--aui-link-hover-color: @ak-color-B75;
|
|
380
380
|
--aui-link-active-color: @ak-color-B200;
|
|
@@ -516,10 +516,10 @@
|
|
|
516
516
|
// "Labels" (e.g., page tags, selected values in components, etc.)
|
|
517
517
|
--aui-label-text-color: @ak-color-N800;
|
|
518
518
|
--aui-label-link-color: @ak-color-N800;
|
|
519
|
-
--aui-label-bg-color: @ak-color-
|
|
519
|
+
--aui-label-bg-color: @ak-color-N50;
|
|
520
520
|
--aui-label-hover-bg-color: @ak-color-N80;
|
|
521
|
-
--aui-label-close-hover-bg-color: @ak-color-
|
|
522
|
-
--aui-label-close-hover-text-color: @ak-color-
|
|
521
|
+
--aui-label-close-hover-bg-color: @ak-color-R50;
|
|
522
|
+
--aui-label-close-hover-text-color: @ak-color-R500;
|
|
523
523
|
|
|
524
524
|
// Forms
|
|
525
525
|
--aui-form-placeholder-text-color: @ak-color-N200;
|
|
@@ -561,8 +561,8 @@
|
|
|
561
561
|
--aui-form-checkbox-active-bg-color: @ak-color-B50;
|
|
562
562
|
--aui-form-checkbox-active-border-color: @ak-color-B50;
|
|
563
563
|
--aui-form-checkbox-active-icon-color: @ak-color-B200;
|
|
564
|
-
--aui-form-radio-unchecked-bg-color: @ak-color-
|
|
565
|
-
--aui-form-radio-unchecked-border-color: @ak-color-
|
|
564
|
+
--aui-form-radio-unchecked-bg-color: @ak-color-N20;
|
|
565
|
+
--aui-form-radio-unchecked-border-color: @ak-color-N200;
|
|
566
566
|
|
|
567
567
|
// Toggle
|
|
568
568
|
--aui-toggle-default-bg-color: @ak-color-N90;
|
|
@@ -868,8 +868,8 @@
|
|
|
868
868
|
--aui-label-link-color: var(--ds-link);
|
|
869
869
|
--aui-label-bg-color: var(--ds-background-neutral, @ak-color-N20);
|
|
870
870
|
--aui-label-hover-bg-color: var(--ds-background-neutral, @ak-color-N20);
|
|
871
|
-
--aui-label-close-hover-bg-color: var(--ds-background-
|
|
872
|
-
--aui-label-close-hover-text-color: var(--ds-
|
|
871
|
+
--aui-label-close-hover-bg-color: var(--ds-background-danger, @ak-color-R50);
|
|
872
|
+
--aui-label-close-hover-text-color: var(--ds-text-danger, @ak-color-R500);
|
|
873
873
|
|
|
874
874
|
// Forms
|
|
875
875
|
--aui-form-placeholder-text-color: var(--ds-text-subtlest, @ak-color-N300);
|
|
@@ -877,9 +877,9 @@
|
|
|
877
877
|
--aui-form-label-text-color: var(--ds-text-subtle, @ak-color-N200);
|
|
878
878
|
--aui-form-error-text-color: var(--ds-text-danger, @ak-color-R400);
|
|
879
879
|
--aui-form-description-text-color: var(--ds-text-subtlest, @ak-color-N200);
|
|
880
|
-
--aui-form-disabled-field-bg-color: var(--ds-
|
|
881
|
-
--aui-form-disabled-field-text-color: var(--ds-text-
|
|
882
|
-
--aui-form-disabled-field-label-color: var(--ds-text-
|
|
880
|
+
--aui-form-disabled-field-bg-color: var(--ds-background-disabled, @ak-color-N20);
|
|
881
|
+
--aui-form-disabled-field-text-color: var(--ds-text-disabled, @ak-color-N80);
|
|
882
|
+
--aui-form-disabled-field-label-color: var(--ds-text-disabled, @ak-color-N80);
|
|
883
883
|
--aui-form-field-border-color: var(--ds-border-input, @ak-color-N40);
|
|
884
884
|
--aui-form-field-hover-border-color: var(--ds-border-focused, @ak-color-N40);
|
|
885
885
|
--aui-form-field-default-text-color: var(--ds-text, @ak-color-N800);
|
|
@@ -912,7 +912,7 @@
|
|
|
912
912
|
--aui-form-checkbox-active-border-color: var(--ds-border-accent-blue, @ak-color-B50);
|
|
913
913
|
--aui-form-checkbox-active-icon-color: var(--ds-icon-information, @ak-color-B400);
|
|
914
914
|
--aui-form-radio-unchecked-bg-color: var(--ds-background-input, @ak-color-N10);
|
|
915
|
-
--aui-form-radio-unchecked-border-color: var(--ds-border-
|
|
915
|
+
--aui-form-radio-unchecked-border-color: var(--ds-border-bold, @ak-color-N100);
|
|
916
916
|
|
|
917
917
|
// Toggle
|
|
918
918
|
--aui-toggle-default-bg-color: var(--ds-background-neutral-bold, @ak-color-N200);
|
|
@@ -9,5 +9,7 @@
|
|
|
9
9
|
@aui-z-blanket: @aui-z-layer-min - 500; // so it appears below modals
|
|
10
10
|
@aui-z-skip: @aui-z-layer-min + 1000; // so they appear above modals
|
|
11
11
|
@aui-z-flag-container: @aui-z-layer-min + 1000; // so they appear above modals
|
|
12
|
-
|
|
12
|
+
// default auiSelect2 z-index, so it can paint an "overlay" behind its suggestion dropdown
|
|
13
|
+
// overridden by select2.js based on layer z-index
|
|
14
|
+
@aui-z-select2: @aui-z-layer-min + 3;
|
|
13
15
|
@aui-z-tooltip: @aui-z-layer-min + 2000; // so they appear over the top of pretty much everything
|
|
@@ -7,13 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
// Those selectors rely on how Design Tokens library stores information about currently activated theme:
|
|
9
9
|
@theme-preference-not-set: ~'html:not([data-theme])';
|
|
10
|
-
@light-mode-enabled: ~'
|
|
11
|
-
@dark-mode-enabled: ~'
|
|
12
|
-
@original-light-theme-enabled: ~'@{light-mode-enabled}[data-theme~="light:original"]';
|
|
13
|
-
@original-dark-theme-enabled: ~'@{dark-mode-enabled}[data-theme~="dark:original"]';
|
|
10
|
+
@light-mode-enabled: ~'[data-color-mode="light"]';
|
|
11
|
+
@dark-mode-enabled: ~'[data-color-mode="dark"]';
|
|
12
|
+
@original-light-theme-enabled: ~'html@{light-mode-enabled}[data-theme~="light:original"]';
|
|
13
|
+
@original-dark-theme-enabled: ~'html@{dark-mode-enabled}[data-theme~="dark:original"]';
|
|
14
14
|
@original-mode-enabled: ~'@{theme-preference-not-set}, @{original-light-theme-enabled}, @{original-dark-theme-enabled}';
|
|
15
15
|
// Original is used as basis because it's just easier to understand
|
|
16
16
|
@design-tokens-mode-enabled: ~'html:not(@{original-mode-enabled})';
|
|
17
|
+
@design-tokens-light-theme-enabled: ~'@{design-tokens-mode-enabled}@{light-mode-enabled}';
|
|
18
|
+
@design-tokens-dark-theme-enabled: ~'@{design-tokens-mode-enabled}@{dark-mode-enabled}';
|
|
17
19
|
|
|
18
20
|
|
|
19
21
|
@{design-tokens-mode-enabled} {
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
@rules();
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
@{design-tokens-
|
|
43
|
+
@{design-tokens-light-theme-enabled} & {
|
|
42
44
|
@rules();
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
@rules();
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
@{design-tokens-
|
|
53
|
+
@{design-tokens-dark-theme-enabled} & {
|
|
52
54
|
@rules();
|
|
53
55
|
}
|
|
54
56
|
}
|