【发布时间】:2020-05-07 15:56:12
【问题描述】:
我正在使用createMuiTheme 为应用创建主题。我正在使用材料表,我需要定位到当前排序的列表标题的这个图标:
在开发者工具中观察它有以下 CSS 选择器:
.MuiTableSortLabel-root.MuiTableSortLabel-active.MuiTableSortLabel-root.MuiTableSortLabel-active .MuiTableSortLabel-icon {
color: rgba(0, 0, 0, 0.54);
opacity: 1;
}
我怎样才能在 createMuiTheme 对象中做到这一点?
const theme = createMuiTheme({
overrides : {
MuiTableSortLabel: {
root: {
//i want to modify the icon color
color: blue
}
}
}
})
【问题讨论】:
标签: reactjs material-ui jss material-table