Skip to content

Commit e5eceb3

Browse files
authored
Add appearance-auto utility (#12404)
* Add `appearance-auto` utility * Update CHANGELOG --------- Co-authored-by: Adam Wathan <[email protected]>
1 parent a5a6158 commit e5eceb3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3232
- Add spacing scale to `min-w-*`, `min-h-*`, and `max-w-*` utilities ([#12300](https://github.com/tailwindlabs/tailwindcss/pull/12300))
3333
- Add `forced-color-adjust` utilities ([#11931](https://github.com/tailwindlabs/tailwindcss/pull/11931))
3434
- Add `forced-colors` variant ([#11694](https://github.com/tailwindlabs/tailwindcss/pull/11694))
35+
- Add `appearance-none` utility ([#12404](https://github.com/tailwindlabs/tailwindcss/pull/12404))
3536
- [Oxide] New Rust template parsing engine ([#10252](https://github.com/tailwindlabs/tailwindcss/pull/10252))
3637
- [Oxide] Support `@import "tailwindcss"` using top-level `index.css` file ([#11205](https://github.com/tailwindlabs/tailwindcss/pull/11205), ([#11260](https://github.com/tailwindlabs/tailwindcss/pull/11260)))
3738
- [Oxide] Use `lightningcss` for nesting and vendor prefixes in PostCSS plugin ([#10399](https://github.com/tailwindlabs/tailwindcss/pull/10399))

src/corePlugins.js

+1
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,7 @@ export let corePlugins = {
11291129
appearance: ({ addUtilities }) => {
11301130
addUtilities({
11311131
'.appearance-none': { appearance: 'none' },
1132+
'.appearance-auto': { appearance: 'auto' },
11321133
})
11331134
},
11341135

tests/plugins/__snapshots__/appearance.test.js.snap

+5
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@ exports[`should test the 'appearance' plugin 1`] = `
66
-webkit-appearance: none;
77
appearance: none;
88
}
9+
10+
.appearance-auto {
11+
-webkit-appearance: auto;
12+
appearance: auto;
13+
}
914
"
1015
`;

0 commit comments

Comments
 (0)