diff options
| author | Mark Otto <[email protected]> | 2013-08-24 14:31:33 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-24 14:31:33 -0700 |
| commit | 26eb9f3440d535caca24fef04d0c7656a773092b (patch) | |
| tree | 51fc82ba9421f4cb7e648f7ef0af922c05e2c8dc /css.html | |
| parent | d67ce62f5d5ef39260510b55bc75f80a5031a70c (diff) | |
| parent | dd9c15273c4aceeada22754ee9a0af2aae7eb8ea (diff) | |
| download | bootstrap-26eb9f3440d535caca24fef04d0c7656a773092b.tar.xz bootstrap-26eb9f3440d535caca24fef04d0c7656a773092b.zip | |
Merge pull request #10112 from kevinSuttle/button-roles
Add role="button" to <a> buttons
Diffstat (limited to 'css.html')
| -rw-r--r-- | css.html | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2134,12 +2134,12 @@ For example, <code><section></code> should be wrapped as inline. <h3>Anchor element</h3> <p>Add the <code>.disabled</code> class to <code><a></code> buttons.</p> <p class="bs-example"> - <a href="#" class="btn btn-primary btn-lg disabled">Primary link</a> - <a href="#" class="btn btn-default btn-lg disabled">Link</a> + <a href="#" class="btn btn-primary btn-lg disabled" role="button">Primary link</a> + <a href="#" class="btn btn-default btn-lg disabled" role="button">Link</a> </p> {% highlight html %} -<a href="#" class="btn btn-primary btn-lg disabled">Primary link</a> -<a href="#" class="btn btn-default btn-lg disabled">Link</a> +<a href="#" class="btn btn-primary btn-lg disabled" role="button">Primary link</a> +<a href="#" class="btn btn-default btn-lg disabled" role="button">Link</a> {% endhighlight %} <p> We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required. @@ -2153,13 +2153,13 @@ For example, <code><section></code> should be wrapped as inline. <h2 id="buttons-tags">Button tags</h2> <p>Use the button classes on an <code><a></code>, <code><button></code>, or <code><input></code> element.</p> <form class="bs-example"> - <a class="btn btn-default" href="#">Link</a> + <a class="btn btn-default" href="#" role="button">Link</a> <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"> </form> {% highlight html %} -<a class="btn btn-default" href="#">Link</a> +<a class="btn btn-default" href="#" role="button">Link</a> <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"> |
