Skip to content

Commit

Permalink
Updated working examples
Browse files Browse the repository at this point in the history
  • Loading branch information
BrahimMahadi committed Jul 13, 2023
1 parent 4b9454f commit ace7d53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
12 changes: 5 additions & 7 deletions common/button/button-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,16 @@ <h2>Button vs links</h2>
</dl>
<p>Do not use the role button on an anchor, use a button element instead.</p>

<h2 id="basic">Basic use</h2>
<h2 id="basic">Basic use (Default)</h2>

<h3>Default</h3>

<h4>Working example</h4>
<h5>Scaffolding (Default):</h5>
<h3>Working example</h3>
<h4>Scaffolding (Default):</h4>
<button type="submit">Button</button>
<input type="button" value="Input" />
<input type="submit" value="Submit" />
<a href="#" >Link</a>

<h5>With the default style:</h5>
<h4>With the default style:</h4>
<button class="btn btn-default" type="submit">Button</button>
<input class="btn btn-default" type="button" value="Input" />
<input class="btn btn-default" type="submit" value="Submit" />
Expand Down Expand Up @@ -88,7 +86,7 @@ <h4>Working example</h4>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-link">Link</button>
<a href="#" class="btn btn-default">Link styled as a button</a>
<a href="#" class="btn btn-default">Anchor <code>&lt;a></code> styled as a button</a>

<h4>Code sample</h4>
<pre><code>
Expand Down
12 changes: 5 additions & 7 deletions common/button/button-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,16 @@ <h2>Bouton contre liens</h2>
</dl>
<p>N'utilisez pas le bouton de rôle sur une ancre, utilisez plutôt un élément de bouton.</p>

<h2 id="basic">Utilisation de base</h2>
<h2 id="basic">Utilisation de base (Par défaut)</h2>

<h3>Par défaut</h3>

<h4>Exemple de travail</h4>
<h5>Échafaudage (par défaut):</h5>
<h3>Exemple de travail</h3>
<h4>Échafaudage (par défaut):</h4>
<button type="submit">Bouton</button>
<input type="button" value="Entrer" />
<input type="submit" value="Soumettre" />
<a href="#" >Lien</a>

<h5>Avec le style par défaut:</h5>
<h4>Avec le style par défaut:</h4>
<button class="btn btn-default" type="submit">Bouton</button>
<input class="btn btn-default" type="button" value="Entrer" />
<input class="btn btn-default" type="submit" value="Soumettre" />
Expand Down Expand Up @@ -88,7 +86,7 @@ <h4>Exemple de travail</h4>
<button type="button" class="btn btn-warning">Avertissement</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-link">Lien</button>
<a href="#" class="btn btn-default">Lien sous forme de bouton</a>
<a href="#" class="btn btn-default">Ancre <code>&lt;a></code> sous forme de bouton</a>

<h4>Code sample</h4>
<pre><code>
Expand Down
2 changes: 1 addition & 1 deletion common/button/index.json-ld
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"componentName": "button",
"status": "stable",
"pages": {
"docs": [
"examples": [
{
"title": "Buttons",
"language": "en",
Expand Down

0 comments on commit ace7d53

Please sign in to comment.