1
1
mirror of https://github.com/primer/css.git synced 2025-01-08 07:23:03 +03:00

tweak how dead=true affects code-blocks

This commit is contained in:
Shawn Allen 2019-03-05 21:41:51 -08:00
parent 45375ba6c4
commit 6a8933562f

View File

@ -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 dead
```js dead=true
// Good:
element.hidden = !visible