@atlaskit/tabs 13.4.3 → 13.4.4

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
  # @atlaskit/tabs
2
2
 
3
+ ## 13.4.4
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
+
3
9
  ## 13.4.3
4
10
 
5
11
  ### Patch Changes
@@ -21,7 +21,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
21
21
  var analyticsAttributes = {
22
22
  componentName: 'tabs',
23
23
  packageName: "@atlaskit/tabs",
24
- packageVersion: "13.4.3"
24
+ packageVersion: "13.4.4"
25
25
  };
26
26
  var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
27
27
  var tabPanel = _ref.tabPanel,
@@ -57,7 +57,7 @@ var getTabsStyles = function getTabsStyles(mode) {
57
57
  '& [role="tabpanel"]': getTabPanelStyles(mode),
58
58
  // The hidden attribute doesn't work on flex elements
59
59
  // Change display to be none
60
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
60
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
61
61
  '& > [hidden]': {
62
62
  display: 'none'
63
63
  }
@@ -112,8 +112,14 @@ var getTabStyles = function getTabStyles(mode) {
112
112
  padding: "".concat(tabTopBottomPadding, " ").concat(tabLeftRightPadding),
113
113
  position: 'relative',
114
114
  whiteSpace: 'nowrap',
115
- overflow: 'hidden',
116
115
  textOverflow: 'ellipsis',
116
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
117
+ '@supports not (overflow-x: clip)': {
118
+ overflow: 'hidden'
119
+ },
120
+ '@supports (overflow-x: clip)': {
121
+ overflowX: 'clip'
122
+ },
117
123
  '&:hover': {
118
124
  // TODO: interaction states will be reviewed in DSP-1438
119
125
  color: colors.hoverLabelColor,
@@ -10,7 +10,7 @@ import { onMouseDownBlur } from '../internal/utils';
10
10
  const analyticsAttributes = {
11
11
  componentName: 'tabs',
12
12
  packageName: "@atlaskit/tabs",
13
- packageVersion: "13.4.3"
13
+ packageVersion: "13.4.4"
14
14
  };
15
15
  const getTabPanelWithContext = ({
16
16
  tabPanel,
@@ -43,7 +43,7 @@ css({
43
43
  '& [role="tabpanel"]': getTabPanelStyles(mode),
44
44
  // The hidden attribute doesn't work on flex elements
45
45
  // Change display to be none
46
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
46
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
47
47
  '& > [hidden]': {
48
48
  display: 'none'
49
49
  }
@@ -92,8 +92,14 @@ export const getTabStyles = mode => {
92
92
  padding: `${tabTopBottomPadding} ${tabLeftRightPadding}`,
93
93
  position: 'relative',
94
94
  whiteSpace: 'nowrap',
95
- overflow: 'hidden',
96
95
  textOverflow: 'ellipsis',
96
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
97
+ '@supports not (overflow-x: clip)': {
98
+ overflow: 'hidden'
99
+ },
100
+ '@supports (overflow-x: clip)': {
101
+ overflowX: 'clip'
102
+ },
97
103
  '&:hover': {
98
104
  // TODO: interaction states will be reviewed in DSP-1438
99
105
  color: colors.hoverLabelColor,
@@ -15,7 +15,7 @@ import { onMouseDownBlur } from '../internal/utils';
15
15
  var analyticsAttributes = {
16
16
  componentName: 'tabs',
17
17
  packageName: "@atlaskit/tabs",
18
- packageVersion: "13.4.3"
18
+ packageVersion: "13.4.4"
19
19
  };
20
20
  var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
21
21
  var tabPanel = _ref.tabPanel,
@@ -50,7 +50,7 @@ export var getTabsStyles = function getTabsStyles(mode) {
50
50
  '& [role="tabpanel"]': getTabPanelStyles(mode),
51
51
  // The hidden attribute doesn't work on flex elements
52
52
  // Change display to be none
53
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
53
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
54
54
  '& > [hidden]': {
55
55
  display: 'none'
56
56
  }
@@ -103,8 +103,14 @@ export var getTabStyles = function getTabStyles(mode) {
103
103
  padding: "".concat(tabTopBottomPadding, " ").concat(tabLeftRightPadding),
104
104
  position: 'relative',
105
105
  whiteSpace: 'nowrap',
106
- overflow: 'hidden',
107
106
  textOverflow: 'ellipsis',
107
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
108
+ '@supports not (overflow-x: clip)': {
109
+ overflow: 'hidden'
110
+ },
111
+ '@supports (overflow-x: clip)': {
112
+ overflowX: 'clip'
113
+ },
108
114
  '&:hover': {
109
115
  // TODO: interaction states will be reviewed in DSP-1438
110
116
  color: colors.hoverLabelColor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tabs",
3
- "version": "13.4.3",
3
+ "version": "13.4.4",
4
4
  "description": "Tabs are used to organize content by grouping similar information on the same page.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/codemod-utils": "^4.2.0",
36
36
  "@atlaskit/ds-explorations": "^2.2.0",
37
37
  "@atlaskit/theme": "^12.5.0",
38
- "@atlaskit/tokens": "^1.11.0",
38
+ "@atlaskit/tokens": "^1.14.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "@emotion/react": "^11.7.1"
41
41
  },
@@ -43,13 +43,9 @@
43
43
  "react": "^16.8.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@atlaskit/button": "^16.8.0",
47
- "@atlaskit/docs": "*",
46
+ "@af/accessibility-testing": "*",
48
47
  "@atlaskit/ds-lib": "^2.2.0",
49
- "@atlaskit/section-message": "^6.4.0",
50
- "@atlaskit/spinner": "^15.5.0",
51
48
  "@atlaskit/ssr": "*",
52
- "@atlaskit/tooltip": "^17.8.0",
53
49
  "@atlaskit/visual-regression": "*",
54
50
  "@atlaskit/webdriver-runner": "*",
55
51
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/tabs",
3
- "version": "13.4.3",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/tabs",
3
- "version": "13.4.3",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/tabs",
3
- "version": "13.4.3",
4
- "sideEffects": false
5
- }