Skip to content

Commit a15300e

Browse files
committed
minor #11448 Frontend: fix class name when using Vue/JSX/Styles (Kocal)
This PR was merged into the 3.4 branch. Discussion ---------- Frontend: fix class name when using Vue/JSX/Styles Fixing a typo. The CSS selector is `.title`, so `<h1 class={styles.title}>` will output something like `<h1 class="title_a3dKp">`, not `<h1 class="h1_a3dKp">`. Thanks! :) Commits ------- dd2981a Frontend: fix class name when using Vue/JSX/Styles
2 parents 953a668 + dd2981a commit a15300e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/encore/vuejs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ a workaround, you can use `CSS Modules`_ by suffixing import paths with
129129
color: red
130130
}
131131
132-
The output will be something like ``<h1 class="h1_a3dKp">Hello World</h1>``.
132+
The output will be something like ``<h1 class="title_a3dKp">Hello World</h1>``.
133133

134134
Using images
135135
~~~~~~~~~~~~

0 commit comments

Comments
 (0)