Skip to content

Commit 8fcc91e

Browse files
committed
[docs] Devdocs Bootstrap font utilities refactor
1 parent e78ccee commit 8fcc91e

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
@@ -451,3 +451,24 @@ The `.rounded-sm` and `.rounded-lg` classes have been replaced with `.rounded-1`
451451
```
452452

453453
</ValidExample>
454+
455+
### Font utility classes
456+
457+
The `.font-weight-*` class has been replaced with `.fw-*` for brevity and consistency.
458+
The `.font-italic` class has been replaced with `.fst-italic` for brevity and consistency.
459+
460+
<InvalidExample title="Don't">
461+
462+
```html
463+
<span class="font-weight-bold font-italic">I'm a bold italic text</span>
464+
```
465+
466+
</InvalidExample>
467+
468+
<ValidExample title="Do">
469+
470+
```html
471+
<span class="fw-bold fst-italic">I'm a bold italic text</span>
472+
```
473+
474+
</ValidExample>

0 commit comments

Comments
 (0)