Skip to content

Commit 65cf7fb

Browse files
committed
fix(docs): move spacings migration tip on top of the paragraph in migration from boosted
1 parent 26efa28 commit 65cf7fb

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

site/src/content/docs/migrations/migration-from-boosted.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,20 @@ See [our new Text Area page]([[docsref:/forms/text-area]]) for more information.
568568

569569
### Spacings
570570

571+
- <span class="tag tag-small rounded-none tag-info">Info</span> You might be able to transfer your spacing utilities following one of the two proposed methods (while keeping almost the rendering and at least the same proportion between spacings):
572+
- Keep the previous behavior and getting one utility for another.
573+
1. **0**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)0``$1none`
574+
2. **1**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)1``$12xsmall`
575+
3. **2**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)2``$1small`
576+
4. **3**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)3``$1large`
577+
5. **4**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)4``$12xlarge`
578+
6. **5**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)5``$14xlarge`
579+
7. **All numbers**: Search for `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)\d` and you shouldn’t have Bootstrap spacing utilities anymore
580+
{/* Next technique is almost unusable in practice */}
581+
- Change all the utilities using more precise utilities
582+
1. **Mixing Bootstrap numbers**: Search for `([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?\d`, when you match multiple on one line, consider using one of our [scaled spacing utilities]([[docsref:/utilities/spacing#notation-for-scaled-values]]) (for example, `.mb-1.mb-md-2``.mb-scaled-2xsmall`).
583+
2. **Remaining standalone classes**: Follow the previous guide going through all the standalone classes.
584+
571585
- <span class="tag tag-small rounded-none tag-negative">Breaking</span> The following margin spacing utilities have been removed from the default build (`.m{position}-{breakpoint}-{negative}{value}`). Please check the new [spacing values]([[docsref:/utilities/spacing]]) directly in the documentation and adapt your websites to them. You can still have them using `$enable-bootstrap-compatibility`:
572586
- **0**: `.m-0`, `.mx-0`, `.my-0`, `.mt-0`, `.mb-0`, `.ms-0`, `.me-0`, `.m-sm-0`, etc...
573587
- **1**: `.m-1`, `.mx-1`, `.my-1`, `.mt-1`, `.mb-1`, `.ms-1`, `.me-1`, `.m-sm-1`, etc...
@@ -673,20 +687,6 @@ See [our new Text Area page]([[docsref:/forms/text-area]]) for more information.
673687
- **2xlarge**: `.gap-scaled-2xlarge`, `.row-gap-scaled-2xlarge`, `.column-gap-scaled-2xlarge`
674688
- **3xlarge**: `.gap-scaled-3xlarge`, `.row-gap-scaled-3xlarge`, `.column-gap-scaled-3xlarge`
675689

676-
- <span class="tag tag-small rounded-none tag-warning">Warning</span> You might be able to transfer your spacing utilities following one of the two proposed methods (while keeping almost the rendering and at least the same proportion between spacings):
677-
- Keep the previous behavior and getting one utility for another.
678-
1. **0**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)0``$1none`
679-
2. **1**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)1``$12xsmall`
680-
3. **2**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)2``$1small`
681-
4. **3**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)3``$1large`
682-
5. **4**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)4``$12xlarge`
683-
6. **5**: `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)5``$14xlarge`
684-
7. **All numbers**: Search for `(([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?)\d` and you shouldn’t have Bootstrap spacing utilities anymore
685-
{/* Next technique is almost unusable in practice */}
686-
- Change all the utilities using more precise utilities
687-
1. **Mixing Bootstrap numbers**: Search for `([" \.][mp]|-?gap)[tblrsexy]?-[a-z]{0,3}-?n?\d`, when you match multiple on one line, consider using one of our [scaled spacing utilities]([[docsref:/utilities/spacing#notation-for-scaled-values]]) (for example, `.mb-1.mb-md-2``.mb-scaled-2xsmall`).
688-
2. **Remaining standalone classes**: Follow the previous guide going through all the standalone classes.
689-
690690
### Text
691691

692692
- <span class="tag tag-small rounded-none tag-negative">Breaking</span> `.text-xxl-{start|end|none}` responsive alignment text utility has been replaced by `.text-2xl-{start|end|none}`. Please refer to the [new breakpoints’ names]([[docsref:/layout/breakpoints#available-breakpoints]]). You can still have it using `$enable-bootstrap-compatibility`.

0 commit comments

Comments
 (0)