@westpac/ui 0.40.1 → 0.40.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,11 @@
1
1
  # @westpac/ui
2
2
 
3
+ ## 0.40.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 18c66ea: Fix popover focus issue
8
+
3
9
  ## 0.40.1
4
10
 
5
11
  ### Patch Changes
@@ -32,7 +32,6 @@ export function BasePanel({ state , heading , headingTag: Tag = 'h1' , content ,
32
32
  placement
33
33
  });
34
34
  return React.createElement(FocusScope, {
35
- contain: true,
36
35
  autoFocus: true,
37
36
  restoreFocus: true
38
37
  }, React.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@westpac/ui",
3
- "version": "0.40.1",
3
+ "version": "0.40.2",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -258,8 +258,8 @@
258
258
  "vite": "^5.2.12",
259
259
  "vitest": "^0.30.1",
260
260
  "@westpac/eslint-config": "~0.4.0",
261
- "@westpac/test-config": "~0.0.0",
262
- "@westpac/ts-config": "~0.0.0"
261
+ "@westpac/ts-config": "~0.0.0",
262
+ "@westpac/test-config": "~0.0.0"
263
263
  },
264
264
  "dependencies": {
265
265
  "@duetds/date-picker": "~1.4.0",
@@ -25,7 +25,7 @@ export function BasePanel({
25
25
 
26
26
  const styles = panelStyles({ placement });
27
27
  return (
28
- <FocusScope contain autoFocus restoreFocus>
28
+ <FocusScope autoFocus restoreFocus>
29
29
  <div style={popoverPosition} className={styles.popover()} test-id="popover" id={id} ref={popoverRef}>
30
30
  <div className={styles.content()}>
31
31
  <Tag tabIndex={0} className={styles.heading()}>