Commit 28a5438
authored
Add
This PR adds a new `inert` variant.
We use `:where([inert], [inert] *)`, because the element with the
`inert` attribute and any of its descendants will be inert.
For example, both these buttons will have `opacity-50`:
```html
<button inert class="inert:opacity-50">I am inert</button>
<div inert>
<button class="inert:opacity-50">I am also inert</button>
</div>
```
See: https://play.tailwindcss.com/Jqedv6phGninert variant (tailwindlabs#14129)1 parent 8f2aa3a commit 28a5438
4 files changed
Lines changed: 30 additions & 0 deletions
File tree
- packages/tailwindcss/src
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1942 | 1942 | | |
1943 | 1943 | | |
1944 | 1944 | | |
| 1945 | + | |
1945 | 1946 | | |
1946 | 1947 | | |
1947 | 1948 | | |
| |||
1993 | 1994 | | |
1994 | 1995 | | |
1995 | 1996 | | |
| 1997 | + | |
1996 | 1998 | | |
1997 | 1999 | | |
1998 | 2000 | | |
| |||
2284 | 2286 | | |
2285 | 2287 | | |
2286 | 2288 | | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
2287 | 2296 | | |
2288 | 2297 | | |
2289 | 2298 | | |
| |||
2324 | 2333 | | |
2325 | 2334 | | |
2326 | 2335 | | |
| 2336 | + | |
2327 | 2337 | | |
2328 | 2338 | | |
2329 | 2339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
698 | 715 | | |
699 | 716 | | |
700 | 717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| 468 | + | |
| 469 | + | |
468 | 470 | | |
469 | 471 | | |
470 | 472 | | |
| |||
0 commit comments