Skip to content

Commit ce653c5

Browse files
Ensure max specificity of 0,0,1 for button and input Preflight rules (#12735)
* Ensure max specificity of 001 in all Preflight rules * Update changelog * Update changelog --------- Co-authored-by: Adam Wathan <[email protected]> Co-authored-by: Jordan Pittman <[email protected]>
1 parent 9dcd97a commit ce653c5

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
- Ensure max specificity of `0,0,1` for button and input Preflight rules ([#12735](https://github.com/tailwindlabs/tailwindcss/pull/12735))
1213
- Improve glob handling for folders with `(`, `)`, `[` or `]` in the file path ([#12715](https://github.com/tailwindlabs/tailwindcss/pull/12715))
1314

1415
### Added

src/css/preflight.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ select {
195195
*/
196196

197197
button,
198-
[type='button'],
199-
[type='reset'],
200-
[type='submit'] {
198+
input:where([type='button']),
199+
input:where([type='reset']),
200+
input:where([type='submit']) {
201201
-webkit-appearance: button; /* 1 */
202202
background-color: transparent; /* 2 */
203203
background-image: none; /* 2 */

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ button, select {
100100
text-transform: none;
101101
}
102102
103-
button, [type="button"], [type="reset"], [type="submit"] {
103+
button, input:where([type="button"]), input:where([type="reset"]), input:where([type="submit"]) {
104104
-webkit-appearance: button;
105105
background-color: #0000;
106106
background-image: none;
@@ -300,7 +300,7 @@ button, select {
300300
text-transform: none;
301301
}
302302
303-
button, [type="button"], [type="reset"], [type="submit"] {
303+
button, input:where([type="button"]), input:where([type="reset"]), input:where([type="submit"]) {
304304
-webkit-appearance: button;
305305
background-color: #0000;
306306
background-image: none;

0 commit comments

Comments
 (0)