【发布时间】:2017-04-29 06:57:02
【问题描述】:
我在我的应用程序中使用 react-select 组件。我也只是用 JSS 设计我的应用程序。我的问题是,由于 react-select 是一个 npm 包,因此我无法修改组件中的类名。所以那里有一个输入,我需要以我的样式为目标。
<div class="Select-input"><input type="text" name="style-me" /></div>
而我的 JSS 有点像这样:
jss.setup(preset());
const stylus = {
'Select-input': {
background: 'red'
}
}
const { classes } = jss.createStyleSheet(stylus).attach();
我需要在 JSS 中做什么来设置子输入标签的样式?
【问题讨论】: