Skip to content

Commit fdcc97c

Browse files
committed
fix(ellipsis): fix an issue where webkit prefixes were not properly applied
1 parent 0da1850 commit fdcc97c

File tree

3 files changed

+363
-345
lines changed

3 files changed

+363
-345
lines changed

docs/assets/polished.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1145,9 +1145,10 @@
11451145
wordWrap: 'normal'
11461146
};
11471147
return lines > 1 ? _extends__default['default']({}, styles, {
1148+
WebkitBoxOrient: 'vertical',
1149+
WebkitLineClamp: lines,
11481150
display: '-webkit-box',
1149-
webkitLineClamp: lines,
1150-
webkitBoxOrient: 'vertical'
1151+
whiteSpace: 'normal'
11511152
}) : styles;
11521153
}
11531154

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "polished",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"description": "A lightweight toolset for writing styles in Javascript.",
55
"license": "MIT",
66
"author": "Brian Hough <[email protected]> (https://polished.js.org)",
@@ -76,7 +76,7 @@
7676
"@rollup/plugin-node-resolve": "^9.0.0",
7777
"@rollup/plugin-replace": "^2.3.2",
7878
"babel-eslint": "^10.1.0",
79-
"babel-jest": "^26.0.1",
79+
"babel-jest": "^26.5.2",
8080
"babel-plugin-add-module-exports": "^1.0.2",
8181
"babel-plugin-annotate-pure-calls": "^0.4.0",
8282
"babel-plugin-preval": "5.0.0",
@@ -89,14 +89,14 @@
8989
"flow-bin": "^0.133.0",
9090
"flow-copy-source": "^2.0.8",
9191
"husky": "^4.2.5",
92-
"jest": "^26.0.1",
92+
"jest": "^26.5.2",
9393
"lint-staged": "^10.4.0",
9494
"npm-watch": "^0.7.0",
9595
"prettier": "^2.0.5",
9696
"pushstate-server": "^3.1.0",
9797
"ramda": "^0.27.0",
98-
"rollup": "^2.28.2",
99-
"rollup-plugin-sourcemaps": "^0.6.2",
98+
"rollup": "^2.29.0",
99+
"rollup-plugin-sourcemaps": "^0.6.3",
100100
"rollup-plugin-terser": "^7.0.2",
101101
"semantic-release": "^17.1.2",
102102
"shx": "^0.3.2",

0 commit comments

Comments
 (0)