From 50fa6dd13e7589021471a40c41be282793d2b11b Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Tue, 9 Jan 2024 11:07:32 -0500 Subject: [PATCH] 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 <4323180+adamwathan@users.noreply.github.com> Co-authored-by: Jordan Pittman --- CHANGELOG.md | 4 +++- src/css/preflight.css | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a37f414d69e..9daa0015903c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing yet! +### Fixed + +- Ensure max specificity of `0,0,1` for button and input Preflight rules ([#12735](https://github.com/tailwindlabs/tailwindcss/pull/12735)) ## [3.4.1] - 2014-01-05 diff --git a/src/css/preflight.css b/src/css/preflight.css index 3e4fa066386f..7552e50354d9 100644 --- a/src/css/preflight.css +++ b/src/css/preflight.css @@ -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 */