Skip to content

Commit

Permalink
rename forced-colors-adjust -> forced-color-adjust
Browse files Browse the repository at this point in the history
Dropped the `s` in `colors`.
  • Loading branch information
RobinMalfait committed Nov 2, 2023
1 parent e26825a commit 6c94c6d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -2877,10 +2877,10 @@ export let corePlugins = {
content: createUtilityPlugin('content', [
['content', ['--tw-content', ['content', 'var(--tw-content)']]],
]),
forcedColorsAdjust: ({ addUtilities }) => {
forcedColorAdjust: ({ addUtilities }) => {
addUtilities({
'.forced-colors-auto': { 'forced-colors-adjust': 'auto' },
'.forced-colors-none': { 'forced-colors-adjust': 'none' },
'.forced-color-auto': { 'forced-color-adjust': 'auto' },
'.forced-color-none': { 'forced-color-adjust': 'none' },
})
},
}
13 changes: 13 additions & 0 deletions tests/plugins/__snapshots__/forcedColorAdjust.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should test the 'forcedColorAdjust' plugin 1`] = `
"
.forced-color-auto {
forced-color-adjust: auto;
}
.forced-color-none {
forced-color-adjust: none;
}
"
`;
13 changes: 0 additions & 13 deletions tests/plugins/__snapshots__/forcedColorsAdjust.test.js.snap

This file was deleted.

3 changes: 3 additions & 0 deletions tests/plugins/forcedColorAdjust.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { quickPluginTest } from '../util/run'

quickPluginTest('forcedColorAdjust').toMatchSnapshot()
3 changes: 0 additions & 3 deletions tests/plugins/forcedColorsAdjust.test.js

This file was deleted.

0 comments on commit 6c94c6d

Please sign in to comment.