@@ -123,12 +123,17 @@ export const BCalendar = Vue.extend({
123123 selectedVariant : {
124124 // Variant color to use for the selected date
125125 type : String ,
126- default : 'primary'
126+ default : getComponentConfig ( NAME , 'selectedVariant' )
127127 } ,
128128 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' )
132137 } ,
133138 noHighlightToday : {
134139 // Disable highlighting today's date
@@ -355,6 +360,9 @@ export const BCalendar = Vue.extend({
355360 computedTodayVariant ( ) {
356361 return `btn-outline-${ this . todayVariant || this . selectedVariant || 'primary' } `
357362 } ,
363+ computedNavButtonVariant ( ) {
364+ return `btn-outline-${ this . navButtonVariant || 'primary' } `
365+ } ,
358366 isRTL ( ) {
359367 // `true` if the language requested is RTL
360368 const dir = toString ( this . direction ) . toLowerCase ( )
@@ -889,8 +897,8 @@ export const BCalendar = Vue.extend({
889897 return h (
890898 'button' ,
891899 {
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 } ] ,
894902 attrs : {
895903 title : label || null ,
896904 type : 'button' ,
0 commit comments