Skip to content

Commit ce4da4e

Browse files
authored
Merge pull request #760 from tailwindcss/reset-link-styles
Make link styling opt-in instead of opt-out
2 parents fd3dc6e + f4e9100 commit ce4da4e

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,16 @@ h6 {
499499
font-weight: inherit;
500500
}
501501

502+
/**
503+
* Reset links to optimize for opt-in styling instead of
504+
* opt-out.
505+
*/
506+
507+
a {
508+
color: inherit;
509+
text-decoration: inherit;
510+
}
511+
502512
/**
503513
* Reset form element properties that are easy to forget to
504514
* style explicitly so you don't inadvertently introduce

__tests__/fixtures/tailwind-output.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,16 @@ h6 {
499499
font-weight: inherit;
500500
}
501501

502+
/**
503+
* Reset links to optimize for opt-in styling instead of
504+
* opt-out.
505+
*/
506+
507+
a {
508+
color: inherit;
509+
text-decoration: inherit;
510+
}
511+
502512
/**
503513
* Reset form element properties that are easy to forget to
504514
* style explicitly so you don't inadvertently introduce

src/plugins/css/preflight.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,16 @@ h6 {
145145
font-weight: inherit;
146146
}
147147

148+
/**
149+
* Reset links to optimize for opt-in styling instead of
150+
* opt-out.
151+
*/
152+
153+
a {
154+
color: inherit;
155+
text-decoration: inherit;
156+
}
157+
148158
/**
149159
* Reset form element properties that are easy to forget to
150160
* style explicitly so you don't inadvertently introduce

0 commit comments

Comments
 (0)