Skip to content

Commit f7426c0

Browse files
julien-deramondmdo
authored andcommitted
Doc: use .text-bg-{color} for all badges
1 parent dac6007 commit f7426c0

File tree

6 files changed

+69
-69
lines changed

6 files changed

+69
-69
lines changed

site/content/docs/5.3/components/badge.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Badges scale to match the size of the immediate parent element by using relative
1313
### Headings
1414

1515
{{< example >}}
16-
<h1>Example heading <span class="badge bg-secondary">New</span></h1>
17-
<h2>Example heading <span class="badge bg-secondary">New</span></h2>
18-
<h3>Example heading <span class="badge bg-secondary">New</span></h3>
19-
<h4>Example heading <span class="badge bg-secondary">New</span></h4>
20-
<h5>Example heading <span class="badge bg-secondary">New</span></h5>
21-
<h6>Example heading <span class="badge bg-secondary">New</span></h6>
16+
<h1>Example heading <span class="badge text-bg-secondary">New</span></h1>
17+
<h2>Example heading <span class="badge text-bg-secondary">New</span></h2>
18+
<h3>Example heading <span class="badge text-bg-secondary">New</span></h3>
19+
<h4>Example heading <span class="badge text-bg-secondary">New</span></h4>
20+
<h5>Example heading <span class="badge text-bg-secondary">New</span></h5>
21+
<h6>Example heading <span class="badge text-bg-secondary">New</span></h6>
2222
{{< /example >}}
2323

2424
### Buttons

site/content/docs/5.3/components/list-group.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,21 @@ These work great with custom content as well.
117117
<div class="fw-bold">Subheading</div>
118118
Content for list item
119119
</div>
120-
<span class="badge bg-primary rounded-pill">14</span>
120+
<span class="badge text-bg-primary rounded-pill">14</span>
121121
</li>
122122
<li class="list-group-item d-flex justify-content-between align-items-start">
123123
<div class="ms-2 me-auto">
124124
<div class="fw-bold">Subheading</div>
125125
Content for list item
126126
</div>
127-
<span class="badge bg-primary rounded-pill">14</span>
127+
<span class="badge text-bg-primary rounded-pill">14</span>
128128
</li>
129129
<li class="list-group-item d-flex justify-content-between align-items-start">
130130
<div class="ms-2 me-auto">
131131
<div class="fw-bold">Subheading</div>
132132
Content for list item
133133
</div>
134-
<span class="badge bg-primary rounded-pill">14</span>
134+
<span class="badge text-bg-primary rounded-pill">14</span>
135135
</li>
136136
</ol>
137137
{{< /example >}}
@@ -200,15 +200,15 @@ Add badges to any list group item to show unread counts, activity, and more with
200200
<ul class="list-group">
201201
<li class="list-group-item d-flex justify-content-between align-items-center">
202202
A list item
203-
<span class="badge bg-primary rounded-pill">14</span>
203+
<span class="badge text-bg-primary rounded-pill">14</span>
204204
</li>
205205
<li class="list-group-item d-flex justify-content-between align-items-center">
206206
A second list item
207-
<span class="badge bg-primary rounded-pill">2</span>
207+
<span class="badge text-bg-primary rounded-pill">2</span>
208208
</li>
209209
<li class="list-group-item d-flex justify-content-between align-items-center">
210210
A third list item
211-
<span class="badge bg-primary rounded-pill">1</span>
211+
<span class="badge text-bg-primary rounded-pill">1</span>
212212
</li>
213213
</ul>
214214
{{< /example >}}

0 commit comments

Comments
 (0)