Skip to content

Commit

Permalink
docs(utilities): fix js code block error
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbot committed Feb 28, 2019
1 parent 0aed851 commit 66063d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/docs/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ As of [Primer v10.10.0](https://github.com/primer/css/releases/v10.10.0), `prime

Rather than toggling the `d-none` class in JavaScript, you should toggle the `hidden` property on an element. This means that you won't have to restore any more specific display utility (`d-inline` or `d-flex`, for instance) just to work around the order in which they're listed in the stylesheet.

```js
```js dead
// Good:
element.hidden = !visible

Expand Down

0 comments on commit 66063d1

Please sign in to comment.