@atlaskit/button 18.0.0 → 18.0.1
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,11 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 18.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 18.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -79,8 +85,8 @@
|
|
|
79
85
|
### Minor Changes
|
|
80
86
|
|
|
81
87
|
- [#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
|
|
88
|
+
[`f848f651ef678`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f848f651ef678) -
|
|
89
|
+
**Accessibility improvement**
|
|
84
90
|
|
|
85
91
|
New buttons now adds ", Loading" to the accessible name of loading buttons regardless of how they
|
|
86
92
|
are labelled. This supports labelling by text content (`children`), `aria-label`, and
|
|
@@ -96,7 +102,7 @@
|
|
|
96
102
|
```
|
|
97
103
|
screen.findByRole("button", {
|
|
98
104
|
name: /, Loading/,
|
|
99
|
-
})
|
|
105
|
+
});
|
|
100
106
|
```
|
|
101
107
|
|
|
102
108
|
To validate a loading button that is already located, use `toHaveAccessibleName()`:
|
|
@@ -114,10 +120,8 @@
|
|
|
114
120
|
```
|
|
115
121
|
render(<Button isLoading testId="bar">My label</Button>);
|
|
116
122
|
|
|
117
|
-
|
|
118
123
|
const spinner = screen.getByTestId("bar--loading-spinner-wrapper");
|
|
119
124
|
expect(spinner).toBeInTheDocument();
|
|
120
|
-
|
|
121
125
|
```
|
|
122
126
|
|
|
123
127
|
## 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.1",
|
|
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.1",
|
|
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.1",
|
|
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.1",
|
|
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
137
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
138
|
-
"@atlaskit/primitives": "^
|
|
138
|
+
"@atlaskit/primitives": "^9.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",
|