From d5e446df0c52d551ebe4793833e216fa14cfbfd6 Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Thu, 12 Dec 2024 18:15:55 +0100 Subject: [PATCH] Reset th alignment & font weight --- .../src/__snapshots__/index.test.ts.snap | 5 +++++ packages/tailwindcss/preflight.css | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap b/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap index cf0794ff2eed..9c3997a1657e 100644 --- a/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap +++ b/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap @@ -460,6 +460,11 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = ` border-collapse: collapse; } + th { + text-align: inherit; + font-weight: inherit; + } + :-moz-focusring { outline: auto; } diff --git a/packages/tailwindcss/preflight.css b/packages/tailwindcss/preflight.css index a307c6d605ca..ae03e86ca54a 100644 --- a/packages/tailwindcss/preflight.css +++ b/packages/tailwindcss/preflight.css @@ -174,6 +174,15 @@ table { border-collapse: collapse; /* 3 */ } +/* + Remove default alignment and font-weight table header elements. +*/ + +th { + text-align: inherit; + font-weight: inherit; +} + /* Use the modern Firefox focus style for all focusable elements. */