Reputation: 581
I'm having an issue with Angular Material checkbox where after rendering there is an additional vertical line that is added because a class in the material.
This is my HTML:
<div class="col-md-6 col-sm-12">
<div class="col-sm-12">
<mat-checkbox class="full-width" formControlName="TPA_NUSC">{{ 'GLOBAL.TAX_NUMBER_MANDATORY_AB' | translate}}</mat-checkbox>
</div>
<div class="col-sm-12">
<mat-checkbox class="full-width" formControlName="TPA_VLNC">{{ 'GLOBAL.VALIDATE_TAX_NUMBER_AB' | translate}}</mat-checkbox>
</div>
</div>
And this is my output:
That verical line comes from the class "mat-checkbox" that is added after the rendering, at least, if I remove the class the line will disappear.
Any tips about this issue?
Upvotes: 0
Views: 499
Reputation: 581
I have found the issue, seems that someone add a class in our company css that override that indigo-pink.css
Many thanks to @Peter Kim to allow me to find the issue.
If anyone will have an issue like this, there is how I found out what could be wrong.
Doing that I found out that the class had an border-right.
Hope it help some else.
Upvotes: 0
Reputation: 1977
I had a similar problem but realized that I didn't have a theme.
Make sure you have something like this in styles.css: @import "~@angular/material/prebuilt-themes/indigo-pink.css";
Upvotes: 1