我目前正在 ionic v4 上开发一个应用程序,我的问题是我无法移除焦点的边缘,以前在 ionic v3 中只有这些代码行放在 variable.css 中并准备就绪,但在这个版本中它不起作用,谢谢
$text-input-md-highlight-color-invalid: transparent;
$text-input-md-highlight-color-valid: transparent;
$text-input-md-show-invalid-highlight: transparent;
$text-input-md-highlight-color: transparent;
$text-input-md-show-valid-highlight: transparent;
$text-input-md-show-focus-highlight: transparent;
$text-input-md-show-valid-highlight: $text-input-md-show-focus-highlight transparent;
$text-input-md-show-invalid-highlight: $text-input-md-show-focus-highlight transparent;
Run Code Online (Sandbox Code Playgroud)
小智 8
在 Ionic 4 中是这样的:
ion-item {
--highlight-color-valid: transparent;
--highlight-color-invalid: transparent;
--highlight-color-focused: var(--ion-color-light);
}
Run Code Online (Sandbox Code Playgroud)
官方信息: https : //ionicframework.com/docs/api/item
| 归档时间: |
|
| 查看次数: |
1586 次 |
| 最近记录: |