小编Bru*_*eri的帖子

如何覆盖 Material-UI Popover Paper 样式?

基本上,我试图覆盖在我的程序中自动引入的样式。当我使用 Popover 时,我的程序中自动有 MuiPopover-paper 样式,我必须更改此类中的一些样式,但是如何?

.MuiPopover-paper {
    outline: none;
    position: absolute;
    max-width: calc(100% - 32px);
    min-width: 16px;
    max-height: calc(100% - 32px);
    min-height: 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

code part

const styles = (theme: Theme) => {
  return createStyles({
    notifications: {
      width: 449,
      height: 400,
      overflow: 'auto'
    },
    settings: {
      width: 300,
      height: 360
    }
  })
}
Run Code Online (Sandbox Code Playgroud)

javascript reactjs material-ui

5
推荐指数
1
解决办法
2898
查看次数

标签 统计

javascript ×1

material-ui ×1

reactjs ×1