Skip to content

Commit a77ca8e

Browse files
committed
backgroundAttachment
1 parent d249608 commit a77ca8e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/source/docs/background-attachment.blade.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,37 @@ features:
3030
],
3131
]
3232
])
33+
34+
## Customizing
35+
36+
### Responsive, Hover, and Focus Variants
37+
38+
By default, no hover, focus, or group-hover variants are generated for background attachment utilities.
39+
40+
You can control which variants are generated for the background attachment utilities by modifying the `backgroundAttachment` property in the `modules` section of your Tailwind config file.
41+
42+
For example, this config will _also_ generate hover and focus variants:
43+
44+
```js
45+
{
46+
// ...
47+
modules: {
48+
// ...
49+
backgroundAttachment: ['responsive', 'hover', 'focus'],
50+
}
51+
}
52+
```
53+
54+
### Disabling
55+
56+
If you aren't using the background attachment utilities in your project, you can disable them entirely by setting the `backgroundAttachment` property to `false` in the `modules` section of your config file:
57+
58+
```js
59+
{
60+
// ...
61+
modules: {
62+
// ...
63+
backgroundAttachment: false,
64+
}
65+
}
66+
```

0 commit comments

Comments
 (0)