Skip to content

mat-select-underline in google chrome #5312

@xonuzofa

Description

@xonuzofa

Bug, feature request, or proposal:

beta 7 - Issue with mat-select-underline. Not showing sometimes, inside of table and other random times.

    <dt>CTU</dt>
    <dd>
        <div class="row" style="margin-top: 20px;">
            <div class="col-sm-6">
                <md-select [(ngModel)]="id_ctu" placeholder="CTU" (change)="onChangeCTUSelect($event)">
                    <md-option *ngFor="let ctu of ctus" [value]="ctu._id">{{ctu.unit}}</md-option>
                </md-select>
            </div>
        </div>
    </dd>
    <dt style="margin-top: 10px;">MP</dt>
    <dd>
        <div class="row" style="margin-top: 20px;">
            <div class="col-sm-6">
                <md-select [(ngModel)]="id_mp" placeholder="MP" (change)="onChangeMPSelect($event)">
                    <md-option *ngFor="let mp of mps" [value]="mp._id">{{mp.unit}}</md-option>
                </md-select>
            </div>
        </div>
    </dd>

<dt>Accounting Code</dt>
<dd>
    <div class="row" style="margin-top: 20px;">
        <div class="col-sm-6">
            <md-select [(ngModel)]="id_accountingcode" placeholder="Accounting Code" (change)="onChangeAccountingCodeSelect($event)">
                <md-option *ngFor="let accountingcode of accountingcodes" [value]="accountingcode._id">{{accountingcode.description}}</md-option>
            </md-select>
        </div>
    </div>
    <div class="row" style="margin-top: 20px;">
        <div class="col-sm-6">
            <md-select [(ngModel)]="subaccounting_code" placeholder="Subaccounting Code" (change)="onChangeSubaccountingCodeSelect($event)">
                <md-option *ngFor="let subaccountingcode of getSubAccountingCodes()" [value]="subaccountingcode.description">{{ subaccountingcode.description }}</md-option>
            </md-select>
        </div>
    </div>
</dd>

Same code for both, two has underlines, two does not.

screen shot 2017-06-22 at 4 22 46 pm

Now I have messed with the styling in chrome and have increased the class mat-select-underline to height 2px instead of 1px and this is the result I get.

screen shot 2017-06-22 at 4 24 22 pm

I am also getting similar results inside a table.

screen shot 2017-06-22 at 4 31 56 pm

Above are in chrome. Below are in safari.

screen shot 2017-06-22 at 4 33 49 pm

screen shot 2017-06-22 at 4 34 16 pm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions