Disable examples buttons

This commit is contained in:
Lucas 2020-09-29 15:01:44 +07:00
parent c140eca48a
commit fffb32dd7c

View file

@ -144,7 +144,7 @@
<form class="grid">
<input type="text" name="login" placeholder="Login" aria-label="Login" autocomplete="nickname" required>
<input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required>
<button type="submit" aria-label="Example button">Login</button>
<button type="submit" aria-label="Example button" onclick="event.preventDefault()">Login</button>
</form>
<pre><code>&lt;<b>article</b> <i>data-theme</i>=<u>"light"</u>&gt;
@ -157,7 +157,7 @@
<form class="grid">
<input type="text" name="login" placeholder="Login" aria-label="Login" autocomplete="nickname" required>
<input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required>
<button type="submit" aria-label="Example button">Login</button>
<button type="submit" aria-label="Example button" onclick="event.preventDefault()">Login</button>
</form>
<pre><code>&lt;<b>article</b> <i>data-theme</i>=<u>"dark"</u>&gt;
@ -181,7 +181,7 @@
<div class="grid">
<input type="text" name="login" placeholder="Login" aria-label="Login" autocomplete="nickname" required>
<input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required>
<button type="submit" aria-label="Example button">Login</button>
<button type="submit" aria-label="Example button" onclick="event.preventDefault()">Login</button>
</div>
<fieldset>
<label for="remember">
@ -674,7 +674,7 @@
<label for="email">Email address</label>
<input type="email" id="email" name="email" placeholder="Email address" required>
<small>We'll never share your email with anyone else.</small>
<button type="submit" aria-label="Example button">Submit</button>
<button type="submit" aria-label="Example button" onclick="event.preventDefault()">Submit</button>
</form>
<pre><code>&lt;<b>form</b>&gt;