Skip to content

Commit

Permalink
fix: Remove end paragraph tag from gird example (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanWallace authored Jun 3, 2024
1 parent 203d795 commit 982539f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
22 changes: 10 additions & 12 deletions src/en/components/grid/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ Mobile
</div>

{% viewCode "en" "preview-grid-flexible" "gcds-grid" %}
<gcds-grid tag="article" columns-desktop="1fr 1fr 1fr" columns-tablet="1fr 1fr" columns="1fr" gap="300">

<p>This is some example content to display the grid component.</p>
<p>This is some example content to display the grid component.</p>
<p>This is some example content to display the grid component.</p>
</gcds-grid>
<gcds-grid tag="article" columns-desktop="1fr 1fr 1fr" columns-tablet="1fr 1fr" columns="1fr" gap="300">
<p>This is some example content to display the grid component.</p>
<p>This is some example content to display the grid component.</p>
<p>This is some example content to display the grid component.</p>
</gcds-grid>
{% endviewCode %}

Set the minimum and maximum width to design equal-width columns with restrictions to limit how wide they will span on any screen size.
Expand Down Expand Up @@ -126,12 +125,11 @@ Mobile
</div>

{% viewCode "en" "preview-grid-fixed-width" "gcds-grid" %}
<gcds-grid tag="article" columns="repeat(auto-fit, minmax(100px, 300px))" gap="500">

<p>This is some example content to display the grid component.</p>
<p>This is some example content to display the grid component.</p>
<p>This is some example content to display the grid component.</p>
</gcds-grid>
<gcds-grid tag="article" columns="repeat(auto-fit, minmax(100px, 300px))" gap="500">
<p>This is some example content to display the grid component.</p>
<p>This is some example content to display the grid component.</p>
<p>This is some example content to display the grid component.</p>
</gcds-grid>
{% endviewCode %}

{% include "partials/getcode.njk" %}
Expand Down
22 changes: 10 additions & 12 deletions src/fr/composants/grille/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ Mobile
</div>

{% viewCode "fr" "preview-grid-flexible" "gcds-grid" %}
<gcds-grid tag="article" columns-desktop="1fr 1fr 1fr" columns-tablet="1fr 1fr" columns="1fr" gap="300">

<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
</gcds-grid>
<gcds-grid tag="article" columns-desktop="1fr 1fr 1fr" columns-tablet="1fr 1fr" columns="1fr" gap="300">
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
</gcds-grid>
{% endviewCode %}

Définissez la largeur minimale et la largeur maximale pour concevoir des colonnes de largeur égale afin de limiter la largeur des colonnes sur n'importe quelle taille d'écran.
Expand Down Expand Up @@ -126,12 +125,11 @@ Mobile
</div>

{% viewCode "fr" "preview-grid-fixed-width" "gcds-grid" %}
<gcds-grid tag="article" columns="repeat(auto-fit, minmax(100px, 300px))" gap="500">

<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
</gcds-grid>
<gcds-grid tag="article" columns="repeat(auto-fit, minmax(100px, 300px))" gap="500">
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
<p>Ceci est un exemple de contenu pour illustrer le composant Grille.</p>
</gcds-grid>
{% endviewCode %}

{% include "partials/getcode.njk" %}
Expand Down

0 comments on commit 982539f

Please sign in to comment.