diff --git a/src/docs/upgrade-guide.mdx b/src/docs/upgrade-guide.mdx
index 91de29a8f..90136d4e8 100644
--- a/src/docs/upgrade-guide.mdx
+++ b/src/docs/upgrade-guide.mdx
@@ -365,6 +365,37 @@ To update your project for this change, replace any usage of `ring` with `ring-3
```
+### Space-between selector
+
+We've changed the selector used by the [`space-x-*` and `space-y-*` utilities](/docs/margin#adding-space-between-children) to address serious performance issues on large pages:
+
+```css
+/* [!code filename:CSS] */
+/* Before */
+.space-y-4 > :not([hidden]) ~ :not([hidden]) {
+ margin-top: 1rem;
+}
+
+/* Now */
+.space-y-4 > :not(:last-child) {
+ margin-bottom: 1rem;
+}
+```
+
+You might see changes in your project if you were ever using these utilities with inline elements, or if you were adding other margins to child elements to tweak their spacing.
+
+If this change causes any issues in your project, we recommend migrating to a flex or grid layout and using `gap` instead:
+
+{/* prettier-ignore */}
+```html
+
+
+
+
+
+
+```
+
### Container configuration
In v3, the `container` utility had several configuration options like `center` and `padding` that no longer exist in v4.
@@ -478,6 +509,66 @@ If you'd like to continue using `cursor: pointer` by default, add these base sty
}
```
+#### Dialog margins removed
+
+Preflight now resets margins on `