Skip to content

Commit

Permalink
Added support for display : inline-table (#3563)
Browse files Browse the repository at this point in the history
* Added support for display : inline-table

* Moved the inline-table class to the suggested spot and updated the tests

Co-authored-by: Erik Verbeek <erik@evidencio.com>
  • Loading branch information
erikverbeek and Erik Verbeek committed Apr 3, 2021
1 parent 9e705db commit 48d7648
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 0 deletions.
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-flagged.css
Expand Up @@ -10812,6 +10812,10 @@ video {
display: table;
}

.inline-table {
display: inline-table;
}

.table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -39416,6 +39420,10 @@ video {
display: table;
}

.sm\:inline-table {
display: inline-table;
}

.sm\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -67977,6 +67985,10 @@ video {
display: table;
}

.md\:inline-table {
display: inline-table;
}

.md\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -96538,6 +96550,10 @@ video {
display: table;
}

.lg\:inline-table {
display: inline-table;
}

.lg\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -125099,6 +125115,10 @@ video {
display: table;
}

.xl\:inline-table {
display: inline-table;
}

.xl\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -153660,6 +153680,10 @@ video {
display: table;
}

.\32xl\:inline-table {
display: inline-table;
}

.\32xl\:table-caption {
display: table-caption;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-important.css
Expand Up @@ -10812,6 +10812,10 @@ video {
display: table !important;
}

.inline-table {
display: inline-table !important;
}

.table-caption {
display: table-caption !important;
}
Expand Down Expand Up @@ -39416,6 +39420,10 @@ video {
display: table !important;
}

.sm\:inline-table {
display: inline-table !important;
}

.sm\:table-caption {
display: table-caption !important;
}
Expand Down Expand Up @@ -67977,6 +67985,10 @@ video {
display: table !important;
}

.md\:inline-table {
display: inline-table !important;
}

.md\:table-caption {
display: table-caption !important;
}
Expand Down Expand Up @@ -96538,6 +96550,10 @@ video {
display: table !important;
}

.lg\:inline-table {
display: inline-table !important;
}

.lg\:table-caption {
display: table-caption !important;
}
Expand Down Expand Up @@ -125099,6 +125115,10 @@ video {
display: table !important;
}

.xl\:inline-table {
display: inline-table !important;
}

.xl\:table-caption {
display: table-caption !important;
}
Expand Down Expand Up @@ -153660,6 +153680,10 @@ video {
display: table !important;
}

.\32xl\:inline-table {
display: inline-table !important;
}

.\32xl\:table-caption {
display: table-caption !important;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-no-color-opacity.css
Expand Up @@ -9250,6 +9250,10 @@ video {
display: table;
}

.inline-table {
display: inline-table;
}

.table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -35298,6 +35302,10 @@ video {
display: table;
}

.sm\:inline-table {
display: inline-table;
}

.sm\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -61303,6 +61311,10 @@ video {
display: table;
}

.md\:inline-table {
display: inline-table;
}

.md\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -87308,6 +87320,10 @@ video {
display: table;
}

.lg\:inline-table {
display: inline-table;
}

.lg\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -113313,6 +113329,10 @@ video {
display: table;
}

.xl\:inline-table {
display: inline-table;
}

.xl\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -139318,6 +139338,10 @@ video {
display: table;
}

.\32xl\:inline-table {
display: inline-table;
}

.\32xl\:table-caption {
display: table-caption;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output.css
Expand Up @@ -10812,6 +10812,10 @@ video {
display: table;
}

.inline-table {
display: inline-table;
}

.table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -39416,6 +39420,10 @@ video {
display: table;
}

.sm\:inline-table {
display: inline-table;
}

.sm\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -67977,6 +67985,10 @@ video {
display: table;
}

.md\:inline-table {
display: inline-table;
}

.md\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -96538,6 +96550,10 @@ video {
display: table;
}

.lg\:inline-table {
display: inline-table;
}

.lg\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -125099,6 +125115,10 @@ video {
display: table;
}

.xl\:inline-table {
display: inline-table;
}

.xl\:table-caption {
display: table-caption;
}
Expand Down Expand Up @@ -153660,6 +153680,10 @@ video {
display: table;
}

.\32xl\:inline-table {
display: inline-table;
}

.\32xl\:table-caption {
display: table-caption;
}
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/display.js
Expand Up @@ -20,6 +20,9 @@ export default function () {
'.table': {
display: 'table',
},
'.inline-table': {
display: 'inline-table',
},
'.table-caption': {
display: 'table-caption',
},
Expand Down

0 comments on commit 48d7648

Please sign in to comment.