File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
export default function ( ) {
2
- return function ( { addUtilities, variants, target } ) {
3
- const wrapPropertyName = target ( 'wordBreak' ) === 'ie11' ? 'word-wrap' : 'overflow-wrap'
4
-
2
+ return function ( { addUtilities, variants } ) {
5
3
addUtilities (
6
4
{
7
5
'.break-normal' : {
8
- [ wrapPropertyName ] : 'normal' ,
6
+ // For IE 11, remove 'word-wrap' when we have a 'modern' mode
7
+ 'word-wrap' : 'normal' ,
8
+ 'overflow-wrap' : 'normal' ,
9
9
'word-break' : 'normal' ,
10
10
} ,
11
- '.break-words' : { [ wrapPropertyName ] : 'break-word' } ,
11
+ '.break-words' : {
12
+ // For IE 11, remove 'word-wrap' when we have a 'modern' mode
13
+ 'word-wrap' : 'break-word' ,
14
+ 'overflow-wrap' : 'break-word' ,
15
+ } ,
12
16
'.break-all' : { 'word-break' : 'break-all' } ,
13
17
14
18
'.truncate' : {
You can’t perform that action at this time.
0 commit comments