File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,15 @@ export const BAvatar = /*#__PURE__*/ Vue.extend({
161
161
const fontSize = size ? `calc(${ size } * ${ FONT_SIZE_SCALE } )` : null
162
162
$content = h ( 'span' , { style : { fontSize } } , text )
163
163
} else {
164
+ // Fallback default avatar content
164
165
$content = h ( BIconPersonFill , { attrs : { 'aria-hidden' : 'true' , alt } } )
165
166
}
166
167
167
168
const componentData = {
168
169
staticClass : CLASS_NAME ,
169
170
class : {
170
- // We use badge/button styles for theme variants
171
- [ `${ isButton ? 'btn' : ' badge' } -${ variant } ` ] : ! ! variant ,
171
+ // We use badge styles for theme variants when not rendering `BButton`
172
+ [ `badge-${ variant } ` ] : ! isButton && variant ,
172
173
// Rounding/Square
173
174
rounded : rounded === true ,
174
175
'rounded-0' : square ,
You can’t perform that action at this time.
0 commit comments