Skip to content

Commit

Permalink
docs: CSS modules class name reference fix (2lRF7) (#11694)
Browse files Browse the repository at this point in the history
The image and the text showing the value of the Avatar key do not currently match.
  • Loading branch information
39digits authored and m-allanson committed Feb 11, 2019
1 parent 40c2199 commit 4c377ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/part-two/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ The `console.log(styles)` code will log the resulting import so you can see the
![css-modules-console](css-modules-console.png)

If you compare that to your CSS file, you'll see that each class is now a key in the imported object pointing to a long string e.g. `avatar` points to
`about-css-modules-module---avatar----hYcv`. These are the class names CSS
`src-pages----about-css-modules-module---avatar---2lRF7`. These are the class names CSS
Modules generates. They're guaranteed to be unique across your site. And because
you have to import them to use the classes, there's never any question about
where some CSS is being used.
Expand Down

0 comments on commit 4c377ea

Please sign in to comment.