@@ -123,12 +123,17 @@ export const BCalendar = Vue.extend({
123
123
selectedVariant : {
124
124
// Variant color to use for the selected date
125
125
type : String ,
126
- default : 'primary'
126
+ default : getComponentConfig ( NAME , 'selectedVariant' )
127
127
} ,
128
128
todayVariant : {
129
- // Variant color to use for today's date (defaults to `variant`)
130
- type : String
131
- // default: null
129
+ // Variant color to use for today's date (defaults to `selectedVariant`)
130
+ type : String ,
131
+ default : getComponentConfig ( NAME , 'todayVariant' )
132
+ } ,
133
+ navButtonVariant : {
134
+ // Variant color to use for the navigation buttons
135
+ type : String ,
136
+ default : getComponentConfig ( NAME , 'navButtonVariant' )
132
137
} ,
133
138
noHighlightToday : {
134
139
// Disable highlighting today's date
@@ -355,6 +360,9 @@ export const BCalendar = Vue.extend({
355
360
computedTodayVariant ( ) {
356
361
return `btn-outline-${ this . todayVariant || this . selectedVariant || 'primary' } `
357
362
} ,
363
+ computedNavButtonVariant ( ) {
364
+ return `btn-outline-${ this . navButtonVariant || 'primary' } `
365
+ } ,
358
366
isRTL ( ) {
359
367
// `true` if the language requested is RTL
360
368
const dir = toString ( this . direction ) . toLowerCase ( )
@@ -889,8 +897,8 @@ export const BCalendar = Vue.extend({
889
897
return h (
890
898
'button' ,
891
899
{
892
- staticClass : 'btn btn-sm btn-outline-secondary border-0 flex-fill' ,
893
- class : { disabled : btnDisabled } ,
900
+ staticClass : 'btn btn-sm border-0 flex-fill' ,
901
+ class : [ this . computedNavButtonVariant , { disabled : btnDisabled } ] ,
894
902
attrs : {
895
903
title : label || null ,
896
904
type : 'button' ,
0 commit comments