Skip to content

Commit

Permalink
Rename whitespace-no-wrap to whitespace-nowrap
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Oct 23, 2020
1 parent 50cdd3b commit 3d31be3
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 2 deletions.
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-flagged.css
Original file line number Diff line number Diff line change
Expand Up @@ -19234,6 +19234,10 @@ video {
white-space: nowrap;
}

.whitespace-nowrap {
white-space: nowrap;
}

.whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -42214,6 +42218,10 @@ video {
white-space: nowrap;
}

.sm\:whitespace-nowrap {
white-space: nowrap;
}

.sm\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -65164,6 +65172,10 @@ video {
white-space: nowrap;
}

.md\:whitespace-nowrap {
white-space: nowrap;
}

.md\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -88114,6 +88126,10 @@ video {
white-space: nowrap;
}

.lg\:whitespace-nowrap {
white-space: nowrap;
}

.lg\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -111064,6 +111080,10 @@ video {
white-space: nowrap;
}

.xl\:whitespace-nowrap {
white-space: nowrap;
}

.xl\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -134014,6 +134034,10 @@ video {
white-space: nowrap;
}

.\32xl\:whitespace-nowrap {
white-space: nowrap;
}

.\32xl\:whitespace-pre {
white-space: pre;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -19234,6 +19234,10 @@ video {
white-space: nowrap !important;
}

.whitespace-nowrap {
white-space: nowrap !important;
}

.whitespace-pre {
white-space: pre !important;
}
Expand Down Expand Up @@ -42214,6 +42218,10 @@ video {
white-space: nowrap !important;
}

.sm\:whitespace-nowrap {
white-space: nowrap !important;
}

.sm\:whitespace-pre {
white-space: pre !important;
}
Expand Down Expand Up @@ -65164,6 +65172,10 @@ video {
white-space: nowrap !important;
}

.md\:whitespace-nowrap {
white-space: nowrap !important;
}

.md\:whitespace-pre {
white-space: pre !important;
}
Expand Down Expand Up @@ -88114,6 +88126,10 @@ video {
white-space: nowrap !important;
}

.lg\:whitespace-nowrap {
white-space: nowrap !important;
}

.lg\:whitespace-pre {
white-space: pre !important;
}
Expand Down Expand Up @@ -111064,6 +111080,10 @@ video {
white-space: nowrap !important;
}

.xl\:whitespace-nowrap {
white-space: nowrap !important;
}

.xl\:whitespace-pre {
white-space: pre !important;
}
Expand Down Expand Up @@ -134014,6 +134034,10 @@ video {
white-space: nowrap !important;
}

.\32xl\:whitespace-nowrap {
white-space: nowrap !important;
}

.\32xl\:whitespace-pre {
white-space: pre !important;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-no-color-opacity.css
Original file line number Diff line number Diff line change
Expand Up @@ -17374,6 +17374,10 @@ video {
white-space: nowrap;
}

.whitespace-nowrap {
white-space: nowrap;
}

.whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -38494,6 +38498,10 @@ video {
white-space: nowrap;
}

.sm\:whitespace-nowrap {
white-space: nowrap;
}

.sm\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -59584,6 +59592,10 @@ video {
white-space: nowrap;
}

.md\:whitespace-nowrap {
white-space: nowrap;
}

.md\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -80674,6 +80686,10 @@ video {
white-space: nowrap;
}

.lg\:whitespace-nowrap {
white-space: nowrap;
}

.lg\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -101764,6 +101780,10 @@ video {
white-space: nowrap;
}

.xl\:whitespace-nowrap {
white-space: nowrap;
}

.xl\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -122854,6 +122874,10 @@ video {
white-space: nowrap;
}

.\32xl\:whitespace-nowrap {
white-space: nowrap;
}

.\32xl\:whitespace-pre {
white-space: pre;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -19234,6 +19234,10 @@ video {
white-space: nowrap;
}

.whitespace-nowrap {
white-space: nowrap;
}

.whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -42214,6 +42218,10 @@ video {
white-space: nowrap;
}

.sm\:whitespace-nowrap {
white-space: nowrap;
}

.sm\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -65164,6 +65172,10 @@ video {
white-space: nowrap;
}

.md\:whitespace-nowrap {
white-space: nowrap;
}

.md\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -88114,6 +88126,10 @@ video {
white-space: nowrap;
}

.lg\:whitespace-nowrap {
white-space: nowrap;
}

.lg\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -111064,6 +111080,10 @@ video {
white-space: nowrap;
}

.xl\:whitespace-nowrap {
white-space: nowrap;
}

.xl\:whitespace-pre {
white-space: pre;
}
Expand Down Expand Up @@ -134014,6 +134034,10 @@ video {
white-space: nowrap;
}

.\32xl\:whitespace-nowrap {
white-space: nowrap;
}

.\32xl\:whitespace-pre {
white-space: pre;
}
Expand Down
2 changes: 1 addition & 1 deletion __tests__/purgeUnusedStyles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function assertPurged(result) {
expect(result.css).toContain('.font-mono')
expect(result.css).toContain('.col-span-4')
expect(result.css).toContain('.tracking-tight')
expect(result.css).toContain('.whitespace-no-wrap')
expect(result.css).toContain('.whitespace-nowrap')
}

test('purges unused classes', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/whitespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default function () {
addUtilities(
{
'.whitespace-normal': { 'white-space': 'normal' },
'.whitespace-no-wrap': { 'white-space': 'nowrap' },
'.whitespace-nowrap': { 'white-space': 'nowrap' },
'.whitespace-pre': { 'white-space': 'pre' },
'.whitespace-pre-line': { 'white-space': 'pre-line' },
'.whitespace-pre-wrap': { 'white-space': 'pre-wrap' },
Expand Down

0 comments on commit 3d31be3

Please sign in to comment.