diff options
| author | Herst <[email protected]> | 2018-09-03 17:55:04 +0200 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2018-09-03 16:55:04 +0100 |
| commit | 7b9c8e8eb34618f294ee6585aaa866205402bb49 (patch) | |
| tree | d624a52a7b659b7c6fee66331c8879ae92e93ab8 | |
| parent | fad49e710ed2a447b4ae983d2093db0ba583a6da (diff) | |
| download | bootstrap-7b9c8e8eb34618f294ee6585aaa866205402bb49.tar.xz bootstrap-7b9c8e8eb34618f294ee6585aaa866205402bb49.zip | |
Added type="button" to <button>s without any type (#27174)
(again)
https://github.com/twbs/bootlint/wiki/W007
| -rw-r--r-- | site/docs/4.1/assets/js/src/application.js | 2 | ||||
| -rw-r--r-- | site/docs/4.1/components/modal.md | 2 | ||||
| -rw-r--r-- | site/docs/4.1/examples/dashboard/index.html | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/site/docs/4.1/assets/js/src/application.js b/site/docs/4.1/assets/js/src/application.js index 7666da065..6938b9ebe 100644 --- a/site/docs/4.1/assets/js/src/application.js +++ b/site/docs/4.1/assets/js/src/application.js @@ -54,7 +54,7 @@ // Insert copy to clipboard button before .highlight $('figure.highlight, div.highlight').each(function () { - var btnHtml = '<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>' + var btnHtml = '<div class="bd-clipboard"><button type="button" class="btn-clipboard" title="Copy to clipboard">Copy</button></div>' $(this).before(btnHtml) $('.btn-clipboard') .tooltip() diff --git a/site/docs/4.1/components/modal.md b/site/docs/4.1/components/modal.md index 2da7d8f3c..a29347b6f 100644 --- a/site/docs/4.1/components/modal.md +++ b/site/docs/4.1/components/modal.md @@ -522,7 +522,7 @@ Our default modal without modifier class constitutes the "medium" size modal. {% highlight html %} <!-- Extra large modal --> -<button class="btn btn-primary" data-toggle="modal" data-target=".bd-example-modal-xl">Extra large modal</button> +<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bd-example-modal-xl">Extra large modal</button> <div class="modal fade bd-example-modal-xl" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-xl"> diff --git a/site/docs/4.1/examples/dashboard/index.html b/site/docs/4.1/examples/dashboard/index.html index f66c4505d..3578f7a74 100644 --- a/site/docs/4.1/examples/dashboard/index.html +++ b/site/docs/4.1/examples/dashboard/index.html @@ -110,10 +110,10 @@ <h1 class="h2">Dashboard</h1> <div class="btn-toolbar mb-2 mb-md-0"> <div class="btn-group mr-2"> - <button class="btn btn-sm btn-outline-secondary">Share</button> - <button class="btn btn-sm btn-outline-secondary">Export</button> + <button type="button" class="btn btn-sm btn-outline-secondary">Share</button> + <button type="button" class="btn btn-sm btn-outline-secondary">Export</button> </div> - <button class="btn btn-sm btn-outline-secondary dropdown-toggle"> + <button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle"> <span data-feather="calendar"></span> This week </button> |
