1616- ` dark ` - <span class =" text-dark " >Dark</span >
1717
1818The base variants will translate to various Bootstrap v4 contextual class names based on the
19- component (and variant purpose) where they are used.
19+ component (and variant purpose) where they are used. See the sections below for details.
2020
2121## Background and border variants
2222
2323All the ** base variants** plus:
2424
2525- ` transparent `
2626
27- These translate to class names ` bg-< variant> ` for backgrounds and ` border-< variant> ` for borders.
27+ These translate to class names ` bg-{ variant} ` for backgrounds and ` border-{ variant} ` for borders.
2828
29- These variants are used by components (such as ` <b-card> ` , ` <b-jumbotron> ` and ` <b-modal> ` ) that
30- provide ` bg-variant ` , ` *-bg-variant ` , ` border-variant ` and ` *-border-variant ` props
29+ These variants are used by components (such as ` <b-card> ` , ` <b-jumbotron> ` , ` <b-modal> ` , etc. ) that
30+ provide ` bg-variant ` , ` *-bg-variant ` , ` border-variant ` and ` *-border-variant ` props.
3131
3232## Text variants
3333
@@ -37,10 +37,10 @@ All the **base variants** plus:
3737- ` white `
3838- ` black `
3939
40- These translate to class names ` text-< variant> `
40+ These translate to class names ` text-{ variant} `
4141
42- These variants are used by components (such as ` <b-card> ` , ` <b-jumbotron> ` and ` <b-modal> ` ) that
43- provide ` text-variant ` and ` *-text-variant ` props
42+ These variants are used by components (such as ` <b-card> ` , ` <b-jumbotron> ` , ` <b-modal> ` , etc. ) that
43+ provide ` text-variant ` and ` *-text-variant ` props.
4444
4545## Component specific variants
4646
@@ -51,22 +51,22 @@ Some Bootstrap v4 components require additional CSS styling, or additional pseud
5151
5252All the ** base variants**
5353
54- These translate to class names ` alert-< variant> ` .
54+ These translate to class names ` alert-{ variant} ` .
5555
5656### Badge variants
5757
5858All the ** base variants**
5959
60- These translate to class names ` badge-< variant> ` .
60+ These translate to class names ` badge-{ variant} ` .
6161
6262### Button variants
6363
6464All the ** base variants** plus:
6565
66- - ` outline-< base variant> `
67- - ` link ` which renders the button with the look of a link but retains button padding and margins.
66+ - ` outline-{ base variant} ` which generates an outline button version of the base variant
67+ - ` link ` which renders the button with the look of a link but retains button padding and margins
6868
69- These translate to class names ` btn-< variant> ` and ` btn-outline-< variant> ` .
69+ These translate to class names ` btn-{ variant} ` and ` btn-outline-{ variant} ` .
7070
7171Note the ` link ` variant does not have an outline version.
7272
@@ -76,27 +76,30 @@ All the **base variants** plus:
7676
7777- ` active `
7878
79- These variants translate to class names ` table-< variant> ` .
79+ These variants translate to class names ` table-{ variant} ` .
8080
81- When the table has the ` dark ` prop set, the variants translate to the ` bg-<variant> ` classes.
81+ When the table has the ` dark ` prop set, the variants translate to the ` bg-{variant} ` classes.
82+
83+ Note that the ` active ` variant is only applicable to ` <tr> ` elements within the ` <tbody> ` , and can
84+ not be applied to individual table cells or used as the ` table-variant ` .
8285
8386### Popover variants
8487
8588All the ** base variants**
8689
87- These translate to BootstrapVue custom class names ` b-popover-< variant> ` .
90+ These translate to BootstrapVue custom class names ` b-popover-{ variant} ` .
8891
8992### Tooltip variants
9093
9194All the ** base variants**
9295
93- These translate to BootstrapVue custom class names ` b-tooltip-< variant> ` .
96+ These translate to BootstrapVue custom class names ` b-tooltip-{ variant} ` .
9497
9598### Toast variants
9699
97100All the ** base variants**
98101
99- These translate to BootstrapVue custom class names ` b-toast-< variant> ` .
102+ These translate to BootstrapVue custom class names ` b-toast-{ variant} ` .
100103
101104## Using variant classes
102105
0 commit comments