@atlaskit/button 18.0.0 → 18.0.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 18.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 18.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 18.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
@@ -79,8 +91,8 @@
|
|
|
79
91
|
### Minor Changes
|
|
80
92
|
|
|
81
93
|
- [#111486](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111486)
|
|
82
|
-
[`f848f651ef678`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f848f651ef678) -
|
|
83
|
-
Accessibility improvement
|
|
94
|
+
[`f848f651ef678`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f848f651ef678) -
|
|
95
|
+
**Accessibility improvement**
|
|
84
96
|
|
|
85
97
|
New buttons now adds ", Loading" to the accessible name of loading buttons regardless of how they
|
|
86
98
|
are labelled. This supports labelling by text content (`children`), `aria-label`, and
|
|
@@ -96,7 +108,7 @@
|
|
|
96
108
|
```
|
|
97
109
|
screen.findByRole("button", {
|
|
98
110
|
name: /, Loading/,
|
|
99
|
-
})
|
|
111
|
+
});
|
|
100
112
|
```
|
|
101
113
|
|
|
102
114
|
To validate a loading button that is already located, use `toHaveAccessibleName()`:
|
|
@@ -114,10 +126,8 @@
|
|
|
114
126
|
```
|
|
115
127
|
render(<Button isLoading testId="bar">My label</Button>);
|
|
116
128
|
|
|
117
|
-
|
|
118
129
|
const spinner = screen.getByTestId("bar--loading-spinner-wrapper");
|
|
119
130
|
expect(spinner).toBeInTheDocument();
|
|
120
|
-
|
|
121
131
|
```
|
|
122
132
|
|
|
123
133
|
## 17.17.3
|
|
@@ -133,7 +133,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
133
133
|
action: 'clicked',
|
|
134
134
|
componentName: 'button',
|
|
135
135
|
packageName: "@atlaskit/button",
|
|
136
|
-
packageVersion: "18.0.
|
|
136
|
+
packageVersion: "18.0.2",
|
|
137
137
|
analyticsData: analyticsContext
|
|
138
138
|
});
|
|
139
139
|
|
|
@@ -119,7 +119,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
119
119
|
action: 'clicked',
|
|
120
120
|
componentName: 'button',
|
|
121
121
|
packageName: "@atlaskit/button",
|
|
122
|
-
packageVersion: "18.0.
|
|
122
|
+
packageVersion: "18.0.2",
|
|
123
123
|
analyticsData: analyticsContext
|
|
124
124
|
});
|
|
125
125
|
|
|
@@ -125,7 +125,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
125
125
|
action: 'clicked',
|
|
126
126
|
componentName: 'button',
|
|
127
127
|
packageName: "@atlaskit/button",
|
|
128
|
-
packageVersion: "18.0.
|
|
128
|
+
packageVersion: "18.0.2",
|
|
129
129
|
analyticsData: analyticsContext
|
|
130
130
|
});
|
|
131
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.2",
|
|
4
4
|
"description": "A button triggers an event or action. They let users know what will happen next.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -132,13 +132,13 @@
|
|
|
132
132
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
133
133
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
134
134
|
"@atlaskit/focus-ring": "^1.5.0",
|
|
135
|
-
"@atlaskit/icon": "^22.
|
|
135
|
+
"@atlaskit/icon": "^22.5.0",
|
|
136
136
|
"@atlaskit/interaction-context": "^2.1.0",
|
|
137
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
138
|
-
"@atlaskit/primitives": "^
|
|
137
|
+
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
138
|
+
"@atlaskit/primitives": "^10.0.0",
|
|
139
139
|
"@atlaskit/spinner": "^16.2.0",
|
|
140
140
|
"@atlaskit/theme": "^12.11.0",
|
|
141
|
-
"@atlaskit/tokens": "^1.
|
|
141
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
142
142
|
"@atlaskit/tooltip": "^18.5.0",
|
|
143
143
|
"@atlaskit/visually-hidden": "^1.4.0",
|
|
144
144
|
"@babel/runtime": "^7.0.0",
|