Skip to content

Commit 0467eb9

Browse files
committed
Outsourced the first code snippet in docs into an include for test purposes
1 parent 417e5c0 commit 0467eb9

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
2+
<button type="button" class="btn btn-primary">Primary</button>
3+
4+
<!-- Secondary, outline button -->
5+
<button type="button" class="btn btn-secondary">Secondary</button>
6+
7+
<!-- Indicates a successful or positive action -->
8+
<button type="button" class="btn btn-success">Success</button>
9+
10+
<!-- Contextual button for informational alert messages -->
11+
<button type="button" class="btn btn-info">Info</button>
12+
13+
<!-- Indicates caution should be taken with this action -->
14+
<button type="button" class="btn btn-warning">Warning</button>
15+
16+
<!-- Indicates a dangerous or potentially negative action -->
17+
<button type="button" class="btn btn-danger">Danger</button>
18+
19+
<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
20+
<button type="button" class="btn btn-link">Link</button>

docs/components/buttons.md

+1-20
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,7 @@ Use Bootstrap's custom button styles for actions in forms, dialogs, and more. In
1717
Bootstrap includes six predefined button styles, each serving its own semantic purpose.
1818

1919
{% example html %}
20-
<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
21-
<button type="button" class="btn btn-primary">Primary</button>
22-
23-
<!-- Secondary, outline button -->
24-
<button type="button" class="btn btn-secondary">Secondary</button>
25-
26-
<!-- Indicates a successful or positive action -->
27-
<button type="button" class="btn btn-success">Success</button>
28-
29-
<!-- Contextual button for informational alert messages -->
30-
<button type="button" class="btn btn-info">Info</button>
31-
32-
<!-- Indicates caution should be taken with this action -->
33-
<button type="button" class="btn btn-warning">Warning</button>
34-
35-
<!-- Indicates a dangerous or potentially negative action -->
36-
<button type="button" class="btn btn-danger">Danger</button>
37-
38-
<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
39-
<button type="button" class="btn btn-link">Link</button>
20+
{% include codesnippets/buttons/buttons.html %}
4021
{% endexample %}
4122

4223
{% callout warning %}

0 commit comments

Comments
 (0)