我试图为ionic提示框按钮添加背景颜色,但是没有成功。我在global.scss中尝试了下面的CSS。有人可以告诉我如何实现吗?
.positive-toast-message {
--min-width: 60%;
--background: #bde7c3;
--color: black;
--button-color: black;
.toast-button {
--background: red !important;
background: white !important;
background-color: blue !important;
}
}
一旦Toast被创建,它会正确应用'positive-toast-message'样式