From f94a117500266a8f5e9cfec3b03db81493b1b047 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 18 Nov 2021 14:25:19 +0100 Subject: [PATCH] Add `::file-selector-button` reset (#6125) * add ::file-selector-button reset Otherwise you have to apply `file:border-solid` which you don't have to do for other elements with borders. See: https://play.tailwindcss.com/EvtdftCPt6 * update changelog --- CHANGELOG.md | 1 + src/css/preflight.css | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4de3bc821..c63ba0587 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `placeholder` variant ([#6106](https://github.com/tailwindlabs/tailwindcss/pull/6106)) - Add tuple syntax for configuring screens while guaranteeing order ([#5956](https://github.com/tailwindlabs/tailwindcss/pull/5956)) - Add combinable `touch-action` support ([#6115](https://github.com/tailwindlabs/tailwindcss/pull/6115)) +- Add `::file-selector-button` reset ([#6125](https://github.com/tailwindlabs/tailwindcss/pull/6125)) ## [3.0.0-alpha.2] - 2021-11-08 diff --git a/src/css/preflight.css b/src/css/preflight.css index c4ee4437d..d49dc7ef5 100644 --- a/src/css/preflight.css +++ b/src/css/preflight.css @@ -17,6 +17,10 @@ --tw-content: ''; } +::file-selector-button { + border-style: solid; /* 2 */ +} + /* 1. Use a consistent sensible line-height in all browsers. 2. Prevent adjustments of font size after orientation changes in iOS.