Skip to content

Commit

Permalink
fix: add back the default tooltip textStyle settings. Without those s…
Browse files Browse the repository at this point in the history
…ettings, the tooltip text will follow the website settings if user specified `tooltip.formatter`, which is not expected.
  • Loading branch information
100pah committed Jan 11, 2021
1 parent d0eeb33 commit 6703594
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/component/tooltip/TooltipModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class TooltipModel extends ComponentModel<TooltipOption> {
// otherwise it will always override those styles on option.axisPointer.
},
textStyle: {
color: '#666',
fontSize: 14
}
};
}
Expand Down

0 comments on commit 6703594

Please sign in to comment.