Commit 4f76980
authored
Make
This PR removes the `--leading-none` variable from the default theme in
favor of making `leading-none` a static utility, since it doesn't make
sense to change the value of this on a per-project basis. This is
consistent with how `none` values work for other utilities in the
framework.
Some folks in the past have wanted `leading-none` to be `line-height: 0`
but technically "leading" is the space between lines, and `line-height:
1` removes all extra space between lines so it feels correct to me
(although it means all of the numeric utilities like `leading-6` are not
technically correct but I try hard not to think about that too much).
If someone wants `line-height: 0` they can use `leading-0` in v4 since
the `leading-*` utilities inherit the spacing scale now.
---------
Co-authored-by: Adam Wathan <[email protected]>leading-none a static utility (#14934)1 parent e1c74ca commit 4f76980
File tree
7 files changed
+15
-11
lines changed- packages
- @tailwindcss-postcss/src/__snapshots__
- tailwindcss
- src
- __snapshots__
7 files changed
+15
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3853 | 3853 | | |
3854 | 3854 | | |
3855 | 3855 | | |
| 3856 | + | |
3856 | 3857 | | |
3857 | 3858 | | |
3858 | 3859 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14036 | 14036 | | |
14037 | 14037 | | |
14038 | 14038 | | |
14039 | | - | |
| 14039 | + | |
14040 | 14040 | | |
14041 | 14041 | | |
14042 | 14042 | | |
14043 | 14043 | | |
14044 | | - | |
| 14044 | + | |
14045 | 14045 | | |
14046 | 14046 | | |
14047 | 14047 | | |
14048 | | - | |
| 14048 | + | |
14049 | 14049 | | |
14050 | 14050 | | |
14051 | 14051 | | |
| |||
14059 | 14059 | | |
14060 | 14060 | | |
14061 | 14061 | | |
14062 | | - | |
14063 | | - | |
14064 | | - | |
| 14062 | + | |
| 14063 | + | |
| 14064 | + | |
14065 | 14065 | | |
14066 | 14066 | | |
14067 | 14067 | | |
| |||
14080 | 14080 | | |
14081 | 14081 | | |
14082 | 14082 | | |
14083 | | - | |
| 14083 | + | |
14084 | 14084 | | |
14085 | 14085 | | |
14086 | | - | |
| 14086 | + | |
14087 | 14087 | | |
14088 | 14088 | | |
14089 | 14089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3609 | 3609 | | |
3610 | 3610 | | |
3611 | 3611 | | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
3612 | 3617 | | |
3613 | 3618 | | |
3614 | 3619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
409 | 408 | | |
410 | 409 | | |
411 | 410 | | |
| |||
0 commit comments