머티리얼 UI 스낵바에 다중 배경색을 적용하는 방법은 무엇입니까? 아래에서 언급 한 바와 같이 선형 그래디언트로 시도했지만 작동하지 않습니다.재료 스 니크 바에 다중 배경색을 적용 할 수 없습니다.
import Snackbar from 'material-ui/Snackbar';
const bodyStyle = {
border: `2px solid ${config.actualWhite}`,
minWidth: '50%',
maxWidth: '100%',
height:'55px',
backgroundColor: 'linear-gradient(to right bottom, #00897B, #FFE082)',
fontFamily: config.fontFamily,
fontStyle: config.fontStyle,
fontWeight: config.fontWeight,
fontSize: config.fontSize
}
<Snackbar
open={this.state.openLogout}
message="You are Successfuly loggedout! Thanks for being part of web Family!"
autoHideDuration={4000}
bodyStyle={bodyStyle}
action="Close"
onRequestClose={this.handleRequestClose}
onActionTouchTap={this.handleRequestClose}
style={myTheme.snackbarfromTop}
/>
배경색을 선형 그라데이션 색상으로 배경으로 변경하면 효과적입니다. 참조 용 스낵바 이미지 첨부. –