Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.1.15: tooltiip .g2-tooltip defaulting to Roboto-Regular #6161

Open
sspilleman opened this issue Apr 5, 2024 · 3 comments
Open

5.1.15: tooltiip .g2-tooltip defaulting to Roboto-Regular #6161

sspilleman opened this issue Apr 5, 2024 · 3 comments

Comments

@sspilleman
Copy link

sspilleman commented Apr 5, 2024

How to reproduce:
Take a simple barchart with a tooltip:
.g2-tooltip class is 'font-family': 'Roboto-Regular'
Which is not installed in my project so it looks inconsistent with e.g. legend and other fonts selected by default for the chart

Expected
'font-family': inherit OR whatever font is selected by default for other chart elements like legend

Workaround:

chart.interaction('tooltip', {
	css: {
		'.g2-tooltip': {
			'font-family': `inherit` <------------
		}
	}
});

Software
macOS, Chrome

@sspilleman
Copy link
Author

please comment and close if you don't think this is an issue....

@hustcc
Copy link
Member

hustcc commented Apr 10, 2024

the font of tooltip and legend should be the same value.

@sspilleman
Copy link
Author

the font of tooltip and legend should be the same value.

Then its a bug ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants