Skip to content

Commit

Permalink
[AAE-19621] Fix icon cut off in attach file button (#9249)
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaRobert committed Jan 17, 2024
1 parent 9c57070 commit d95e46e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
</label>
<div class="adf-attach-widget-container" (focusout)="markAsTouched()">
<div class="adf-attach-widget__menu-upload" *ngIf="isUploadButtonVisible()">
<button (click)="openSelectDialog()" mat-raised-button color="primary" [id]="field.id"
[matTooltip]="field.tooltip" matTooltipPosition="above" matTooltipShowDelay="1000">
{{ 'FORM.FIELD.ATTACH' | translate }}
<mat-icon>{{getWidgetIcon()}}</mat-icon>
<button
(click)="openSelectDialog()"
mat-raised-button
color="primary"
[id]="field.id"
[matTooltip]="field.tooltip"
matTooltipPosition="above"
matTooltipShowDelay="1000">
{{ 'FORM.FIELD.ATTACH' | translate }}
<mat-icon class="adf-attach-widget__icon">{{getWidgetIcon()}}</mat-icon>
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@

button span {
font-size: var(--theme-caption-font-size);

mat-icon {
line-height: 12px;
height: 12px;
width: 12px;
}

.material-icons {
font-size: var(--theme-adf-picture-1-font-size);
}
}
}

Expand Down Expand Up @@ -86,9 +76,10 @@
}

&-attach-widget__icon {
padding: 6px;
float: left;
cursor: pointer;
font-size: var(--theme-adf-picture-1-font-size);
height: var(--theme-adf-picture-1-font-size);
width: var(--theme-adf-picture-1-font-size);
line-height: calc(var(--theme-adf-picture-1-font-size) - 2px);
}

&-attach-widget__reset {
Expand Down

0 comments on commit d95e46e

Please sign in to comment.