@atlassian/aui 9.3.1 → 9.3.5
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-css-deprecations.js +1 -1
- package/dist/aui/aui-css-deprecations.js.map +1 -1
- package/dist/aui/aui-prototyping.css +7 -7
- package/dist/aui/aui-prototyping.js +12 -12
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +7 -7
- package/dist/aui/aui-prototyping.nodeps.js +12 -12
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/entry/aui.batch.prototyping.js +2 -1
- package/entry/aui.component.form.date-select.js +1 -1
- package/package.json +16 -15
- package/src/js/aui/date-picker.js +15 -8
- package/src/js/aui/i18n.js +6 -1
- package/src/js/aui/inline-dialog.js +1 -1
- package/src/js/aui/internal/globalize.js +13 -0
- package/src/js/aui/tabs.js +3 -3
- package/src/js/aui/tooltip.js +21 -8
- package/src/js/aui-css-deprecations.js +9 -1
- package/src/less/aui-appheader.less +28 -10
- package/src/less/aui-select2.less +9 -4
- package/src/less/aui-sidebar-badges.less +1 -1
- package/src/less/forms-current.less +5 -4
- package/src/less/forms-radios-and-checkboxes.less +2 -1
- package/src/less/imports/aui-theme/components/sidebar.less +1 -0
- package/src/less/imports/mixins/dropdown2-trigger-chevron-icon.less +2 -2
- package/src/less/imports/mixins.less +13 -8
- package/src/less/single-select.less +0 -2
|
@@ -9,7 +9,7 @@ export * from './aui.batch.components';
|
|
|
9
9
|
import './aui.component.form-notification';
|
|
10
10
|
import './aui.component.form-validation';
|
|
11
11
|
import { Header } from './aui.component.async-header';
|
|
12
|
-
import { DatePicker } from './aui.component.form.date-select';
|
|
12
|
+
import { DatePicker, CalendarWidget } from './aui.component.form.date-select';
|
|
13
13
|
import { RestfulTable } from './aui.component.restful-table';
|
|
14
14
|
import { sidebar } from './aui.component.sidebar';
|
|
15
15
|
import { whenIType } from './behaviours/aui.behaviour.keyboard-shortcuts';
|
|
@@ -18,6 +18,7 @@ export {
|
|
|
18
18
|
I18n,
|
|
19
19
|
Header,
|
|
20
20
|
DatePicker,
|
|
21
|
+
CalendarWidget,
|
|
21
22
|
RestfulTable,
|
|
22
23
|
sidebar,
|
|
23
24
|
whenIType,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import './styles/aui.pattern.forms';
|
|
2
2
|
import './aui.component.inline-dialog2'; // so that the inline dialog styles get placed before date picker.
|
|
3
3
|
import '@atlassian/aui/src/less/aui-date-picker.less';
|
|
4
|
-
export { default as DatePicker } from '@atlassian/aui/src/js/aui/date-picker';
|
|
4
|
+
export { default as DatePicker, CalendarWidget } from '@atlassian/aui/src/js/aui/date-picker';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlassian/aui",
|
|
3
3
|
"description": "Atlassian User Interface library",
|
|
4
|
-
"version": "9.3.
|
|
4
|
+
"version": "9.3.5",
|
|
5
5
|
"author": "Atlassian Pty Ltd.",
|
|
6
6
|
"homepage": "https://aui.atlassian.com",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -28,35 +28,36 @@
|
|
|
28
28
|
"README.md",
|
|
29
29
|
"yarn.lock"
|
|
30
30
|
],
|
|
31
|
+
"//": "AUI's publishConfig is managed by its build scripts.",
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"jquery": "^2 || ^3"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@atlassian/tipsy": "
|
|
36
|
-
"@popperjs/core": "
|
|
37
|
-
"backbone": "
|
|
36
|
+
"@atlassian/tipsy": "1.3.3",
|
|
37
|
+
"@popperjs/core": "2.4.4",
|
|
38
|
+
"backbone": "1.4.0",
|
|
38
39
|
"css.escape": "1.5.0",
|
|
39
|
-
"fancy-file-input": "
|
|
40
|
-
"jquery-ui": "
|
|
40
|
+
"fancy-file-input": "2.0.4",
|
|
41
|
+
"jquery-ui": "1.12.1",
|
|
41
42
|
"skatejs": "0.13.17",
|
|
42
43
|
"skatejs-template-html": "0.0.0",
|
|
43
44
|
"trim-extra-html-whitespace": "1.3.0",
|
|
44
|
-
"underscore": "
|
|
45
|
+
"underscore": "1.13.1"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@atlassian/adg-server-iconfont": "3.1.0",
|
|
48
49
|
"@atlassian/aui-webpack-config": "2.0.0",
|
|
49
|
-
"@babel/core": "7.13.
|
|
50
|
-
"@babel/preset-env": "7.13.
|
|
50
|
+
"@babel/core": "7.13.15",
|
|
51
|
+
"@babel/preset-env": "7.13.15",
|
|
51
52
|
"bundlesize": "^1.0.0-beta.2",
|
|
52
|
-
"cross-env": "
|
|
53
|
-
"eslint": "
|
|
54
|
-
"glob": "
|
|
53
|
+
"cross-env": "7.0.3",
|
|
54
|
+
"eslint": "7.24.0",
|
|
55
|
+
"glob": "7.1.2",
|
|
55
56
|
"ignore-emit-webpack-plugin": "^2.0.2",
|
|
56
|
-
"jquery": "
|
|
57
|
-
"jquery-migrate": "
|
|
57
|
+
"jquery": "3.5.1",
|
|
58
|
+
"jquery-migrate": "3.3.2",
|
|
58
59
|
"less": "3.11.1",
|
|
59
|
-
"webpack-cli": "
|
|
60
|
+
"webpack-cli": "3.3.12"
|
|
60
61
|
},
|
|
61
62
|
"scripts": {
|
|
62
63
|
"prepublishOnly": "yarn clean && cross-env NODE_ENV=production yarn build",
|
|
@@ -21,13 +21,13 @@ const makePopup = ({horizontalAlignment, datePickerUUID}) => {
|
|
|
21
21
|
return popup;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
const makeConfig = ({dateFormat, $field, onSelect, hide, onChangeMonthYear}) => ({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
const makeConfig = ({ minDate, maxDate, dateFormat, $field, onSelect, hide, onChangeMonthYear}) => ({
|
|
25
|
+
dateFormat,
|
|
26
|
+
defaultDate: $field.val(),
|
|
27
|
+
maxDate: maxDate || $field.attr('max'),
|
|
28
|
+
minDate: minDate || $field.attr('min'),
|
|
29
|
+
nextText: '>',
|
|
30
|
+
onSelect: function (dateText) {
|
|
31
31
|
$field.val(dateText);
|
|
32
32
|
$field.trigger('change');
|
|
33
33
|
hide();
|
|
@@ -35,7 +35,7 @@ const makeConfig = ({dateFormat, $field, onSelect, hide, onChangeMonthYear}) =>
|
|
|
35
35
|
onSelect && onSelect.call(this, dateText);
|
|
36
36
|
},
|
|
37
37
|
onChangeMonthYear,
|
|
38
|
-
|
|
38
|
+
prevText: '<'
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
const initCalendar = ({config, popupContents, getCalendarNode, hint}) => {
|
|
@@ -287,6 +287,8 @@ const initPolyfill = function (datePicker) {
|
|
|
287
287
|
}
|
|
288
288
|
const baseConfig = makeConfig({
|
|
289
289
|
dateFormat: options.dateFormat,
|
|
290
|
+
minDate: options.minDate,
|
|
291
|
+
maxDate: options.maxDate,
|
|
290
292
|
$field,
|
|
291
293
|
onSelect: options.onSelect,
|
|
292
294
|
hide: datePicker.hide,
|
|
@@ -337,6 +339,11 @@ const initPolyfill = function (datePicker) {
|
|
|
337
339
|
// shows that changing the `type` of input does not erase its value.
|
|
338
340
|
// see https://codepen.io/chrisdarroch/pen/YzwgjyJ
|
|
339
341
|
$field.prop('type', 'text');
|
|
342
|
+
// Set default value on initialization to handle all date formats.
|
|
343
|
+
// It is possible, because of changing type to text on the line above.
|
|
344
|
+
$field.val($field.attr('value'));
|
|
345
|
+
// Trigger change to update calendar popup value.
|
|
346
|
+
$field.trigger('propertychange');
|
|
340
347
|
|
|
341
348
|
// demonstrate the polyfill is initialised
|
|
342
349
|
$field.attr('data-aui-dp-uuid', datePickerUUID);
|
package/src/js/aui/i18n.js
CHANGED
|
@@ -7,7 +7,7 @@ import keys from './internal/i18n/aui';
|
|
|
7
7
|
* the key is returned - this could occur in plugin mode if the I18n transform is not performed;
|
|
8
8
|
* or in flatpack mode if the i18n JS file is not loaded.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
const I18n = {
|
|
11
11
|
keys: keys,
|
|
12
12
|
getText: function (key, ...params) {
|
|
13
13
|
if (Object.prototype.hasOwnProperty.call(this.keys, key)) {
|
|
@@ -18,6 +18,11 @@ export var I18n = {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
export {
|
|
22
|
+
I18n,
|
|
23
|
+
format
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
/**
|
|
22
27
|
* Deprecated - do not use AJS.I18n.getText from global scope within AUI code. Use import { I18n } from '../i18n'
|
|
23
28
|
* Also keep in mind that WRM is looking for patterns like "I18n.getText" so do not create
|
|
@@ -6,7 +6,7 @@ import globalize from './internal/globalize';
|
|
|
6
6
|
import keyCode from './key-code';
|
|
7
7
|
import cssEscape from 'css.escape';
|
|
8
8
|
|
|
9
|
-
/* eslint
|
|
9
|
+
/* eslint quotes:off, eqeqeq:off, strict:off, complexity:off */
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Creates a new inline dialog.
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
const NAMESPACE = 'AJS';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Makes given value available globally under window[name] attribute.
|
|
5
|
+
* Keep in mind that this is needed for p2-plugin where chunks of AUI
|
|
6
|
+
* can be loaded separately.
|
|
7
|
+
*
|
|
8
|
+
* In order for global namespace to work in `aui.prototyping.js` and
|
|
9
|
+
* `aui.prototyping.nodeps.js` the proper exports need to be added to:
|
|
10
|
+
* `packages/core/entry/aui.batch.prototyping.js`
|
|
11
|
+
*
|
|
12
|
+
* @param {string} name Name of the attribute
|
|
13
|
+
* @param {any} value Value to expose globally
|
|
14
|
+
* @returns exposed value
|
|
15
|
+
*/
|
|
3
16
|
export default function globalize (name, value) {
|
|
4
17
|
if (typeof window[NAMESPACE] !== 'object') {
|
|
5
18
|
window[NAMESPACE] = {};
|
package/src/js/aui/tabs.js
CHANGED
|
@@ -214,7 +214,7 @@ function calculateResponsiveTabs(tabsContainer, index) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
if (!$tabsContainer.hasClass('aui-tabs-disabled')) {
|
|
217
|
-
$dropdown.on('click', 'a', handleTabClick);
|
|
217
|
+
$dropdown.on('click.aui-tabs', 'a', handleTabClick);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/* Workaround for bug in Edge where the dom is just not being re-rendered properly
|
|
@@ -371,7 +371,7 @@ function getResponsiveTabs () {
|
|
|
371
371
|
function initWindow () {
|
|
372
372
|
const handler = debounce(responsiveResizeHandler, 200);
|
|
373
373
|
handler(getResponsiveTabs());
|
|
374
|
-
$(window).on('resize', () => handler(getResponsiveTabs()));
|
|
374
|
+
$(window).on('resize.aui-tabs', () => handler(getResponsiveTabs()));
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
function initTab (tab) {
|
|
@@ -392,7 +392,7 @@ function initTab (tab) {
|
|
|
392
392
|
});
|
|
393
393
|
|
|
394
394
|
// Set up click event for tabs
|
|
395
|
-
$tabMenu.on('click', 'a', handleTabClick);
|
|
395
|
+
$tabMenu.on('click.aui-tabs', 'a', handleTabClick);
|
|
396
396
|
$tab.data('aui-tab-events-bound', true);
|
|
397
397
|
|
|
398
398
|
initPanes(tab);
|
package/src/js/aui/tooltip.js
CHANGED
|
@@ -3,6 +3,7 @@ import { createPopper } from '@popperjs/core';
|
|
|
3
3
|
|
|
4
4
|
const AUI_TOOLTIP_CLASS_NAME = 'aui-tooltip';
|
|
5
5
|
const AUI_TOOLTIP_ID = 'aui-tooltip';
|
|
6
|
+
const AUI_TOOLTIP_TIMEOUT = 300;
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* The purpose of this map is to make it possible to use old Tipsy tooltip positions
|
|
@@ -30,6 +31,7 @@ const defaultOptions = {
|
|
|
30
31
|
gravity: 'n',
|
|
31
32
|
html: false,
|
|
32
33
|
live: false,
|
|
34
|
+
enabled: true,
|
|
33
35
|
suppress: () => false
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -40,6 +42,7 @@ class Tooltip {
|
|
|
40
42
|
this.triggerElement = triggerElement;
|
|
41
43
|
this.$triggerElement = $(this.triggerElement);
|
|
42
44
|
this.options = { ...defaultOptions, ...options };
|
|
45
|
+
this.enabled = this.options.enabled
|
|
43
46
|
this.moveTitleToTooltip()
|
|
44
47
|
}
|
|
45
48
|
|
|
@@ -101,12 +104,13 @@ class Tooltip {
|
|
|
101
104
|
return $sharedTip;
|
|
102
105
|
}
|
|
103
106
|
|
|
104
|
-
|
|
105
107
|
show() {
|
|
108
|
+
if (this.enabled === false) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
this.hide();
|
|
106
112
|
const triggerElement = this.triggerElement;
|
|
107
113
|
|
|
108
|
-
const $tip = this.getFloatingTip();
|
|
109
|
-
|
|
110
114
|
const placement = GRAVITY_MAP[this.options.gravity];
|
|
111
115
|
|
|
112
116
|
clearTimeout(this.popperTimeout);
|
|
@@ -118,8 +122,7 @@ class Tooltip {
|
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
this.popperTimeout = setTimeout(() => {
|
|
121
|
-
const tipNode =
|
|
122
|
-
// tipNode.setAttribute('data-show', '');
|
|
125
|
+
const tipNode = this.getFloatingTip().get(0);
|
|
123
126
|
tipNode.classList.remove('assistive');
|
|
124
127
|
|
|
125
128
|
this.popperInstance = createPopper(triggerElement, tipNode, {
|
|
@@ -135,12 +138,11 @@ class Tooltip {
|
|
|
135
138
|
});
|
|
136
139
|
|
|
137
140
|
$(window).on(`scroll.${pluginKey}`, () => this.hide());
|
|
138
|
-
},
|
|
141
|
+
}, AUI_TOOLTIP_TIMEOUT);
|
|
139
142
|
}
|
|
140
143
|
|
|
141
144
|
hide() {
|
|
142
145
|
const tipNode = this.getFloatingTip().get(0);
|
|
143
|
-
// tipNode.removeAttribute('data-show');
|
|
144
146
|
tipNode.classList.add('assistive');
|
|
145
147
|
|
|
146
148
|
clearTimeout(this.popperTimeout);
|
|
@@ -151,6 +153,15 @@ class Tooltip {
|
|
|
151
153
|
}
|
|
152
154
|
$(window).off(`scroll.${pluginKey}`);
|
|
153
155
|
}
|
|
156
|
+
|
|
157
|
+
enable() {
|
|
158
|
+
this.enabled = true;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
disable() {
|
|
162
|
+
this.hide();
|
|
163
|
+
this.enabled = false;
|
|
164
|
+
}
|
|
154
165
|
}
|
|
155
166
|
|
|
156
167
|
const tooltipsByDomNode = new WeakMap();
|
|
@@ -162,7 +173,9 @@ const getTooltipInstance = (domNode, options) => {
|
|
|
162
173
|
let tooltip = tooltipsByDomNode.get(domNode);
|
|
163
174
|
if (tooltip === undefined) {
|
|
164
175
|
tooltip = new Tooltip(domNode, options);
|
|
165
|
-
|
|
176
|
+
if (typeof domNode === 'object') {
|
|
177
|
+
tooltipsByDomNode.set(domNode, tooltip);
|
|
178
|
+
}
|
|
166
179
|
}
|
|
167
180
|
return tooltip;
|
|
168
181
|
}
|
|
@@ -116,10 +116,18 @@ Use CSS flexbox or grid to vertically align it.
|
|
|
116
116
|
See https://css-tricks.com/centering-css-complete-guide/ for techniques.`
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
//8.4.0
|
|
119
|
+
// 8.4.0
|
|
120
120
|
|
|
121
121
|
css('.aui-button-light', {
|
|
122
122
|
sinceVersion: '8.4.0',
|
|
123
123
|
removeInVersion: '10.0.0',
|
|
124
124
|
extraInfo: 'ADGS allows only for normal and subtle buttons.'
|
|
125
125
|
});
|
|
126
|
+
|
|
127
|
+
// 9.3.5
|
|
128
|
+
|
|
129
|
+
css('.aui-dropdown2-tailed', {
|
|
130
|
+
sinceVersion: '9.3.5',
|
|
131
|
+
removeInVersion: '10.0.0',
|
|
132
|
+
extraInfo: 'ADGS does not include tails on layered components'
|
|
133
|
+
})
|
|
@@ -16,6 +16,14 @@ aui-header,
|
|
|
16
16
|
justify-content: flex-end;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.aui-nav-images() {
|
|
20
|
+
img, svg {
|
|
21
|
+
max-height: calc(var(--aui-appheader-logo-height, var(--aui-appheader-item-height, 100%)) - 10px);
|
|
22
|
+
display: inline-block;
|
|
23
|
+
vertical-align: text-bottom;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
// Structural styles
|
|
20
28
|
.aui-header {
|
|
21
29
|
--aui-badge-text-color: var(--aui-appheader-text-color);
|
|
@@ -30,12 +38,6 @@ aui-header,
|
|
|
30
38
|
position: relative;
|
|
31
39
|
z-index: @aui-z-header;
|
|
32
40
|
|
|
33
|
-
img, svg {
|
|
34
|
-
max-height: calc(var(--aui-appheader-logo-height, var(--aui-appheader-item-height, 100%)) - 10px);
|
|
35
|
-
display: inline-block;
|
|
36
|
-
vertical-align: text-bottom;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
41
|
.aui-header-before {
|
|
40
42
|
flex-grow: 0;
|
|
41
43
|
margin-right: @section-gap;
|
|
@@ -57,6 +59,9 @@ aui-header,
|
|
|
57
59
|
vertical-align: text-bottom;
|
|
58
60
|
white-space: nowrap;
|
|
59
61
|
|
|
62
|
+
// Set styles for img/svg inside the header logo
|
|
63
|
+
.aui-nav-images();
|
|
64
|
+
|
|
60
65
|
// Variant where logo is a CSS background-image
|
|
61
66
|
.aui-header-logo-device {
|
|
62
67
|
background-repeat: no-repeat;
|
|
@@ -90,6 +95,11 @@ aui-header,
|
|
|
90
95
|
> button {
|
|
91
96
|
white-space: nowrap;
|
|
92
97
|
display: inline-block;
|
|
98
|
+
|
|
99
|
+
// Set styles for avatar images inside nav items
|
|
100
|
+
> .aui-avatar {
|
|
101
|
+
.aui-nav-images();
|
|
102
|
+
}
|
|
93
103
|
}
|
|
94
104
|
}
|
|
95
105
|
}
|
|
@@ -101,9 +111,10 @@ aui-header,
|
|
|
101
111
|
background: var(--aui-appheader-bg-color);
|
|
102
112
|
height: var(--aui-appheader-height, initial);
|
|
103
113
|
|
|
104
|
-
//
|
|
105
|
-
.aui-
|
|
106
|
-
|
|
114
|
+
// Set color in locations where it will not bleed in to nested layered components.
|
|
115
|
+
.aui-header-before > :not(.aui-layer),
|
|
116
|
+
.aui-header-logo {
|
|
117
|
+
color: var(--aui-appheader-text-color, var(--aui-body-text));
|
|
107
118
|
}
|
|
108
119
|
|
|
109
120
|
// Target the links in the app header.
|
|
@@ -151,11 +162,18 @@ aui-header,
|
|
|
151
162
|
margin-right: @section-gap / 2;
|
|
152
163
|
}
|
|
153
164
|
|
|
165
|
+
// Override the icon styles so that every icon in the header is a uniform size...
|
|
166
|
+
// ...but only in the right-hand side of the header.
|
|
167
|
+
.aui-header-secondary > .aui-nav > li > a > .aui-icon {
|
|
168
|
+
--aui-icon-size: 24px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// Bump up the font size when text is used in place of a logo
|
|
154
172
|
.aui-header-logo {
|
|
155
|
-
color: var(--aui-appheader-text-color);
|
|
156
173
|
font-size: @aui-font-size-xxlarge;
|
|
157
174
|
}
|
|
158
175
|
|
|
176
|
+
// Reduce the font size when a logo has supporting text
|
|
159
177
|
.aui-header-logo .aui-header-logo-text {
|
|
160
178
|
font-size: @aui-font-size-medium;
|
|
161
179
|
}
|
|
@@ -233,14 +233,16 @@
|
|
|
233
233
|
.aui-select2-container.select2-container .select2-choice:after {
|
|
234
234
|
#aui.icon-pseudoelement();
|
|
235
235
|
content: @aui-glyph-chevron-down;
|
|
236
|
-
left: 100%; /* "left" + "margin-left" required because of webkit not working properly with "right" */
|
|
237
236
|
height: 0;
|
|
238
237
|
margin-left: -18px;
|
|
239
238
|
margin-top: -2px;
|
|
240
239
|
opacity: 1;
|
|
241
240
|
position: absolute;
|
|
242
|
-
top:
|
|
241
|
+
top: calc(50% - 10px);
|
|
243
242
|
width: 0;
|
|
243
|
+
font-size: 16px;
|
|
244
|
+
line-height: 24px;
|
|
245
|
+
right: 22px;
|
|
244
246
|
}
|
|
245
247
|
|
|
246
248
|
/* Set the default text color to inherit.
|
|
@@ -271,9 +273,12 @@
|
|
|
271
273
|
.aui-select2-container.select2-container-multi .select2-choices {
|
|
272
274
|
#aui-forms.aui-select2-input-field-style(normal);
|
|
273
275
|
#aui.icon(@aui-glyph-chevron-down, {
|
|
274
|
-
font-size:
|
|
276
|
+
font-size: 16.5px;
|
|
275
277
|
left: inherit;
|
|
276
|
-
|
|
278
|
+
color: var(--aui-button-default-text-color);
|
|
279
|
+
right: 3px;
|
|
280
|
+
top: 50%;
|
|
281
|
+
line-height: 16px;
|
|
277
282
|
});
|
|
278
283
|
|
|
279
284
|
min-height: 0;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
> .aui-badge,
|
|
16
16
|
> aui-badge {
|
|
17
17
|
background-color: @aui-sidebar-badge-background-color;
|
|
18
|
-
border-color:
|
|
18
|
+
border-color: @aui-sidebar-badge-border-color;
|
|
19
19
|
color: @aui-sidebar-badge-text-color;
|
|
20
20
|
|
|
21
21
|
float: right;
|
|
@@ -243,13 +243,14 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
// both are @ak-color-N600
|
|
246
|
-
@chevron-dark: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23A5ADBA" d="
|
|
247
|
-
@chevron-light: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23344563" d="
|
|
246
|
+
@chevron-dark: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23A5ADBA" d="M8.292 10.293a1.009 1.009 0 000 1.419l2.939 2.965c.218.215.5.322.779.322s.556-.107.769-.322l2.93-2.955a1.01 1.01 0 000-1.419.987.987 0 00-1.406 0l-2.298 2.317-2.307-2.327a.99.99 0 00-1.406 0z"/%3E%3C/svg%3E%0A');
|
|
247
|
+
@chevron-light: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23344563" d="M8.292 10.293a1.009 1.009 0 000 1.419l2.939 2.965c.218.215.5.322.779.322s.556-.107.769-.322l2.93-2.955a1.01 1.01 0 000-1.419.987.987 0 00-1.406 0l-2.298 2.317-2.307-2.327a.99.99 0 00-1.406 0z"/%3E%3C/svg%3E%0A');
|
|
248
248
|
|
|
249
249
|
select[disabled]:not([size]),
|
|
250
250
|
.select:not([size]) {
|
|
251
251
|
background-repeat: no-repeat;
|
|
252
|
-
background-position: 100% 50%;
|
|
252
|
+
background-position: calc(100% + 1.5px) 50%;
|
|
253
|
+
background-size: 25px;
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
select.select[disabled]:not([size]) {
|
|
@@ -259,7 +260,7 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
259
260
|
}
|
|
260
261
|
|
|
261
262
|
select.select:not([size]) {
|
|
262
|
-
padding-right:
|
|
263
|
+
padding-right: 20px;
|
|
263
264
|
background-image: @chevron-light;
|
|
264
265
|
}
|
|
265
266
|
|
|
@@ -126,7 +126,8 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
126
126
|
pointer-events: none !important;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
// AUI-5343 - direct child selector; prevents leak radio/checkbox properties to nested labels
|
|
130
|
+
> label {
|
|
130
131
|
position: relative;
|
|
131
132
|
|
|
132
133
|
// we need a pseudo-element to extend the clickable area of the label
|
|
@@ -16,5 +16,6 @@
|
|
|
16
16
|
@aui-sidebar-tooltip-background-color: var(--aui-sidebar-tooltip-bg-color);
|
|
17
17
|
|
|
18
18
|
@aui-sidebar-badge-background-color: var(--aui-sidebar-badge-bg-color);
|
|
19
|
+
@aui-sidebar-badge-border-color: @aui-sidebar-background-color; // to match sidebar background colour
|
|
19
20
|
@aui-sidebar-badge-text-color: var(--aui-sidebar-badge-text-color);
|
|
20
21
|
@aui-sidebar-collapsed-badge-border-width: 2px;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
#aui {
|
|
4
4
|
.aui-dropdown2-trigger-chevron-icon(@glyphsize: @aui-icon-size-small; @canvassize: @aui-icon-size-small-canvas) {
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
#aui.icon-pseudoelement(@aui-icon-font-family);
|
|
7
7
|
content: @aui-glyph-chevron-down;
|
|
8
8
|
font-size: @glyphsize;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
line-height: 1;
|
|
11
11
|
margin-top: -(@glyphsize / 2);
|
|
12
12
|
position: absolute;
|
|
13
|
-
right:
|
|
13
|
+
right: 3.5px;
|
|
14
14
|
top: 50%;
|
|
15
15
|
text-indent: 0; // Reset indentation set by split button
|
|
16
16
|
width: @glyphsize;
|
|
@@ -11,14 +11,19 @@
|
|
|
11
11
|
|
|
12
12
|
#aui {
|
|
13
13
|
.visually-hidden() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
// this mixing is here only to reduce boilerplate (!important suffixes) - see the following call
|
|
15
|
+
.assistive-declarations() {
|
|
16
|
+
border: 0;
|
|
17
|
+
clip: rect(0 0 0 0);
|
|
18
|
+
height: 1px;
|
|
19
|
+
margin: -1px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
padding: 0;
|
|
22
|
+
position: absolute;
|
|
23
|
+
width: 1px;
|
|
24
|
+
}
|
|
25
|
+
// AUI-5343 - prevents unexpected overrides of declarations from .assistive-declarations mixin
|
|
26
|
+
.assistive-declarations() !important;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
.animation(@animation) {
|