apply css style at the right element (#14144)

* apply css style at the right element

* make mergeCss protected
This commit is contained in:
Alan Ren
2021-02-03 10:27:12 -08:00
committed by GitHub
parent b390052c86
commit 52a642f351
26 changed files with 155 additions and 58 deletions

View File

@@ -31,13 +31,13 @@ import { IDisposable } from 'vs/base/common/lifecycle';
<div *ngIf="this.buttonType !== 'Informational'; then thenBlock else elseBlock"></div>
<ng-template #thenBlock>
<label for={{this.label}}>
<div #input style="width: 100%">
<div #input [ngStyle]="CSSStyles">
<input #fileInput *ngIf="this.isFile === true" id={{this.label}} type="file" accept="{{ this.fileType }}" style="display: none">
</div>
</label>
</ng-template>
<ng-template #elseBlock>
<div #infoButton style="width: 100%;"></div>
<div #infoButton [ngStyle]="CSSStyles"></div>
</ng-template>
`
})