Reset all properties when using line-clamp-none (#10876)

* reset other properties on `line-clamp-none`

* update CHANGELOG
This commit is contained in:
Robin Malfait 2023-03-27 18:56:14 +02:00 committed by GitHub
parent 71035b7bbe
commit 5b77b42574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 4 deletions

View File

@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `caption-side` utilities ([#10470](https://github.com/tailwindlabs/tailwindcss/pull/10470))
- Add `justify-normal` and `justify-stretch` utilities ([#10560](https://github.com/tailwindlabs/tailwindcss/pull/10560))
- Add `content-normal` and `content-stretch` utilities ([#10645](https://github.com/tailwindlabs/tailwindcss/pull/10645))
- Add `line-clamp` utilities from `@tailwindcss/line-clamp` to core ([#10768](https://github.com/tailwindlabs/tailwindcss/pull/10768))
- Add `line-clamp` utilities from `@tailwindcss/line-clamp` to core ([#10768](https://github.com/tailwindlabs/tailwindcss/pull/10768), [#10876](https://github.com/tailwindlabs/tailwindcss/pull/10876))
- Support ESM and TypeScript config files ([#10785](https://github.com/tailwindlabs/tailwindcss/pull/10785))
- Add `list-style-image` utilities ([#10817](https://github.com/tailwindlabs/tailwindcss/pull/10817))
- Use `:is` to make important selector option insensitive to DOM order ([#10835](https://github.com/tailwindlabs/tailwindcss/pull/10835))

View File

@ -717,7 +717,12 @@ export let corePlugins = {
)
addUtilities({
'.line-clamp-none': { '-webkit-line-clamp': 'unset' },
'.line-clamp-none': {
overflow: 'visible',
display: 'block',
'-webkit-box-orient': 'horizontal',
'-webkit-line-clamp': 'none',
},
})
},

View File

@ -454,7 +454,10 @@ crosscheck(({ stable, oxide }) => {
overflow: hidden;
}
.line-clamp-none {
-webkit-line-clamp: unset;
-webkit-line-clamp: none;
-webkit-box-orient: horizontal;
display: block;
overflow: visible;
}
.scale-50 {
--tw-scale-x: 0.5;
@ -1019,7 +1022,10 @@ crosscheck(({ stable, oxide }) => {
overflow: hidden;
}
.line-clamp-none {
-webkit-line-clamp: unset;
-webkit-line-clamp: none;
-webkit-box-orient: horizontal;
display: block;
overflow: visible;
}
.scale-50 {
--tw-scale-x: 0.5;