Skip to content

Commit a8e27d9

Browse files
committed
Remove position sticky in ie11 mode
1 parent 1117e28 commit a8e27d9

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

__tests__/fixtures/tailwind-output-ie11.css

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8188,10 +8188,6 @@ video {
81888188
position: relative;
81898189
}
81908190

8191-
.sticky {
8192-
position: sticky;
8193-
}
8194-
81958191
.inset-0 {
81968192
top: 0;
81978193
right: 0;
@@ -19295,10 +19291,6 @@ video {
1929519291
position: relative;
1929619292
}
1929719293

19298-
.sm\:sticky {
19299-
position: sticky;
19300-
}
19301-
1930219294
.sm\:inset-0 {
1930319295
top: 0;
1930419296
right: 0;
@@ -30403,10 +30395,6 @@ video {
3040330395
position: relative;
3040430396
}
3040530397

30406-
.md\:sticky {
30407-
position: sticky;
30408-
}
30409-
3041030398
.md\:inset-0 {
3041130399
top: 0;
3041230400
right: 0;
@@ -41511,10 +41499,6 @@ video {
4151141499
position: relative;
4151241500
}
4151341501

41514-
.lg\:sticky {
41515-
position: sticky;
41516-
}
41517-
4151841502
.lg\:inset-0 {
4151941503
top: 0;
4152041504
right: 0;
@@ -52619,10 +52603,6 @@ video {
5261952603
position: relative;
5262052604
}
5262152605

52622-
.xl\:sticky {
52623-
position: sticky;
52624-
}
52625-
5262652606
.xl\:inset-0 {
5262752607
top: 0;
5262852608
right: 0;

src/plugins/position.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
export default function() {
2-
return function({ addUtilities, variants }) {
2+
return function({ addUtilities, variants, target }) {
33
addUtilities(
44
{
55
'.static': { position: 'static' },
66
'.fixed': { position: 'fixed' },
77
'.absolute': { position: 'absolute' },
88
'.relative': { position: 'relative' },
9-
'.sticky': { position: 'sticky' },
9+
...(target('position') === 'ie11'
10+
? {}
11+
: {
12+
'.sticky': {
13+
position: 'sticky',
14+
},
15+
}),
1016
},
1117
variants('position')
1218
)

0 commit comments

Comments
 (0)