@atlaskit/tooltip 17.8.3 → 17.8.5

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/tooltip
2
2
 
3
+ ## 17.8.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`56b444b56a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56b444b56a8) - Fix a bug where text descenders were cut off at high zoom levels on Windows
8
+
9
+ ## 17.8.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
14
+
3
15
  ## 17.8.3
4
16
 
5
17
  ### Patch Changes
@@ -32,7 +32,7 @@ var tooltipZIndex = _constants.layers.tooltip();
32
32
  var analyticsAttributes = {
33
33
  componentName: 'tooltip',
34
34
  packageName: "@atlaskit/tooltip",
35
- packageVersion: "17.8.3"
35
+ packageVersion: "17.8.5"
36
36
  };
37
37
 
38
38
  // Inverts motion direction
@@ -26,9 +26,15 @@ var baseStyles = (0, _react2.css)({
26
26
  });
27
27
  var truncateStyles = (0, _react2.css)({
28
28
  maxWidth: '420px',
29
- overflow: 'hidden',
30
29
  textOverflow: 'ellipsis',
31
- whiteSpace: 'nowrap'
30
+ whiteSpace: 'nowrap',
31
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
32
+ '@supports not (overflow-x: clip)': {
33
+ overflow: 'hidden'
34
+ },
35
+ '@supports (overflow-x: clip)': {
36
+ overflowX: 'clip'
37
+ }
32
38
  });
33
39
  var lightStyles = (0, _react2.css)({
34
40
  backgroundColor: "var(--ds-background-neutral-bold, ".concat(_colors.N800, ")"),
@@ -20,7 +20,7 @@ const tooltipZIndex = layers.tooltip();
20
20
  const analyticsAttributes = {
21
21
  componentName: 'tooltip',
22
22
  packageName: "@atlaskit/tooltip",
23
- packageVersion: "17.8.3"
23
+ packageVersion: "17.8.5"
24
24
  };
25
25
 
26
26
  // Inverts motion direction
@@ -18,9 +18,15 @@ const baseStyles = css({
18
18
  });
19
19
  const truncateStyles = css({
20
20
  maxWidth: '420px',
21
- overflow: 'hidden',
22
21
  textOverflow: 'ellipsis',
23
- whiteSpace: 'nowrap'
22
+ whiteSpace: 'nowrap',
23
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
24
+ '@supports not (overflow-x: clip)': {
25
+ overflow: 'hidden'
26
+ },
27
+ '@supports (overflow-x: clip)': {
28
+ overflowX: 'clip'
29
+ }
24
30
  });
25
31
  const lightStyles = css({
26
32
  backgroundColor: `var(--ds-background-neutral-bold, ${N800})`,
@@ -24,7 +24,7 @@ var tooltipZIndex = layers.tooltip();
24
24
  var analyticsAttributes = {
25
25
  componentName: 'tooltip',
26
26
  packageName: "@atlaskit/tooltip",
27
- packageVersion: "17.8.3"
27
+ packageVersion: "17.8.5"
28
28
  };
29
29
 
30
30
  // Inverts motion direction
@@ -18,9 +18,15 @@ var baseStyles = css({
18
18
  });
19
19
  var truncateStyles = css({
20
20
  maxWidth: '420px',
21
- overflow: 'hidden',
22
21
  textOverflow: 'ellipsis',
23
- whiteSpace: 'nowrap'
22
+ whiteSpace: 'nowrap',
23
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
24
+ '@supports not (overflow-x: clip)': {
25
+ overflow: 'hidden'
26
+ },
27
+ '@supports (overflow-x: clip)': {
28
+ overflowX: 'clip'
29
+ }
24
30
  });
25
31
  var lightStyles = css({
26
32
  backgroundColor: "var(--ds-background-neutral-bold, ".concat(N800, ")"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "17.8.3",
3
+ "version": "17.8.5",
4
4
  "description": "A tooltip is a floating, non-actionable label used to explain a user interface element or feature.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/popper": "^5.5.0",
46
46
  "@atlaskit/portal": "^4.3.0",
47
47
  "@atlaskit/theme": "^12.5.0",
48
- "@atlaskit/tokens": "^1.11.0",
48
+ "@atlaskit/tokens": "^1.14.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
51
  "bind-event-listener": "^2.1.1",
@@ -56,17 +56,14 @@
56
56
  "react-dom": "^16.8.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@atlaskit/button": "^16.8.0",
60
- "@atlaskit/docs": "*",
61
- "@atlaskit/icon": "^21.12.0",
62
- "@atlaskit/section-message": "^6.4.0",
59
+ "@af/accessibility-testing": "*",
60
+ "@atlaskit/button": "^16.9.0",
63
61
  "@atlaskit/ssr": "*",
64
62
  "@atlaskit/visual-regression": "*",
65
63
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
66
64
  "@emotion/styled": "^11.0.0",
67
65
  "@testing-library/dom": "^8.17.1",
68
66
  "@testing-library/react": "^12.1.5",
69
- "jest-axe": "^4.0.0",
70
67
  "jest-in-case": "^1.0.2",
71
68
  "react-dom": "^16.8.0",
72
69
  "react-redux": "^5.1.2",
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/tooltip",
3
- "version": "17.8.3",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/tooltip",
3
- "version": "17.8.3",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/tooltip",
3
- "version": "17.8.3",
4
- "sideEffects": false
5
- }