|
11 | 11 | Badges scale to match the size of the immediate parent element by
|
12 | 12 | using relative font sizing and em units.
|
13 | 13 | </p>
|
14 |
| - <h1>Example heading <b-badge variant="primary">Primary</b-badge></h1> |
15 |
| - <h2>Example heading <b-badge variant="info">Info</b-badge></h2> |
16 |
| - <h3>Example heading <b-badge variant="warning">Warning</b-badge></h3> |
17 |
| - <h4>Example heading <b-badge variant="success">Success</b-badge></h4> |
18 |
| - <h5>Example heading <b-badge variant="danger">Danger</b-badge></h5> |
19 |
| - <h6>Example heading <b-badge variant="secondary">Secondary</b-badge></h6> |
| 14 | + <h1>Example heading <b-badge class="bg-primary">Primary</b-badge></h1> |
| 15 | + <h2>Example heading <b-badge class="bg-info">Info</b-badge></h2> |
| 16 | + <h3>Example heading <b-badge class="bg-warning">Warning</b-badge></h3> |
| 17 | + <h4>Example heading <b-badge class="bg-success">Success</b-badge></h4> |
| 18 | + <h5>Example heading <b-badge class="bg-danger">Danger</b-badge></h5> |
| 19 | + <h6>Example heading <b-badge class="bg-secondary">Secondary</b-badge></h6> |
20 | 20 | <p>Badges can be used as part of links or buttons to provide a counter.</p>
|
21 |
| - <b-button variant="primary">Notifications <b-badge variant="danger">4</b-badge></b-button> |
| 21 | + <b-button variant="primary">Notifications <b-badge class="bg-danger">4</b-badge></b-button> |
22 | 22 | </Widget>
|
23 | 23 | </b-col>
|
24 | 24 | <b-col xs="12" md="6" class="px-0">
|
|
31 | 31 | Use the <code>pill</code> property to make badges more rounded
|
32 | 32 | (with a larger border-radius and additional horizontal padding).
|
33 | 33 | </p>
|
34 |
| - <b-badge class="mr-3 mb-3" variant="primary" pill>Primary</b-badge> |
35 |
| - <b-badge class="mr-3 mb-3" variant="info" pill>Info</b-badge> |
36 |
| - <b-badge class="mr-3 mb-3" variant="warning" pill>Warning</b-badge> |
37 |
| - <b-badge class="mr-3 mb-3" variant="success" pill>Success</b-badge> |
38 |
| - <b-badge class="mr-3 mb-3" variant="danger" pill>Danger</b-badge> |
39 |
| - <b-badge class="mr-3 mb-3" variant="secondary" pill>Secondary</b-badge> |
40 |
| - <b-badge class="mr-3 mb-3" variant="light" pill>Light</b-badge> |
41 |
| - <b-badge class="mr-3 mb-3" variant="dark" pill>Dark</b-badge> |
| 34 | + <b-badge class="me-3 mb-3 bg-primary" pill>Primary</b-badge> |
| 35 | + <b-badge class="me-3 mb-3 bg-info" variant="info" pill>Info</b-badge> |
| 36 | + <b-badge class="me-3 mb-3 bg-warning" pill>Warning</b-badge> |
| 37 | + <b-badge class="me-3 mb-3 bg-success" pill>Success</b-badge> |
| 38 | + <b-badge class="me-3 mb-3 bg-danger" pill>Danger</b-badge> |
| 39 | + <b-badge class="me-3 mb-3 bg-secondary" pill>Secondary</b-badge> |
| 40 | + <b-badge class="me-3 mb-3 bg-light text-black" pill>Light</b-badge> |
| 41 | + <b-badge class="me-3 mb-3 bg-dark" pill>Dark</b-badge> |
42 | 42 | </Widget>
|
43 | 43 | </b-col>
|
44 | 44 | <b-col xs="12">
|
|
51 | 51 | an <code><Badge></code> element quickly provide
|
52 | 52 | actionable badges with hover and focus states.
|
53 | 53 | </p>
|
54 |
| - <b-badge class="mr-3 mb-3" href="#" variant="primary">Primary</b-badge> |
55 |
| - <b-badge class="mr-3 mb-3" href="#" variant="info">Info</b-badge> |
56 |
| - <b-badge class="mr-3 mb-3" href="#" variant="warning">Warning</b-badge> |
57 |
| - <b-badge class="mr-3 mb-3" href="#" variant="success">Success</b-badge> |
58 |
| - <b-badge class="mr-3 mb-3" href="#" variant="danger">Danger</b-badge> |
59 |
| - <b-badge class="mr-3 mb-3" href="#" variant="secondary">Secondary</b-badge> |
60 |
| - <b-badge class="mr-3 mb-3" href="#" variant="light">Light</b-badge> |
61 |
| - <b-badge class="mr-3 mb-3" href="#" variant="dark">Dark</b-badge> |
| 54 | + <b-badge class="me-3 mb-3 bg-primary" href="#">Primary</b-badge> |
| 55 | + <b-badge class="me-3 mb-3 bg-info" href="#">Info</b-badge> |
| 56 | + <b-badge class="me-3 mb-3 bg-warning" href="#">Warning</b-badge> |
| 57 | + <b-badge class="me-3 mb-3 bg-success" href="#">Success</b-badge> |
| 58 | + <b-badge class="me-3 mb-3 bg-danger" href="#">Danger</b-badge> |
| 59 | + <b-badge class="me-3 mb-3 bg-secondary" href="#">Secondary</b-badge> |
| 60 | + <b-badge class="me-3 mb-3 bg-light text-black" href="#">Light</b-badge> |
| 61 | + <b-badge class="me-3 mb-3 bg-dark" href="#">Dark</b-badge> |
62 | 62 | </Widget>
|
63 | 63 | </b-col>
|
64 | 64 | </b-col>
|
|
0 commit comments