我试图找出为什么 Material UI 的 CSSBaseline 破坏了 React-mentions 的背景颜色对齐以及如何解决这个问题 ( https://www.npmjs.com/package/react-mentions )
看看以下设置: https://codesandbox.io/s/frosty-wildflower-21wqm
目前我几乎陷入困境,我真的希望有人能帮助我找到解决办法。
如果有任何问题,请告诉我。
干杯
最佳答案
您的问题是 MuiBaseline 设置的 line-height
属性;要解决此问题,只需将其重置为 1
,如下所示:
* {
line-height: 1;
}
工作解决方案:https://codesandbox.io/s/nifty-glitter-4j0c5?file=/src/styles.css
关于javascript - Material UI 的 CSSBaseline 破坏了 react 提及,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69439961/