Commit a636933
Add discrete properties to the default list of
This PR changes the `transition` utility to include five new properties:
- `display`
- `visibility`
- `content-visibility`
- `overlay`
- `pointer-eventes`
On its own, this change does nothing since these properties will apply
their change _immediately_. However, in combination with
`transition-discrete` this will ensure that you can now transition these
types without requiering `transition-all` or arbitrary transition
properties.
## Test plan
- Ensured this works in the Vite playground with native `<dialog>`
components
https://github.com/user-attachments/assets/89bf4a75-b681-4574-8bb4-845fffdec43b
Notice how:
- the backdrop stays open until the transition is over (that's because
of `overlay` in the property list)
- the dialog is displayed until the transition is over
---------
Co-authored-by: Adam Wathan <[email protected]>transition properties (#17812)1 parent ab4eb18 commit a636933
File tree
3 files changed
+4
-3
lines changed- packages/tailwindcss/src
3 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21775 | 21775 | | |
21776 | 21776 | | |
21777 | 21777 | | |
21778 | | - | |
| 21778 | + | |
21779 | 21779 | | |
21780 | 21780 | | |
21781 | 21781 | | |
| |||
21837 | 21837 | | |
21838 | 21838 | | |
21839 | 21839 | | |
21840 | | - | |
| 21840 | + | |
21841 | 21841 | | |
21842 | 21842 | | |
21843 | 21843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4501 | 4501 | | |
4502 | 4502 | | |
4503 | 4503 | | |
4504 | | - | |
| 4504 | + | |
4505 | 4505 | | |
4506 | 4506 | | |
4507 | 4507 | | |
| |||
0 commit comments