我正在做一個專案。專案要求從 mat 單選按鈕中洗掉懸停顏色。我嘗試了很多東西,但沒有任何效果對我有用。我目前的造型如下:
::ng-deep .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
opacity: 0.5 !important; /*click effect color change*/
background-color: transparent !important;
}
::ng-deep .mat-radio-button.mat-accent .mat-radio-inner-circle {
background-color: blue !important; /*inner circle color change*/
}
::ng-deep.mat-radio-button.mat-accent.mat-radio-checked .mat-
radio-outer-circle {
border-color:blue !important; /*outer ring color change*/
}
我在這上面花了很多時間。如果有人知道誰來解決它,請告訴我。謝謝
uj5u.com熱心網友回復:
基本上,您要消除漣漪效應。要消除 mat 單選按鈕上的漣漪效應,您可以這樣做:
.mat-radio-ripple {
display: none;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/322909.html
上一篇:路由困境-最好的架構方法是什么?
下一篇:角度,將輸入欄位重置回默認值
