Skip to content

Commit

Permalink
hide flaky elements tips
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Sep 22, 2023
1 parent 6d698b8 commit d3ccbf5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,14 @@ img[src$='.gif'],
}
```

:::tip prevent layout shifts

We recommend hiding flaky UI elements affecting layout with `display: none;`.

For example, the docs "Last Updated on" might render on more than 1 line, eventually "pushing" the rest of your content further down, leading to Argos detecting many different pixels.

:::

## Example repository

The [slorber/docusaurus-argos-example](https://github.com/slorber/docusaurus-argos-example) repo shows a complete example of implementing this workflow on a newly initialized Docusaurus v2 site, using a Yarn monorepo.
Expand Down

0 comments on commit d3ccbf5

Please sign in to comment.