Skip to content

Commit cc28647

Browse files
committed
use layout.font styling defaults in hover
1 parent a877179 commit cc28647

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/fx/hover.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,9 +928,9 @@ function createHoverText(hoverData, opts) {
928928
// can override this.
929929
var fontFamily = opts.fontFamily || constants.HOVERFONT;
930930
var fontSize = opts.fontSize || constants.HOVERFONTSIZE;
931-
var fontWeight = opts.fontWeight || 'normal';
932-
var fontStyle = opts.fontStyle || 'normal';
933-
var fontVariant = opts.fontVariant || 'normal';
931+
var fontWeight = opts.fontWeight || fullLayout.font.weight;
932+
var fontStyle = opts.fontStyle || fullLayout.font.style;
933+
var fontVariant = opts.fontVariant || fullLayout.font.variant;
934934

935935
var c0 = hoverData[0];
936936
var xa = c0.xa;

0 commit comments

Comments
 (0)