@atlassian/aui 9.12.4 → 9.12.6
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 +1 -1
- package/dist/aui/aui-prototyping-browserfocus.css.map +1 -1
- package/dist/aui/aui-prototyping-darkmode.css +1 -1
- package/dist/aui/aui-prototyping-darkmode.css.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api-full.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js +1 -1
- 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 +2 -2
- 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 +2 -2
- package/package.json +1 -1
- package/src/less/adg-header-quicksearch.less +9 -3
- package/src/less/aui-appheader.less +8 -0
- package/src/less/aui-select2.less +4 -3
- package/src/less/form-notification.less +3 -0
- package/src/less/forms-current.less +15 -10
- package/src/less/forms-legacy.less +3 -3
- package/src/less/forms.less +1 -1
- package/src/less/imports/aui-theme/components/forms.less +10 -0
- package/src/less/imports/aui-theme/core/colors.less +5 -1
- package/src/less/imports/mixins/focus.less +5 -15
- package/src/less/imports/mixins/shadows.less +9 -0
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@border-color: var(--aui-appheader-quicksearch-border-color);
|
|
12
12
|
@text-color: var(--aui-appheader-quicksearch-text-color);
|
|
13
13
|
@placeholder-color: var(--aui-appheader-quicksearch-placeholder-text-color);
|
|
14
|
+
@hover-bg-color: var(--aui-appheader-quicksearch-hover-bg-color);
|
|
14
15
|
@focus-bg-color: var(--aui-appheader-quicksearch-focus-bg-color);
|
|
15
16
|
@focus-text-color: var(--aui-appheader-quicksearch-focus-text-color);
|
|
16
17
|
@width: 170px;
|
|
@@ -44,11 +45,12 @@
|
|
|
44
45
|
input {
|
|
45
46
|
background: @bg-color;
|
|
46
47
|
border: @aui-form-field-border-width solid @border-color;
|
|
48
|
+
#aui-forms.with-design-tokens-dependent-border-width();
|
|
47
49
|
border-radius: @border-radius;
|
|
48
50
|
box-shadow: none;
|
|
49
51
|
box-sizing: border-box;
|
|
50
52
|
color: @text-color;
|
|
51
|
-
height: unit((
|
|
53
|
+
height: unit((32 / @aui-font-size-medium), em); // 32px effective - need height in ems so that user-specified font-sizes apply
|
|
52
54
|
font-family: inherit;
|
|
53
55
|
font-size: @aui-font-size-medium;
|
|
54
56
|
padding: 0 @padding-left-right 0 @icon-gutter;
|
|
@@ -56,7 +58,11 @@
|
|
|
56
58
|
width: @width;
|
|
57
59
|
|
|
58
60
|
&::placeholder {
|
|
59
|
-
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
background-color: @hover-bg-color;
|
|
60
66
|
}
|
|
61
67
|
}
|
|
62
68
|
|
|
@@ -97,7 +103,7 @@
|
|
|
97
103
|
|
|
98
104
|
input {
|
|
99
105
|
&:focus {
|
|
100
|
-
#aui.with-focus-border
|
|
106
|
+
#aui.with-focus-ring(@width: 1px, @inset: true, @set-border-color: true);
|
|
101
107
|
|
|
102
108
|
background: @focus-bg-color;
|
|
103
109
|
color: @focus-text-color;
|
|
@@ -151,6 +151,14 @@ aui-header,
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
// Make hover shadow rounded for icon buttons
|
|
155
|
+
.aui-header-secondary > .aui-nav > li > a.aui-button-round {
|
|
156
|
+
height: auto;
|
|
157
|
+
border-radius: 100%;
|
|
158
|
+
padding: 4px;
|
|
159
|
+
margin: 0 unit((4 / @aui-font-size-medium), em);
|
|
160
|
+
}
|
|
161
|
+
|
|
154
162
|
// Special-case padding to separate non-nav items from nav items.
|
|
155
163
|
.aui-header-primary > .aui-nav > li > .aui-button,
|
|
156
164
|
.aui-header-primary > .aui-nav > li > .aui-buttons {
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
|
|
88
88
|
.aui-select2-drop {
|
|
89
89
|
border: @aui-form-field-border-width solid @aui-button-border-color;
|
|
90
|
+
#aui-forms.with-design-tokens-dependent-border-width();
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.select2-drop.select2-drop-above .select2-search input {
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
input {
|
|
105
106
|
//padding for the icon
|
|
106
107
|
padding-right: (@icon-offset/2) + @aui-icon-size-small;
|
|
107
|
-
#aui.with-focus-
|
|
108
|
+
#aui.with-focus-ring(@inset: true);
|
|
108
109
|
border-radius: @aui-select2-form-field-border-radius;
|
|
109
110
|
//we need to use important because jquery plugin uses important as well :(
|
|
110
111
|
background: none !important;
|
|
@@ -270,7 +271,7 @@
|
|
|
270
271
|
font-family: inherit;
|
|
271
272
|
font-size: 14px;
|
|
272
273
|
height: 1.4285714285714em; /* 20px - using ems so the fields increase in line with user specified font-sizes */
|
|
273
|
-
line-height:
|
|
274
|
+
line-height: @aui-form-field-line-height;
|
|
274
275
|
margin: 0;
|
|
275
276
|
padding: 0;
|
|
276
277
|
}
|
|
@@ -392,7 +393,7 @@
|
|
|
392
393
|
display: inline-block;
|
|
393
394
|
filter: none;
|
|
394
395
|
height: 2.1428571428571em; /* 30px - using ems so the fields increase in line with user specified font-sizes */
|
|
395
|
-
line-height:
|
|
396
|
+
line-height: @aui-form-field-line-height;
|
|
396
397
|
margin: 0;
|
|
397
398
|
padding: 4px 10px;
|
|
398
399
|
text-decoration: none;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import (reference) './imports/global';
|
|
2
2
|
@import (reference) './imports/aui-theme/components/forms';
|
|
3
|
+
@import (reference) './imports/mixins/shadows';
|
|
3
4
|
/*
|
|
4
5
|
Icons.
|
|
5
6
|
*/
|
|
@@ -42,9 +43,11 @@ form.aui {
|
|
|
42
43
|
.select {
|
|
43
44
|
&[data-aui-notification-error] {
|
|
44
45
|
border-color: @aui-notification-error-color;
|
|
46
|
+
#aui.with-box-shadow(@aui-notification-error-color, @inset: true, @width: 1px);
|
|
45
47
|
}
|
|
46
48
|
&[data-aui-notification-success] {
|
|
47
49
|
border-color: @aui-notification-success-color;
|
|
50
|
+
#aui.with-box-shadow(@aui-notification-success-color, @inset: true, @width: 1px);
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
}
|
|
@@ -73,7 +73,9 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
73
73
|
.select {
|
|
74
74
|
#aui.transition(background-color @aui-form-transition-time ease-in-out);
|
|
75
75
|
#aui.transition(border-color @aui-form-transition-time ease-in-out);
|
|
76
|
+
#aui.transition(box-shadow @aui-form-transition-time ease-in-out);
|
|
76
77
|
border: @aui-form-field-border-width solid @aui-form-field-border-color;
|
|
78
|
+
#aui-forms.with-design-tokens-dependent-border-width();
|
|
77
79
|
border-radius: @aui-form-field-border-radius;
|
|
78
80
|
box-sizing: border-box;
|
|
79
81
|
font-size: inherit;
|
|
@@ -85,7 +87,9 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
85
87
|
.aui-select2-container .select2-choices {
|
|
86
88
|
#aui.transition(background-color @aui-form-transition-time ease-in-out);
|
|
87
89
|
#aui.transition(border-color @aui-form-transition-time ease-in-out);
|
|
90
|
+
#aui.transition(box-shadow @aui-form-transition-time ease-in-out);
|
|
88
91
|
border: @aui-form-field-border-width solid var(--aui-select2-field-border-color);
|
|
92
|
+
#aui-forms.with-design-tokens-dependent-border-width();
|
|
89
93
|
border-radius: @aui-form-field-border-radius;
|
|
90
94
|
box-sizing: border-box;
|
|
91
95
|
font-size: inherit;
|
|
@@ -104,7 +108,7 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
104
108
|
.select,
|
|
105
109
|
.aui-select2-container .select2-choices {
|
|
106
110
|
height: @aui-form-field-height;
|
|
107
|
-
line-height:
|
|
111
|
+
line-height: @aui-form-field-line-height;
|
|
108
112
|
padding: 3px 4px;
|
|
109
113
|
}
|
|
110
114
|
|
|
@@ -112,7 +116,7 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
112
116
|
.select[size],
|
|
113
117
|
.multi-select {
|
|
114
118
|
height: auto;
|
|
115
|
-
line-height:
|
|
119
|
+
line-height: @aui-form-field-line-height;
|
|
116
120
|
margin: 0;
|
|
117
121
|
padding: 3px 4px;
|
|
118
122
|
}
|
|
@@ -144,23 +148,24 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
144
148
|
#aui-forms.aui-input-field-style(focus);
|
|
145
149
|
}
|
|
146
150
|
}
|
|
151
|
+
.select,
|
|
152
|
+
.multi-select
|
|
153
|
+
{
|
|
154
|
+
&:focus {
|
|
155
|
+
#aui.with-focus-ring(@width: 1px, @inset: false, @set-border-color: true);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
147
158
|
.text,
|
|
148
159
|
.password,
|
|
149
160
|
.textarea,
|
|
150
|
-
.select,
|
|
151
|
-
.multi-select,
|
|
152
161
|
.aui-select2-container .select2-choices {
|
|
153
|
-
// Forms get a custom "border-as-focus" style, because:
|
|
154
|
-
// a) the form field doesn't "grow" in size,
|
|
155
|
-
// b) the "focus ring" is impossible to clip when it's a border, and
|
|
156
|
-
// c) it's more in line with how Atlaskit does it.
|
|
157
162
|
&:focus {
|
|
158
|
-
#aui.with-focus-
|
|
163
|
+
#aui.with-focus-ring(@width: 1px, @inset: true, @set-border-color: true);
|
|
159
164
|
}
|
|
160
165
|
}
|
|
161
166
|
|
|
162
167
|
.aui-select2-container.select2-container-active .select2-choices {
|
|
163
|
-
#aui.with-focus-border
|
|
168
|
+
#aui.with-focus-ring(@width: 1px, @inset: false, @set-border-color: true);
|
|
164
169
|
}
|
|
165
170
|
|
|
166
171
|
.button,
|
|
@@ -37,7 +37,7 @@ form.aui.aui-legacy-forms {
|
|
|
37
37
|
.select,
|
|
38
38
|
.aui-select2-container .select2-choices {
|
|
39
39
|
height: @aui-form-field-height;
|
|
40
|
-
line-height:
|
|
40
|
+
line-height: @aui-form-field-line-height;
|
|
41
41
|
padding: 4px 5px;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -45,7 +45,7 @@ form.aui.aui-legacy-forms {
|
|
|
45
45
|
.select[size],
|
|
46
46
|
.multi-select {
|
|
47
47
|
height: auto;
|
|
48
|
-
line-height:
|
|
48
|
+
line-height: @aui-form-field-line-height;
|
|
49
49
|
margin: 0;
|
|
50
50
|
padding: 4px 5px;
|
|
51
51
|
}
|
|
@@ -89,7 +89,7 @@ form.aui.aui-legacy-forms {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.aui-select2-container.select2-container-active .select2-choices {
|
|
92
|
-
#aui.with-focus-border
|
|
92
|
+
#aui.with-focus-ring(@width: 1px, @inset: true, @set-border-color: true);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.aui-select2-container.select2-container-multi .select2-choices {
|
package/src/less/forms.less
CHANGED
|
@@ -243,7 +243,7 @@ form.aui .button {
|
|
|
243
243
|
#aui-buttons.aui-button-base();
|
|
244
244
|
#aui-buttons.aui-button-style(normal);
|
|
245
245
|
height: @aui-form-field-height;
|
|
246
|
-
line-height:
|
|
246
|
+
line-height: @aui-form-field-line-height;
|
|
247
247
|
margin: 0;
|
|
248
248
|
padding: @aui-button-padding-y @aui-button-padding-x;
|
|
249
249
|
text-decoration: none;
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
@aui-form-field-border-radius: @aui-border-radius-smallish;
|
|
28
28
|
@aui-form-field-border-width: 2px;
|
|
29
|
+
@aui-form-field-border-width-dt: 1px;
|
|
29
30
|
|
|
30
31
|
@aui-form-field-width-default: 250px;
|
|
31
32
|
@aui-form-field-width-short: 75px;
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
@aui-form-field-width-long: 500px;
|
|
35
36
|
@aui-form-field-width-full: none;
|
|
36
37
|
@aui-form-field-height: unit((30px / @aui-font-size-medium), em); // 30px - using ems so the fields increase in line with user specified font-sizes
|
|
38
|
+
@aui-form-field-line-height: 1.4285714285714; // 20px
|
|
37
39
|
|
|
38
40
|
@aui-form-transition-time: 0.2s;
|
|
39
41
|
|
|
@@ -81,6 +83,14 @@
|
|
|
81
83
|
width: @aui-form-button-size + @aui-form-button-border-width * 2 + (@aui-form-radio-checkbox-outline-padding-space * 2);
|
|
82
84
|
height: @aui-form-button-size + @aui-form-button-border-width * 2 + (@aui-form-radio-checkbox-outline-padding-space * 2);
|
|
83
85
|
}
|
|
86
|
+
|
|
87
|
+
.with-design-tokens-dependent-border-width() {
|
|
88
|
+
border-width: @aui-form-field-border-width;
|
|
89
|
+
|
|
90
|
+
#aui-themes.when-design-tokens({
|
|
91
|
+
border-width: @aui-form-field-border-width-dt;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
84
94
|
}
|
|
85
95
|
|
|
86
96
|
#aui-legacy-forms {
|
|
@@ -250,6 +250,7 @@
|
|
|
250
250
|
--aui-appheader-quicksearch-border-color: transparent;
|
|
251
251
|
--aui-appheader-quicksearch-text-color: @ak-color-B50;
|
|
252
252
|
--aui-appheader-quicksearch-placeholder-text-color: @ak-color-N80;
|
|
253
|
+
--aui-appheader-quicksearch-hover-bg-color: var(--aui-appheader-quicksearch-bg-color);
|
|
253
254
|
--aui-appheader-quicksearch-focus-bg-color: var(--aui-appheader-quicksearch-bg-color);
|
|
254
255
|
--aui-appheader-quicksearch-focus-text-color: @ak-color-B50;
|
|
255
256
|
|
|
@@ -601,6 +602,7 @@
|
|
|
601
602
|
--aui-appheader-quicksearch-border-color: transparent;
|
|
602
603
|
--aui-appheader-quicksearch-text-color: @ak-color-B50;
|
|
603
604
|
--aui-appheader-quicksearch-placeholder-text-color: @ak-color-N400;
|
|
605
|
+
--aui-appheader-quicksearch-hover-bg-color: var(--aui-appheader-quicksearch-bg-color);
|
|
604
606
|
--aui-appheader-quicksearch-focus-bg-color: var(--aui-appheader-quicksearch-bg-color);
|
|
605
607
|
--aui-appheader-quicksearch-focus-text-color: @ak-color-B50;
|
|
606
608
|
|
|
@@ -947,10 +949,12 @@
|
|
|
947
949
|
--aui-appheader-item-focus-text-color: var(--ds-text, @ak-color-B50);
|
|
948
950
|
--aui-appheader-item-active-bg-color: var(--ds-background-neutral-subtle-pressed, @ak-color-N90A);
|
|
949
951
|
--aui-appheader-item-active-text-color: var(--ds-text, @ak-color-B50);
|
|
950
|
-
|
|
952
|
+
//--aui-appheader-quicksearch-bg-color: var(--ds-background-neutral, @ak-color-N90A);
|
|
953
|
+
--aui-appheader-quicksearch-bg-color: var(--ds-background-input, @ak-color-N90A);
|
|
951
954
|
--aui-appheader-quicksearch-border-color: var(--ds-border-input);
|
|
952
955
|
--aui-appheader-quicksearch-text-color: var(--ds-text-subtlest, @ak-color-B50);
|
|
953
956
|
--aui-appheader-quicksearch-placeholder-text-color: var(--ds-text, @ak-color-N80);
|
|
957
|
+
--aui-appheader-quicksearch-hover-bg-color: var(--ds-background-input-hovered);
|
|
954
958
|
--aui-appheader-quicksearch-focus-bg-color: var(--aui-appheader-quicksearch-bg-color);
|
|
955
959
|
--aui-appheader-quicksearch-focus-text-color: var(--ds-text-subtlest, @ak-color-B50);
|
|
956
960
|
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
@import (reference) '../aui-theme/core/colors';
|
|
2
|
+
@import (reference) './shadows';
|
|
2
3
|
|
|
3
4
|
@aui-focus-ring-color: var(--aui-focus);
|
|
4
5
|
|
|
5
6
|
#aui {
|
|
6
|
-
.with-focus-ring(@
|
|
7
|
+
.with-focus-ring(@width: 2px; @inset: false; @set-border-color: false) {
|
|
7
8
|
outline-style: none;
|
|
8
|
-
& when (@inset = true) {
|
|
9
|
-
box-shadow+: inset 0 0 0 @outline-width @color;
|
|
10
|
-
}
|
|
11
|
-
& when (@inset = false) {
|
|
12
|
-
box-shadow+: 0 0 0 @outline-width @color;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
9
|
|
|
16
|
-
|
|
17
|
-
outline: none;
|
|
18
|
-
border-width: @outline-width;
|
|
19
|
-
border-color: @color;
|
|
10
|
+
#aui.with-box-shadow(@aui-focus-ring-color, @width, @inset);
|
|
20
11
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
box-shadow: unset;
|
|
12
|
+
& when (@set-border-color = true) {
|
|
13
|
+
border-color: @aui-focus-ring-color;
|
|
24
14
|
}
|
|
25
15
|
}
|
|
26
16
|
|