Skip to content

Commit d7c6f8f

Browse files
committed
fix colorbar.title.font default
1 parent e79ce86 commit d7c6f8f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/components/colorbar/defaults.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,9 @@ module.exports = function colorbarDefaults(containerIn, containerOut, layout) {
124124
coerce('title.text', layout._dfltTitle.colorbar);
125125

126126
var tickFont = colorbarOut.showticklabels ? colorbarOut.tickfont : font;
127-
var dfltTitleFont = Lib.extendFlat({}, tickFont, {
128-
weight: font.weight,
129-
style: font.style,
130-
variant: font.variant,
131-
capitalize: font.capitalize,
132-
striding: font.striding,
133-
shadow: font.shadow,
134-
color: font.color,
127+
128+
var dfltTitleFont = Lib.extendFlat({}, font, {
129+
family: tickFont.family,
135130
size: Lib.bigFont(tickFont.size)
136131
});
137132
Lib.coerceFont(coerce, 'title.font', dfltTitleFont);

0 commit comments

Comments
 (0)