@atlaskit/top-layer 4.2.1 → 4.2.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,13 @@
1
1
  # @atlaskit/top-layer
2
2
 
3
+ ## 4.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c3cae446aea72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c3cae446aea72) -
8
+ Only set `aria-controls` while popup content is mounted and clarify the top-layer trigger helper
9
+ documentation.
10
+
3
11
  ## 4.2.1
4
12
 
5
13
  ### Patch Changes
@@ -50,9 +50,8 @@ var roleToAriaHasPopup = {
50
50
  * `menu → "menu"`, `tooltip → undefined`). React omits the attribute when
51
51
  * the value is `undefined`.
52
52
  * - `aria-expanded` - reflects the current open state.
53
- * - `aria-controls` - references the popover element by its id, even
54
- * while the popover is closed. The relationship is stable; `aria-expanded`
55
- * carries the current visibility state.
53
+ * - `aria-controls` - references the popover element by its id while the
54
+ * popover is open, and is omitted while the popover is closed and unmounted.
56
55
  *
57
56
  * **This function is for click/keyboard-activated popovers only.** For
58
57
  * hover-driven tooltips, the trigger should use `aria-describedby` instead.
@@ -44,9 +44,8 @@ const roleToAriaHasPopup = {
44
44
  * `menu → "menu"`, `tooltip → undefined`). React omits the attribute when
45
45
  * the value is `undefined`.
46
46
  * - `aria-expanded` - reflects the current open state.
47
- * - `aria-controls` - references the popover element by its id, even
48
- * while the popover is closed. The relationship is stable; `aria-expanded`
49
- * carries the current visibility state.
47
+ * - `aria-controls` - references the popover element by its id while the
48
+ * popover is open, and is omitted while the popover is closed and unmounted.
50
49
  *
51
50
  * **This function is for click/keyboard-activated popovers only.** For
52
51
  * hover-driven tooltips, the trigger should use `aria-describedby` instead.
@@ -44,9 +44,8 @@ var roleToAriaHasPopup = {
44
44
  * `menu → "menu"`, `tooltip → undefined`). React omits the attribute when
45
45
  * the value is `undefined`.
46
46
  * - `aria-expanded` - reflects the current open state.
47
- * - `aria-controls` - references the popover element by its id, even
48
- * while the popover is closed. The relationship is stable; `aria-expanded`
49
- * carries the current visibility state.
47
+ * - `aria-controls` - references the popover element by its id while the
48
+ * popover is open, and is omitted while the popover is closed and unmounted.
50
49
  *
51
50
  * **This function is for click/keyboard-activated popovers only.** For
52
51
  * hover-driven tooltips, the trigger should use `aria-describedby` instead.
@@ -65,9 +65,8 @@ type TAriaForTrigger = {
65
65
  * `menu → "menu"`, `tooltip → undefined`). React omits the attribute when
66
66
  * the value is `undefined`.
67
67
  * - `aria-expanded` - reflects the current open state.
68
- * - `aria-controls` - references the popover element by its id, even
69
- * while the popover is closed. The relationship is stable; `aria-expanded`
70
- * carries the current visibility state.
68
+ * - `aria-controls` - references the popover element by its id while the
69
+ * popover is open, and is omitted while the popover is closed and unmounted.
71
70
  *
72
71
  * **This function is for click/keyboard-activated popovers only.** For
73
72
  * hover-driven tooltips, the trigger should use `aria-describedby` instead.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/top-layer",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
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",