@atlassian/aui 9.12.1 → 9.12.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlassian/aui",
3
3
  "description": "Atlassian User Interface library",
4
- "version": "9.12.1",
4
+ "version": "9.12.2",
5
5
  "author": "Atlassian Pty Ltd.",
6
6
  "homepage": "https://aui.atlassian.com",
7
7
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "@popperjs/core": "2.11.8",
43
43
  "backbone": "1.6.0",
44
44
  "css.escape": "1.5.1",
45
- "dompurify": "2.5.6",
45
+ "dompurify": "2.5.7",
46
46
  "fancy-file-input": "2.0.4",
47
47
  "jquery-ui": "1.13.3",
48
48
  "skatejs": "0.13.17",
@@ -57,15 +57,13 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@atlassian/aui-webpack-config": "3.0.1",
60
- "@babel/core": "7.18.13",
61
- "@babel/preset-env": "7.18.10",
62
- "cross-env": "7.0.3",
63
- "eslint": "9.7.0",
60
+ "@babel/core": "7.24.9",
61
+ "@babel/preset-env": "7.24.8",
64
62
  "fs-extra": "9.1.0",
65
63
  "ignore-emit-webpack-plugin": "2.0.6",
66
64
  "jquery": "3.5.1",
67
65
  "jquery-migrate": "3.5.2",
68
- "less": "3.13.1",
66
+ "less": "4.2.0",
69
67
  "react": "18.3.1"
70
68
  },
71
69
  "scripts": {
@@ -40,17 +40,12 @@ function flag (flagOptions) {
40
40
 
41
41
  handleFlagContainer();
42
42
  insertFlag($flag);
43
+
43
44
  setTimeout(function () {
44
45
  if ($flag.attr('aui-focus-trap') === 'true') {
45
46
  getFocusManager.global.enter($flag);
46
47
  }
47
- }, 0);
48
-
49
- setTimeout(function () {
50
- $flag.attr({
51
- 'aria-hidden': false
52
- });
53
- }, 100)
48
+ }, 0)
54
49
 
55
50
  return $flag.get(0);
56
51
  }
@@ -97,7 +92,7 @@ function renderFlagElement ({ body, title, close, type, ariaLive, ariaLabel, ari
97
92
  .attr({
98
93
  'aui-focus-trap': `${isFocusable}`,
99
94
  'aria-label': escapeHtml(ariaLabel),
100
- 'aria-hidden': 'true',
95
+ 'aria-hidden': 'false',
101
96
  'aria-live': escapeHtml(ariaLive),
102
97
  'role': ariaRole,
103
98
  ...(!!ariaDescription ? {'aria-description': escapeHtml(ariaDescription)} : {}),
@@ -132,13 +127,16 @@ function makeAutoClosable ($flag, duration) {
132
127
  function closeFlag ($flagToClose) {
133
128
  const flag = $flagToClose.get(0);
134
129
 
130
+ if ($flagToClose.attr('aui-focus-trap')) {
131
+ getFocusManager.global.exit($flagToClose);
132
+ }
133
+
135
134
  flag.removeAttribute('open');
136
135
  flag.setAttribute('inert', '');
137
136
  flag.setAttribute('aria-hidden', true);
137
+ flag.style.display = 'none';
138
138
  flag.dispatchEvent(new CustomEvent('aui-flag-close', { bubbles: true }));
139
- if ($flagToClose.attr('aui-focus-trap')) {
140
- getFocusManager.global.exit($flagToClose);
141
- }
139
+
142
140
 
143
141
  return flag;
144
142
  }
@@ -34,7 +34,7 @@ aui-header,
34
34
  @section-gap: 20px;
35
35
 
36
36
  box-sizing: border-box;
37
- padding: 7px @aui-grid 10px @aui-grid;
37
+ padding: 7px @aui-grid 8px @aui-grid;
38
38
  position: relative;
39
39
 
40
40
  .aui-header-before {