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

Tooltip组件的默认字体设置不合理 #335

Open
Nakexn opened this issue Oct 29, 2024 · 1 comment
Open

Tooltip组件的默认字体设置不合理 #335

Nakexn opened this issue Oct 29, 2024 · 1 comment

Comments

@Nakexn
Copy link

Nakexn commented Oct 29, 2024

image

行内样式权重较高,会覆盖html或body中的全局字体设置,并且Roboto-Regular这个字体一般只有Android系统中默认安装,在其他系统显示样式无法预测

下图为在macos系统中,Safari浏览器上g6的Tooltip插件的显示效果,实际渲染的字体为宋体
image

@hustcc
Copy link
Member

hustcc commented Dec 3, 2024

@Nakexn 字体在上层 G2、G6 中都会被覆盖掉,所以不影响上层应用。有兴趣来个 PR 吗?设置默认字体为 sans-serif 比较合适。

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

No branches or pull requests

2 participants