We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a877179 commit cc28647Copy full SHA for cc28647
src/components/fx/hover.js
@@ -928,9 +928,9 @@ function createHoverText(hoverData, opts) {
928
// can override this.
929
var fontFamily = opts.fontFamily || constants.HOVERFONT;
930
var fontSize = opts.fontSize || constants.HOVERFONTSIZE;
931
- var fontWeight = opts.fontWeight || 'normal';
932
- var fontStyle = opts.fontStyle || 'normal';
933
- var fontVariant = opts.fontVariant || 'normal';
+ var fontWeight = opts.fontWeight || fullLayout.font.weight;
+ var fontStyle = opts.fontStyle || fullLayout.font.style;
+ var fontVariant = opts.fontVariant || fullLayout.font.variant;
934
935
var c0 = hoverData[0];
936
var xa = c0.xa;
0 commit comments