简体   繁体   English

ng-bootstrap TimePicker微调框轮廓可见

[英]ng-bootstrap TimePicker spinners outline is visible

I'm trying to understand why my ngb-timepicker's spinners outlines are visible, I suspect it's something with the css but frankly I do not understand enough on this field. 我试图了解为什么我的ngb-timepicker的微调框轮廓可见,我怀疑这与css有关,但坦率地说,我对此领域的了解不足。 A way to fix that would be appreciated. 解决该问题的方法将不胜感激。 (even if the solution includes hiding it through css, which again I don't understand enough to do on my own) (即使解决方案包括通过css隐藏它,但我仍然不了解该如何做)

仅所选微调框的轮廓不可见

Example code: 示例代码:

Html: HTML:

<div mat-dialog-content>
    <ngb-timepicker [(ngModel)]="data.time" ></ngb-timepicker>
</div>

css is empty and I only use on TS the regular CSS是空的,我只在TS上使用常规

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';

I'm using both Angular material which imports 我正在使用两种进口的Angular材料

@import '../node_modules/@angular/material/prebuilt-themes/indigo-pink.css';

on styles.css and ng-bootstrap uses bootstrap 4.0 css which imports on index.html, is there a possibility a conflict between them might cause this? 在styles.css和ng-bootstrap上使用在index.html上导入的bootstrap 4.0 css,它们之间是否有冲突可能导致此问题?

There is actually a bug with the border of buttons in the timepicker when you use bootstrap 4.0.0-beta.2 and ng-bootstrap 1.0.0-beta.5 . 当您使用bootstrap 4.0.0 -beta.2和ng-bootstrap 1.0.0-beta.5时,时间选择器中实际上存在一个带有按钮边框的错误。

ng-bootstrap only use the class btn-link to customize these buttons. ng-bootstrap仅使用btn-link类自定义这些按钮。 It work with bootstrap 4.0.0-beta , but not with beta.2 . 它适用于bootstrap 4.0.0-beta ,但不适用于beta.2

There is already a fix which will be available on the next release of ng-bootstrap. 已经有一个修复程序 ,它将在下一版ng-bootstrap中提供。

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

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