Skip to content

Commit 312c06c

Browse files
committed
Fix order of "Using multi-cursor editing" section
1 parent c67d8a2 commit 312c06c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/styling-with-utility-classes.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,6 @@ When elements are rendered in a loop like this, the actual class list is only wr
767767

768768
When duplication is localized to a group of elements in a single file, the easiest way to deal with it is to use [multi-cursor editing](https://code.visualstudio.com/docs/editor/codebasics#_multiple-selections-multicursor) to quickly select and edit the class list for each element at once:
769769

770-
You'd be surprised at how often this ends up being the best solution. If you can quickly edit all of the duplicated class lists simultaneously, there's no benefit to introducing any additional abstraction.
771-
772770
<MultiCursorAnimation>
773771
<Figure>
774772
<Example>
@@ -780,6 +778,8 @@ You'd be surprised at how often this ends up being the best solution. If you can
780778
</Figure>
781779
</MultiCursorAnimation>
782780

781+
You'd be surprised at how often this ends up being the best solution. If you can quickly edit all of the duplicated class lists simultaneously, there's no benefit to introducing any additional abstraction.
782+
783783
### Using components
784784

785785
If you need to reuse some styles across multiple files, the best strategy is to create a _component_ if you're using a front-end framework like React, Svelte, or Vue, or a _template partial_ if you're using a templating language like Blade, ERB, Twig, or Nunjucks.

0 commit comments

Comments
 (0)