Skip to content

Commit 06bbef1

Browse files
committed
[docs] Devdocs Bootstrap font utilities refactor
1 parent f3c1aaa commit 06bbef1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/guides/bs5migration/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,24 @@ The `.close` class has been replaced with `.btn-close`.
278278
```
279279

280280
</ValidExample>
281+
282+
### Font utility classes
283+
284+
The `.font-weight-*` class has been replaced with `.fw-*` for brevity and consistency.
285+
The `.font-italic` class has been replaced with `.fst-italic` for brevity and consistency.
286+
287+
<InvalidExample title="Don't">
288+
289+
```html
290+
<span class="font-weight-bold font-italic">I'm a bold italic text</span>
291+
```
292+
293+
</InvalidExample>
294+
295+
<ValidExample title="Do">
296+
297+
```html
298+
<span class="fw-bold fst-italic">I'm a bold italic text</span>
299+
```
300+
301+
</ValidExample>

0 commit comments

Comments
 (0)