无法在fluent-ui中设置ToolTipHost的字体颜色,我尝试了以下代码,但它不起作用。
<TooltipHost content="Tooltip Content"
calloutProps: {
styles: {
calloutMain: { background: 'red',color:'white' },
},
},
/>
发布于 2021-06-21 22:19:39
在其中使用tooltipProps
和styles
:
<TooltipHost
...
tooltipProps={{
styles: {
content: { color: '#f00' }
}
}}
/>
完整的工作示例Codepen。
https://stackoverflow.com/questions/67742333
复制相似问题