Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use inset instead of top, right, bottom, and left properties #10765

Merged
merged 2 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Oxide] Disable color opacity plugins by default in the `oxide` engine ([#10618](https://github.com/tailwindlabs/tailwindcss/pull/10618))
- [Oxide] Enable relative content paths for the `oxide` engine ([#10621](https://github.com/tailwindlabs/tailwindcss/pull/10621))
- Mark `rtl` and `ltr` variants as stable and remove warnings ([#10764](https://github.com/tailwindlabs/tailwindcss/pull/10764))
- Use `inset` instead of `top`, `right`, `bottom`, and `left` properties ([#10765](https://github.com/tailwindlabs/tailwindcss/pull/10765))

## [3.2.7] - 2023-02-16

Expand Down
2 changes: 1 addition & 1 deletion src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ export let corePlugins = {
inset: createUtilityPlugin(
'inset',
[
['inset', ['top', 'right', 'bottom', 'left']],
['inset', ['inset']],
[
['inset-x', ['left', 'right']],
['inset-y', ['top', 'bottom']],
Expand Down
10 changes: 2 additions & 8 deletions tests/any-type.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ crosscheck(({ stable, oxide }) => {
return run(input, config).then((result) => {
let oxideExpected = css`
.inset-\[var\(--any-value\)\] {
top: var(--any-value);
right: var(--any-value);
bottom: var(--any-value);
left: var(--any-value);
inset: var(--any-value);
}
.inset-x-\[var\(--any-value\)\] {
left: var(--any-value);
Expand Down Expand Up @@ -738,10 +735,7 @@ crosscheck(({ stable, oxide }) => {
`
let stableExpected = css`
.inset-\[var\(--any-value\)\] {
top: var(--any-value);
right: var(--any-value);
bottom: var(--any-value);
left: var(--any-value);
inset: var(--any-value);
}
.inset-x-\[var\(--any-value\)\] {
left: var(--any-value);
Expand Down
5 changes: 1 addition & 4 deletions tests/arbitrary-values.oxide.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
inset: 11px;
}
.inset-\[var\(--value\)\] {
top: var(--value);
right: var(--value);
bottom: var(--value);
left: var(--value);
inset: var(--value);
}
.inset-x-\[11px\] {
left: 11px;
Expand Down
5 changes: 1 addition & 4 deletions tests/arbitrary-values.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
inset: 11px;
}
.inset-\[var\(--value\)\] {
top: var(--value);
right: var(--value);
bottom: var(--value);
left: var(--value);
inset: var(--value);
}
.inset-x-\[11px\] {
left: 11px;
Expand Down