Skip to content

Commit

Permalink
[docs] Fix image layout shift when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 28, 2024
1 parent 0979d09 commit 479c040
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 33 deletions.
27 changes: 16 additions & 11 deletions docs/data/base/getting-started/support/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,22 @@ We require bug reports to be accompanied by a **minimal reproduction**.
It significantly increases the odds of fixing the problem.
You have a few possible options to provide it:

- You can browse the documentation, find an example close to your use case, and then open it in a live editor:
<a href="/base-ui/react-button/#introduction">
<span class="only-light-mode">
<img src="/static/docs-infra/forking-an-example.png" alt="Forking an example" loading="lazy" width="1548" height="606" style="display: block; max-width: 774px;">
</span>
<span class="only-dark-mode">
<img src="/static/docs-infra/forking-an-example-dark.png" alt="Forking an example" loading="lazy" width="1548" height="606" style="display: block; max-width: 774px;">
</span>
</a>

- You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react-ts).
#### Use the live editors

You can browse the documentation, find an example close to your use case, and then open it in a live editor:

<a href="/base-ui/react-button/#introduction">
<span class="only-light-mode">
<img src="/static/docs-infra/forking-an-example.png" alt="Forking an example" loading="lazy" width="1628" height="700" style="display: block; max-width: 774px;">
</span>
<span class="only-dark-mode">
<img src="/static/docs-infra/forking-an-example-dark.png" alt="Forking an example" loading="lazy" width="1628" height="700" style="display: block; max-width: 774px;">
</span>
</a>

#### Use starter templates

You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react-ts).

## Stack Overflow

Expand Down
27 changes: 16 additions & 11 deletions docs/data/material/getting-started/support/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,22 @@ We require bug reports to be accompanied by a **minimal reproduction**.
It significantly increases the odds of fixing the problem.
You have a few possible options to provide it:

- You can browse the documentation, find an example close to your use case, and then open it in a live editor:
<a href="/material-ui/react-button/#basic-button">
<span class="only-light-mode">
<img src="/static/docs-infra/forking-an-example.png" alt="Forking an example" loading="lazy" width="1548" height="606" style="display: block; max-width: 774px;">
</span>
<span class="only-dark-mode">
<img src="/static/docs-infra/forking-an-example-dark.png" alt="Forking an example" loading="lazy" width="1548" height="606" style="display: block; max-width: 774px;">
</span>
</a>

- You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react-ts).
#### Use the live editors

You can browse the documentation, find an example close to your use case, and then open it in a live editor:

<a href="/material-ui/react-button/#basic-button">
<span class="only-light-mode">
<img src="/static/docs-infra/forking-an-example.png" alt="Forking an example" loading="lazy" width="1628" height="700" style="display: block; max-width: 774px;">
</span>
<span class="only-dark-mode">
<img src="/static/docs-infra/forking-an-example-dark.png" alt="Forking an example" loading="lazy" width="1628" height="700" style="display: block; max-width: 774px;">
</span>
</a>

#### Use starter templates

You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react-ts).

## Stack Overflow

Expand Down
27 changes: 16 additions & 11 deletions docs/data/system/getting-started/support/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,22 @@ We require bug reports to be accompanied by a **minimal reproduction**.
It significantly increases the odds of fixing the problem.
You have a few possible options to provide it:

- You can browse the documentation, find an example close to your use case, and then open it in a live editor:
<a href="/system/borders/#additive">
<span class="only-light-mode">
<img src="/static/docs-infra/forking-an-example.png" alt="Forking an example" loading="lazy" width="1548" height="606" style="display: block; max-width: 774px;">
</span>
<span class="only-dark-mode">
<img src="/static/docs-infra/forking-an-example-dark.png" alt="Forking an example" loading="lazy" width="1548" height="606" style="display: block; max-width: 774px;">
</span>
</a>

- You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react-ts).
#### Use the live editors

You can browse the documentation, find an example close to your use case, and then open it in a live editor:

<a href="/system/borders/#additive">
<span class="only-light-mode">
<img src="/static/docs-infra/forking-an-example.png" alt="Forking an example" loading="lazy" width="1628" height="700" style="display: block; max-width: 774px;">
</span>
<span class="only-dark-mode">
<img src="/static/docs-infra/forking-an-example-dark.png" alt="Forking an example" loading="lazy" width="1628" height="700" style="display: block; max-width: 774px;">
</span>
</a>

#### Use starter templates

You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react-ts).

## Stack Overflow

Expand Down
Binary file modified docs/public/static/docs-infra/forking-an-example-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/docs-infra/forking-an-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 479c040

Please sign in to comment.