Skip to content

Commit

Permalink
Ensure max specificity of 0,0,1 for button and input Preflight rules (#…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
3 people authored Jan 9, 2024
1 parent 9dcd97a commit ce653c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

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

### Added
Expand Down
6 changes: 3 additions & 3 deletions src/css/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ select {
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
-webkit-appearance: button; /* 1 */
background-color: transparent; /* 2 */
background-image: none; /* 2 */
Expand Down
4 changes: 2 additions & 2 deletions tests/plugins/__snapshots__/preflight.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ button, select {
text-transform: none;
}
button, [type="button"], [type="reset"], [type="submit"] {
button, input:where([type="button"]), input:where([type="reset"]), input:where([type="submit"]) {
-webkit-appearance: button;
background-color: #0000;
background-image: none;
Expand Down Expand Up @@ -300,7 +300,7 @@ button, select {
text-transform: none;
}
button, [type="button"], [type="reset"], [type="submit"] {
button, input:where([type="button"]), input:where([type="reset"]), input:where([type="submit"]) {
-webkit-appearance: button;
background-color: #0000;
background-image: none;
Expand Down

0 comments on commit ce653c5

Please sign in to comment.