Skip to content

Commit 91fcb3e

Browse files
authored
Merge pull request tailwindlabs#25 from MichaelDeBoey/more-variants-by-default
Enable more variants by default
2 parents 0b75c9a + e759cf7 commit 91fcb3e

File tree

7 files changed

+9
-2
lines changed

7 files changed

+9
-2
lines changed

source/docs/background-color.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ Hover utilities can also be combined with responsive utilities by adding the res
5151
'variants' => [
5252
'responsive',
5353
'hover',
54+
'focus'
5455
],
5556
])

source/docs/border-color.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ Hover utilities can also be combined with responsive utilities by adding the res
5151
'variants' => [
5252
'responsive',
5353
'hover',
54+
'focus',
5455
],
5556
])

source/docs/font-weight.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,6 @@ Hover utilities can also be combined with responsive utilities by adding the res
8787
'variants' => [
8888
'responsive',
8989
'hover',
90+
'focus',
9091
],
9192
])

source/docs/shadows.blade.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,7 @@ If a `default` shadow is provided, it will be used for the non-suffixed `.shadow
139139
],
140140
'variants' => [
141141
'responsive',
142+
'hover',
143+
'focus',
142144
],
143145
])

source/docs/state-variants.blade.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Add the `hover:` prefix to only apply a utility on hover.
2929
<svg class="fill-current h-6 w-6 text-white opacity-75 mr-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-2c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm-.5-5h1c.276 0 .5.224.5.5v1c0 .276-.224.5-.5.5h-1c-.276 0-.5-.224-.5-.5v-1c0-.276.224-.5.5-.5zm0-8h1c.276 0 .5.224.5.5V8l-.5 3-1 .5L9 8V5.5c0-.276.224-.5.5-.5z"/></svg>
3030
</div>
3131
<div>
32-
<p class="leading-tight mb-2"><strong class="font-bold">By default, hover variants are only generated for background color, border color, font weight, text color, and text style utilities.</strong></p>
32+
<p class="leading-tight mb-2"><strong class="font-bold">By default, hover variants are only generated for background color, border color, font weight, shadow, text color, and text style utilities.</strong></p>
3333
<p>You can customize this in the <a href="/docs/configuration#modules" class="underline">modules section</a> of your configuration file.</p>
3434
</div>
3535
</div>
@@ -56,7 +56,7 @@ Add the `focus:` prefix to only apply a utility on focus.
5656
<svg class="fill-current h-6 w-6 text-white opacity-75 mr-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-2c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm-.5-5h1c.276 0 .5.224.5.5v1c0 .276-.224.5-.5.5h-1c-.276 0-.5-.224-.5-.5v-1c0-.276.224-.5.5-.5zm0-8h1c.276 0 .5.224.5.5V8l-.5 3-1 .5L9 8V5.5c0-.276.224-.5.5-.5z"/></svg>
5757
</div>
5858
<div>
59-
<p class="leading-tight mb-2"><strong class="font-bold">By default, focus variants are not generated for any utilities.</strong></p>
59+
<p class="leading-tight mb-2"><strong class="font-bold">By default, focus variants are only generated for background color, border color, font weight, outline, shadow, text color, and text style utilities.</strong></p>
6060
<p>You can customize this in the <a href="/docs/configuration#modules" class="underline">modules section</a> of your configuration file.</p>
6161
</div>
6262
</div>

source/docs/text-color.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ Hover utilities can also be combined with responsive utilities by adding the res
5151
'variants' => [
5252
'responsive',
5353
'hover',
54+
'focus',
5455
],
5556
])

source/docs/text-style.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,6 @@ Hover utilities can also be combined with responsive utilities by adding the res
9595
'variants' => [
9696
'responsive',
9797
'hover',
98+
'focus',
9899
],
99100
])

0 commit comments

Comments
 (0)