Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add appearance-auto utility
  • Loading branch information
adamwathan committed Nov 12, 2023
commit 1eecf7d0fd2c8513fa50ba2d44e051bcafa6e080
1 change: 1 addition & 0 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,7 @@ export let corePlugins = {
appearance: ({ addUtilities }) => {
addUtilities({
'.appearance-none': { appearance: 'none' },
'.appearance-auto': { appearance: 'auto' },
})
},

Expand Down
5 changes: 5 additions & 0 deletions tests/plugins/__snapshots__/appearance.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ exports[`should test the 'appearance' plugin 1`] = `
-webkit-appearance: none;
appearance: none;
}

.appearance-auto {
-webkit-appearance: auto;
appearance: auto;
}
"
`;