From 9cb177a7376fae1ae7df2ae78e0e915f5b81188b Mon Sep 17 00:00:00 2001 From: Scott Bedard Date: Mon, 10 Sep 2018 11:38:55 -0700 Subject: [PATCH 1/3] Improve IE support for flex-1 utility closes #549 --- src/generators/flexbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/flexbox.js b/src/generators/flexbox.js index 10e26c30da94..23320855751e 100644 --- a/src/generators/flexbox.js +++ b/src/generators/flexbox.js @@ -90,7 +90,7 @@ export default function() { 'align-content': 'space-around', }, 'flex-1': { - flex: '1', + flex: '1 1 0%', }, 'flex-auto': { flex: 'auto', From 7fb1af00f6ee72808b6d2af6536d0cd817c50e6d Mon Sep 17 00:00:00 2001 From: scottbedard Date: Wed, 12 Sep 2018 19:43:47 -0700 Subject: [PATCH 2/3] fix remaining shorthand cases for flexbug #6 see https://github.com/philipwalton/flexbugs#flexbug-6 --- src/generators/flexbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generators/flexbox.js b/src/generators/flexbox.js index 23320855751e..30827dc7e18e 100644 --- a/src/generators/flexbox.js +++ b/src/generators/flexbox.js @@ -93,10 +93,10 @@ export default function() { flex: '1 1 0%', }, 'flex-auto': { - flex: 'auto', + flex: '1 1 auto', }, 'flex-initial': { - flex: 'initial', + flex: '0 1 auto', }, 'flex-none': { flex: 'none', From 3bfcc88695406e00c38cf4c03c4a1596790bfaf9 Mon Sep 17 00:00:00 2001 From: scottbedard Date: Wed, 12 Sep 2018 19:52:11 -0700 Subject: [PATCH 3/3] fix failing tests --- __tests__/fixtures/tailwind-output.css | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/__tests__/fixtures/tailwind-output.css b/__tests__/fixtures/tailwind-output.css index 7e5cbdb74323..5d44aef7589b 100644 --- a/__tests__/fixtures/tailwind-output.css +++ b/__tests__/fixtures/tailwind-output.css @@ -2963,15 +2963,15 @@ table { } .flex-1 { - flex: 1; + flex: 1 1 0%; } .flex-auto { - flex: auto; + flex: 1 1 auto; } .flex-initial { - flex: initial; + flex: 0 1 auto; } .flex-none { @@ -8548,15 +8548,15 @@ table { } .sm\:flex-1 { - flex: 1; + flex: 1 1 0%; } .sm\:flex-auto { - flex: auto; + flex: 1 1 auto; } .sm\:flex-initial { - flex: initial; + flex: 0 1 auto; } .sm\:flex-none { @@ -14118,15 +14118,15 @@ table { } .md\:flex-1 { - flex: 1; + flex: 1 1 0%; } .md\:flex-auto { - flex: auto; + flex: 1 1 auto; } .md\:flex-initial { - flex: initial; + flex: 0 1 auto; } .md\:flex-none { @@ -19688,15 +19688,15 @@ table { } .lg\:flex-1 { - flex: 1; + flex: 1 1 0%; } .lg\:flex-auto { - flex: auto; + flex: 1 1 auto; } .lg\:flex-initial { - flex: initial; + flex: 0 1 auto; } .lg\:flex-none { @@ -25258,15 +25258,15 @@ table { } .xl\:flex-1 { - flex: 1; + flex: 1 1 0%; } .xl\:flex-auto { - flex: auto; + flex: 1 1 auto; } .xl\:flex-initial { - flex: initial; + flex: 0 1 auto; } .xl\:flex-none {