Skip to content

Commit b9ceb4c

Browse files
yiselaKyleAMathews
authored andcommitted
[www] Tutorial: Highlight closing tag (#3925)
* Highlight closing tag There are two additions to the code, however only the opening div is highlighted and not its closing tag. * Made changes suggested by Yisela @yisela, I changed this! It took a while for me to figure out, which means that most beginners would also have trouble figuring it out, haha. Thanks for noticing and helping Gatsby improve!!!
1 parent 16e3274 commit b9ceb4c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/tutorial/part-two/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Let's make a quick improvement. Many sites have a single column of text centered
197197
in the middle of the page. To create this, add the following styles to the
198198
`<div>` in `src/pages/index.js`.
199199

200-
```jsx{4}
200+
```jsx{4,23}
201201
import React from "react";
202202
203203
export default () =>
@@ -322,6 +322,7 @@ While we won't cover CSS-in-JS in this initial tutorial, we encourage you to exp
322322
as well as
323323
[Mark Dalgleish's more recent post "A Unified Styling Language"](https://medium.com/seek-blog/a-unified-styling-language-d0c208de2660).
324324

325+
325326
### CSS Modules
326327

327328
Let's explore **CSS Modules**.
@@ -422,8 +423,8 @@ Paste the following into the file:
422423
}
423424
```
424425

425-
Now import that file into the `about-css-modules.js` page we created earlier.
426-
Also log the resulting import so we can see what the processed file looks like.
426+
Now import that file into the `about-css-modules.js` page we created earlier, by adding the following on lines 2 and 3.
427+
(The `console.log(styles)` code logs the resulting import so we can see what the processed file looks like).
427428

428429
```javascript
429430
import styles from "./about-css-modules.module.css";
@@ -453,6 +454,7 @@ Modify `about-css-modules.js` so it looks like the following:
453454
```jsx{6-17,23-30}
454455
import React from "react";
455456
import styles from "./about-css-modules.module.css";
457+
console.log(styles);
456458
457459
import Container from "../components/container";
458460

0 commit comments

Comments
 (0)