Skip to content

Commit 984da11

Browse files
authored
Merge pull request #1171 from roland04/devdocs-bootstrap-font
[docs] Documentation for MDL-81821
2 parents e78ccee + 8fcc91e commit 984da11

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

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)