简体   繁体   English

使用 material-ui 对话框组件突出显示背景元素

[英]Highlight background Element using material-ui dialog component

I'm using a dialog component in V4 of material-ui, and I want to keep a particular element from darkening in the background.我在 material-ui 的 V4 中使用了一个对话框组件,我想防止特定元素在背景中变暗。

I want the darkening, just not for the button that I click, and I was wondering if this was possible?我想要变暗,而不是我点击的按钮,我想知道这是否可能?

最终对我有用的是使用这篇文章的答案,使用BackdropProps={{ invisible: true }}并在其他组件上手动添加filter: brightness(60%)功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM