From f4e9100799d6c5c041792204a9507d09ebc115be Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Wed, 13 Mar 2019 13:26:19 -0400 Subject: [PATCH] Make link styling opt-in instead of opt-out --- __tests__/fixtures/tailwind-output-important.css | 10 ++++++++++ __tests__/fixtures/tailwind-output.css | 10 ++++++++++ src/plugins/css/preflight.css | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/__tests__/fixtures/tailwind-output-important.css b/__tests__/fixtures/tailwind-output-important.css index d684b24dea96..589f7c207764 100644 --- a/__tests__/fixtures/tailwind-output-important.css +++ b/__tests__/fixtures/tailwind-output-important.css @@ -499,6 +499,16 @@ h6 { font-weight: inherit; } +/** + * Reset links to optimize for opt-in styling instead of + * opt-out. + */ + +a { + color: inherit; + text-decoration: inherit; +} + /** * Reset form element properties that are easy to forget to * style explicitly so you don't inadvertently introduce diff --git a/__tests__/fixtures/tailwind-output.css b/__tests__/fixtures/tailwind-output.css index 1bf1e39d5ceb..1814067b1722 100644 --- a/__tests__/fixtures/tailwind-output.css +++ b/__tests__/fixtures/tailwind-output.css @@ -499,6 +499,16 @@ h6 { font-weight: inherit; } +/** + * Reset links to optimize for opt-in styling instead of + * opt-out. + */ + +a { + color: inherit; + text-decoration: inherit; +} + /** * Reset form element properties that are easy to forget to * style explicitly so you don't inadvertently introduce diff --git a/src/plugins/css/preflight.css b/src/plugins/css/preflight.css index c6e9bfc5497a..aa04f489908d 100644 --- a/src/plugins/css/preflight.css +++ b/src/plugins/css/preflight.css @@ -145,6 +145,16 @@ h6 { font-weight: inherit; } +/** + * Reset links to optimize for opt-in styling instead of + * opt-out. + */ + +a { + color: inherit; + text-decoration: inherit; +} + /** * Reset form element properties that are easy to forget to * style explicitly so you don't inadvertently introduce