【发布时间】:2017-09-15 02:16:44
【问题描述】:
我正在构建一个使用 Grommet UX 框架的 React 站点。我的网站的一部分使用聊天控件,我想在其中应用聊天控件的样式。问题是我的 custom.css 似乎没有将样式应用于 Web 控件,而是似乎一直在尝试应用 Grommet。
我到底错过了什么?
自定义 CSS
customstyle{
body .wc-app, .wc-app button, .wc-app input, .wc-app textarea {
font-family: 'Segoe UI', sans-serif;
font-size: 15px;
}
...
};
这是我的 app.js
import webchatstyles from '../app/custom.scss';
...
render() {
return (
<App centered={false}>
<Article>
<Split flex='right'>
<Section>
<Box margin='none' pad='none'>
<Chat className={webchatstyles.customstyle} directLine={{secret: 'GUID.Is.Here'}} user={{id:'test', name: 'test'}}/>
</Box>
...
【问题讨论】: