@atlaskit/top-layer 4.1.0 → 4.2.0

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,13 @@
1
1
  # @atlaskit/top-layer
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`e825821c5493d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e825821c5493d) -
8
+ Reset inherited `pointer-events` on Dialog and Popover top-layer surfaces so their content remains
9
+ interactive inside non-interactive overlay containers.
10
+
3
11
  ## 4.1.0
4
12
 
5
13
  ### Minor Changes
@@ -24,6 +24,7 @@
24
24
  ._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
25
25
  ._c71lglyw{max-height:none}
26
26
  ._k8m011k7{transition-property:overlay,display}
27
+ ._lcxv1wug{pointer-events:auto}
27
28
  ._o5724jg8{white-space:normal}
28
29
  ._otyr1wug{margin-bottom:auto}
29
30
  ._p12fglyw{max-width:none}
@@ -20,16 +20,16 @@ var _useFocusWrap = require("../internal/use-focus-wrap");
20
20
  var _useSafariEscapeFix2 = require("../internal/use-safari-escape-fix");
21
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
22
  // Surface reset — see the rationale on `surfaceResetStyles` in `popover/popover.tsx`.
23
- // Neutralises inherited text-layout properties (e.g. `white-space: nowrap`) that leak
24
- // into the top-layer surface. Excludes `color`/`font` (theming) and
25
- // `direction`/`unicode-bidi` (RTL must inherit). Pure layout reset with no box
26
- // side-effects, so it does not reintroduce the `margin: auto` centering problem that
27
- // kept `height: auto` off `Dialog`.
23
+ // Neutralises inherited interaction and text-layout properties (e.g.
24
+ // `pointer-events: none` and `white-space: nowrap`) that leak into the top-layer
25
+ // surface. Excludes `color`/`font` (theming) and `direction`/`unicode-bidi` (RTL
26
+ // must inherit). The reset has no box side-effects, so it does not reintroduce
27
+ // the `margin: auto` centering problem that kept `height: auto` off `Dialog`.
28
28
  //
29
29
  // KEEP IN SYNC with the identical `surfaceResetStyles` in `popover/popover.tsx`
30
30
  // (ADS forbids sharing styles across files, so it is co-located and duplicated).
31
31
  var surfaceResetStyles = {
32
- root: "_o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
32
+ root: "_lcxv1wug _o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
33
33
  };
34
34
  var dialogStyles = {
35
35
  root: "_19itglyw _19pk1wug _2hwx1wug _otyr1wug _18u01wug _1q51ze3t _y4tize3t _85i5ze3t _bozgze3t _p12fglyw _c71lglyw _bfhk1j28",
@@ -18,6 +18,7 @@
18
18
  ._bfhk1j28{background-color:transparent}
19
19
  ._ca0qidpf{padding-top:0}
20
20
  ._k8m011k7{transition-property:overlay,display}
21
+ ._lcxv1wug{pointer-events:auto}
21
22
  ._n3tdidpf{padding-bottom:0}
22
23
  ._o5724jg8{white-space:normal}
23
24
  ._otyridpf{margin-bottom:0}
@@ -34,7 +34,8 @@ var supportsPopoverHint = (0, _once.default)(function () {
34
34
  return element.popover === 'hint';
35
35
  });
36
36
 
37
- // Surface reset — neutralises inherited text-layout properties (e.g.
37
+ // Surface reset — neutralises inherited interaction and text-layout properties
38
+ // (e.g. `pointer-events: none` from an overlaid controls container and
38
39
  // `white-space: nowrap` from an `@atlaskit/select` option) that leak into a
39
40
  // top-layer element because, for CSS inheritance, it is still a DOM child of its
40
41
  // trigger (top-layer promotion is paint/stacking only; the legacy portal path
@@ -46,7 +47,7 @@ var supportsPopoverHint = (0, _once.default)(function () {
46
47
  // `no-imported-style-values` — Compiled styles are null at runtime), so the reset is
47
48
  // co-located and duplicated deliberately.
48
49
  var surfaceResetStyles = {
49
- root: "_o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
50
+ root: "_lcxv1wug _o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
50
51
  };
51
52
  var styles = {
52
53
  root: "_19itglyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19pkidpf _2hwxidpf _otyridpf _18u0idpf _1r041wug _1reoewfl _18m9ewfl _bfhk1j28 _4t3i1wug",
@@ -24,6 +24,7 @@
24
24
  ._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
25
25
  ._c71lglyw{max-height:none}
26
26
  ._k8m011k7{transition-property:overlay,display}
27
+ ._lcxv1wug{pointer-events:auto}
27
28
  ._o5724jg8{white-space:normal}
28
29
  ._otyr1wug{margin-bottom:auto}
29
30
  ._p12fglyw{max-width:none}
@@ -11,16 +11,16 @@ import { useAnimatedVisibility } from '../internal/use-animated-visibility';
11
11
  import { useFocusWrap } from '../internal/use-focus-wrap';
12
12
  import { useSafariEscapeFix } from '../internal/use-safari-escape-fix';
13
13
  // Surface reset — see the rationale on `surfaceResetStyles` in `popover/popover.tsx`.
14
- // Neutralises inherited text-layout properties (e.g. `white-space: nowrap`) that leak
15
- // into the top-layer surface. Excludes `color`/`font` (theming) and
16
- // `direction`/`unicode-bidi` (RTL must inherit). Pure layout reset with no box
17
- // side-effects, so it does not reintroduce the `margin: auto` centering problem that
18
- // kept `height: auto` off `Dialog`.
14
+ // Neutralises inherited interaction and text-layout properties (e.g.
15
+ // `pointer-events: none` and `white-space: nowrap`) that leak into the top-layer
16
+ // surface. Excludes `color`/`font` (theming) and `direction`/`unicode-bidi` (RTL
17
+ // must inherit). The reset has no box side-effects, so it does not reintroduce
18
+ // the `margin: auto` centering problem that kept `height: auto` off `Dialog`.
19
19
  //
20
20
  // KEEP IN SYNC with the identical `surfaceResetStyles` in `popover/popover.tsx`
21
21
  // (ADS forbids sharing styles across files, so it is co-located and duplicated).
22
22
  const surfaceResetStyles = {
23
- root: "_o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
23
+ root: "_lcxv1wug _o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
24
24
  };
25
25
  const dialogStyles = {
26
26
  root: "_19itglyw _19pk1wug _2hwx1wug _otyr1wug _18u01wug _1q51ze3t _y4tize3t _85i5ze3t _bozgze3t _p12fglyw _c71lglyw _bfhk1j28",
@@ -18,6 +18,7 @@
18
18
  ._bfhk1j28{background-color:transparent}
19
19
  ._ca0qidpf{padding-top:0}
20
20
  ._k8m011k7{transition-property:overlay,display}
21
+ ._lcxv1wug{pointer-events:auto}
21
22
  ._n3tdidpf{padding-bottom:0}
22
23
  ._o5724jg8{white-space:normal}
23
24
  ._otyridpf{margin-bottom:0}
@@ -25,7 +25,8 @@ const supportsPopoverHint = once(() => {
25
25
  return element.popover === 'hint';
26
26
  });
27
27
 
28
- // Surface reset — neutralises inherited text-layout properties (e.g.
28
+ // Surface reset — neutralises inherited interaction and text-layout properties
29
+ // (e.g. `pointer-events: none` from an overlaid controls container and
29
30
  // `white-space: nowrap` from an `@atlaskit/select` option) that leak into a
30
31
  // top-layer element because, for CSS inheritance, it is still a DOM child of its
31
32
  // trigger (top-layer promotion is paint/stacking only; the legacy portal path
@@ -37,7 +38,7 @@ const supportsPopoverHint = once(() => {
37
38
  // `no-imported-style-values` — Compiled styles are null at runtime), so the reset is
38
39
  // co-located and duplicated deliberately.
39
40
  const surfaceResetStyles = {
40
- root: "_o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
41
+ root: "_lcxv1wug _o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
41
42
  };
42
43
  const styles = {
43
44
  root: "_19itglyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19pkidpf _2hwxidpf _otyridpf _18u0idpf _1r041wug _1reoewfl _18m9ewfl _bfhk1j28 _4t3i1wug",
@@ -24,6 +24,7 @@
24
24
  ._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
25
25
  ._c71lglyw{max-height:none}
26
26
  ._k8m011k7{transition-property:overlay,display}
27
+ ._lcxv1wug{pointer-events:auto}
27
28
  ._o5724jg8{white-space:normal}
28
29
  ._otyr1wug{margin-bottom:auto}
29
30
  ._p12fglyw{max-width:none}
@@ -11,16 +11,16 @@ import { useAnimatedVisibility } from '../internal/use-animated-visibility';
11
11
  import { useFocusWrap } from '../internal/use-focus-wrap';
12
12
  import { useSafariEscapeFix } from '../internal/use-safari-escape-fix';
13
13
  // Surface reset — see the rationale on `surfaceResetStyles` in `popover/popover.tsx`.
14
- // Neutralises inherited text-layout properties (e.g. `white-space: nowrap`) that leak
15
- // into the top-layer surface. Excludes `color`/`font` (theming) and
16
- // `direction`/`unicode-bidi` (RTL must inherit). Pure layout reset with no box
17
- // side-effects, so it does not reintroduce the `margin: auto` centering problem that
18
- // kept `height: auto` off `Dialog`.
14
+ // Neutralises inherited interaction and text-layout properties (e.g.
15
+ // `pointer-events: none` and `white-space: nowrap`) that leak into the top-layer
16
+ // surface. Excludes `color`/`font` (theming) and `direction`/`unicode-bidi` (RTL
17
+ // must inherit). The reset has no box side-effects, so it does not reintroduce
18
+ // the `margin: auto` centering problem that kept `height: auto` off `Dialog`.
19
19
  //
20
20
  // KEEP IN SYNC with the identical `surfaceResetStyles` in `popover/popover.tsx`
21
21
  // (ADS forbids sharing styles across files, so it is co-located and duplicated).
22
22
  var surfaceResetStyles = {
23
- root: "_o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
23
+ root: "_lcxv1wug _o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
24
24
  };
25
25
  var dialogStyles = {
26
26
  root: "_19itglyw _19pk1wug _2hwx1wug _otyr1wug _18u01wug _1q51ze3t _y4tize3t _85i5ze3t _bozgze3t _p12fglyw _c71lglyw _bfhk1j28",
@@ -18,6 +18,7 @@
18
18
  ._bfhk1j28{background-color:transparent}
19
19
  ._ca0qidpf{padding-top:0}
20
20
  ._k8m011k7{transition-property:overlay,display}
21
+ ._lcxv1wug{pointer-events:auto}
21
22
  ._n3tdidpf{padding-bottom:0}
22
23
  ._o5724jg8{white-space:normal}
23
24
  ._otyridpf{margin-bottom:0}
@@ -25,7 +25,8 @@ var supportsPopoverHint = once(function () {
25
25
  return element.popover === 'hint';
26
26
  });
27
27
 
28
- // Surface reset — neutralises inherited text-layout properties (e.g.
28
+ // Surface reset — neutralises inherited interaction and text-layout properties
29
+ // (e.g. `pointer-events: none` from an overlaid controls container and
29
30
  // `white-space: nowrap` from an `@atlaskit/select` option) that leak into a
30
31
  // top-layer element because, for CSS inheritance, it is still a DOM child of its
31
32
  // trigger (top-layer promotion is paint/stacking only; the legacy portal path
@@ -37,7 +38,7 @@ var supportsPopoverHint = once(function () {
37
38
  // `no-imported-style-values` — Compiled styles are null at runtime), so the reset is
38
39
  // co-located and duplicated deliberately.
39
40
  var surfaceResetStyles = {
40
- root: "_o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
41
+ root: "_lcxv1wug _o5724jg8 _1nmz4jg8 _1i4q4jg8 _y3gnv2br _azhwidpf _1p1dglyw"
41
42
  };
42
43
  var styles = {
43
44
  root: "_19itglyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19pkidpf _2hwxidpf _otyridpf _18u0idpf _1r041wug _1reoewfl _18m9ewfl _bfhk1j28 _4t3i1wug",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/top-layer",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Low-level layering primitives based on popover and dialog",
5
5
  "homepage": "https://atlassian.design/components/top-layer",
6
6
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",