@atlaskit/modal-dialog 12.5.4 → 12.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/modal-dialog
2
2
 
3
+ ## 12.5.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fd5c7f6ca6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd5c7f6ca6a) - Fixes an issue where the focus moved inappropriately when closing a modal with multiple modals open.
8
+
9
+ ## 12.5.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`ba48a3a0fec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba48a3a0fec) - Remove redundant language from default icon labels for ModalTitle.
14
+
3
15
  ## 12.5.4
4
16
 
5
17
  ### Patch Changes
@@ -71,7 +71,7 @@ var TitleIcon = function TitleIcon(_ref) {
71
71
  return (0, _react.jsx)("span", {
72
72
  css: [iconStyles, !isMultiline && truncatedTextIconStyles]
73
73
  }, (0, _react.jsx)(Icon, {
74
- label: "".concat(appearance, " icon"),
74
+ label: appearance,
75
75
  primaryColor: _constants.iconColor[appearance]
76
76
  }));
77
77
  };
@@ -85,7 +85,7 @@ var ModalWrapper = function ModalWrapper(props) {
85
85
  action: 'closed',
86
86
  componentName: 'modalDialog',
87
87
  packageName: "@atlaskit/modal-dialog",
88
- packageVersion: "12.5.4"
88
+ packageVersion: "12.5.6"
89
89
  });
90
90
  var onBlanketClicked = (0, _react.useCallback)(function (e) {
91
91
  if (shouldCloseOnOverlayClick) {
@@ -120,7 +120,6 @@ var ModalWrapper = function ModalWrapper(props) {
120
120
  "aria-hidden": !isForeground
121
121
  }), (0, _react2.jsx)(_reactFocusLock.default, {
122
122
  autoFocus: autoFocusLock,
123
- disabled: !isForeground,
124
123
  returnFocus: true,
125
124
  whiteList: whiteListElements
126
125
  }, (0, _react2.jsx)(_reactScrolllock.default, null), shouldScrollInViewport ? (0, _react2.jsx)(_reactScrolllock.TouchScrollable, null, modalDialogWithBlanket) : modalDialogWithBlanket));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.5.4",
3
+ "version": "12.5.6",
4
4
  "sideEffects": false
5
5
  }
@@ -65,7 +65,7 @@ const TitleIcon = ({
65
65
  return jsx("span", {
66
66
  css: [iconStyles, !isMultiline && truncatedTextIconStyles]
67
67
  }, jsx(Icon, {
68
- label: `${appearance} icon`,
68
+ label: appearance,
69
69
  primaryColor: iconColor[appearance]
70
70
  }));
71
71
  };
@@ -71,7 +71,7 @@ const ModalWrapper = props => {
71
71
  action: 'closed',
72
72
  componentName: 'modalDialog',
73
73
  packageName: "@atlaskit/modal-dialog",
74
- packageVersion: "12.5.4"
74
+ packageVersion: "12.5.6"
75
75
  });
76
76
  const onBlanketClicked = useCallback(e => {
77
77
  if (shouldCloseOnOverlayClick) {
@@ -105,7 +105,6 @@ const ModalWrapper = props => {
105
105
  "aria-hidden": !isForeground
106
106
  }), jsx(FocusLock, {
107
107
  autoFocus: autoFocusLock,
108
- disabled: !isForeground,
109
108
  returnFocus: true,
110
109
  whiteList: whiteListElements
111
110
  }, jsx(ScrollLock, null), shouldScrollInViewport ? jsx(TouchScrollable, null, modalDialogWithBlanket) : modalDialogWithBlanket))));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.5.4",
3
+ "version": "12.5.6",
4
4
  "sideEffects": false
5
5
  }
@@ -64,7 +64,7 @@ var TitleIcon = function TitleIcon(_ref) {
64
64
  return jsx("span", {
65
65
  css: [iconStyles, !isMultiline && truncatedTextIconStyles]
66
66
  }, jsx(Icon, {
67
- label: "".concat(appearance, " icon"),
67
+ label: appearance,
68
68
  primaryColor: iconColor[appearance]
69
69
  }));
70
70
  };
@@ -75,7 +75,7 @@ var ModalWrapper = function ModalWrapper(props) {
75
75
  action: 'closed',
76
76
  componentName: 'modalDialog',
77
77
  packageName: "@atlaskit/modal-dialog",
78
- packageVersion: "12.5.4"
78
+ packageVersion: "12.5.6"
79
79
  });
80
80
  var onBlanketClicked = useCallback(function (e) {
81
81
  if (shouldCloseOnOverlayClick) {
@@ -110,7 +110,6 @@ var ModalWrapper = function ModalWrapper(props) {
110
110
  "aria-hidden": !isForeground
111
111
  }), jsx(FocusLock, {
112
112
  autoFocus: autoFocusLock,
113
- disabled: !isForeground,
114
113
  returnFocus: true,
115
114
  whiteList: whiteListElements
116
115
  }, jsx(ScrollLock, null), shouldScrollInViewport ? jsx(TouchScrollable, null, modalDialogWithBlanket) : modalDialogWithBlanket));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.5.4",
3
+ "version": "12.5.6",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.5.4",
3
+ "version": "12.5.6",
4
4
  "description": "A modal dialog displays content that requires user interaction, in a layer above the page.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"