Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerst <Herst@users.noreply.github.com>2018-09-03 18:55:04 +0300
committerPatrick H. Lauke <redux@splintered.co.uk>2018-09-03 18:55:04 +0300
commit7b9c8e8eb34618f294ee6585aaa866205402bb49 (patch)
treed624a52a7b659b7c6fee66331c8879ae92e93ab8
parentfad49e710ed2a447b4ae983d2093db0ba583a6da (diff)
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.js2
-rw-r--r--site/docs/4.1/components/modal.md2
-rw-r--r--site/docs/4.1/examples/dashboard/index.html6
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 7666da065d..6938b9ebe9 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 2da7d8f3c3..a29347b6f3 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 f66c4505dd..3578f7a747 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>