Skip to content

Commit

Permalink
Rename whitespace-no-wrap to whitespace-nowrap (#2664)
Browse files Browse the repository at this point in the history
* Rename whitespace-no-wrap to whitespace-nowrap

* Update changelog

* Update purge fixture
  • Loading branch information
adamwathan committed Oct 23, 2020
1 parent 50cdd3b commit fe0e8e9
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 27 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `space` and `divide` utilities ignore elements with `[hidden]` now instead of only ignoring `template` elements ([#2642](https://github.com/tailwindlabs/tailwindcss/pull/2642))
- Set default font on `body`, not just `html` ([#2643](https://github.com/tailwindlabs/tailwindcss/pull/2643))
- Automatically prefix keyframes and animation names when a prefix is configured ([#2621](https://github.com/tailwindlabs/tailwindcss/pull/2621), [#2641](https://github.com/tailwindlabs/tailwindcss/pull/2641))
- Rename `whitespace-no-wrap` to `whitespace-nowrap` ([#2664](https://github.com/tailwindlabs/tailwindcss/pull/2664))

## [1.9.6]

Expand Down
2 changes: 1 addition & 1 deletion __tests__/fixtures/purge-example.html
Expand Up @@ -40,5 +40,5 @@

<!-- JSON -->
{
"helloThere": "Hello there, <span class=\"whitespace-no-wrap\">Mr. Jones</span>"
"helloThere": "Hello there, <span class=\"whitespace-nowrap\">Mr. Jones</span>"
}
12 changes: 6 additions & 6 deletions __tests__/fixtures/tailwind-output-flagged.css
Expand Up @@ -19230,7 +19230,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -42210,7 +42210,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -65160,7 +65160,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -88110,7 +88110,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -111060,7 +111060,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -134010,7 +134010,7 @@ video {
white-space: normal;
}

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

Expand Down
12 changes: 6 additions & 6 deletions __tests__/fixtures/tailwind-output-important.css
Expand Up @@ -19230,7 +19230,7 @@ video {
white-space: normal !important;
}

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

Expand Down Expand Up @@ -42210,7 +42210,7 @@ video {
white-space: normal !important;
}

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

Expand Down Expand Up @@ -65160,7 +65160,7 @@ video {
white-space: normal !important;
}

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

Expand Down Expand Up @@ -88110,7 +88110,7 @@ video {
white-space: normal !important;
}

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

Expand Down Expand Up @@ -111060,7 +111060,7 @@ video {
white-space: normal !important;
}

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

Expand Down Expand Up @@ -134010,7 +134010,7 @@ video {
white-space: normal !important;
}

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

Expand Down
12 changes: 6 additions & 6 deletions __tests__/fixtures/tailwind-output-no-color-opacity.css
Expand Up @@ -17370,7 +17370,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -38490,7 +38490,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -59580,7 +59580,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -80670,7 +80670,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -101760,7 +101760,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -122850,7 +122850,7 @@ video {
white-space: normal;
}

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

Expand Down
12 changes: 6 additions & 6 deletions __tests__/fixtures/tailwind-output.css
Expand Up @@ -19230,7 +19230,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -42210,7 +42210,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -65160,7 +65160,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -88110,7 +88110,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -111060,7 +111060,7 @@ video {
white-space: normal;
}

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

Expand Down Expand Up @@ -134010,7 +134010,7 @@ video {
white-space: normal;
}

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

Expand Down
2 changes: 1 addition & 1 deletion __tests__/purgeUnusedStyles.test.js
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
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 fe0e8e9

Please sign in to comment.