Skip to content
Snippets Groups Projects
Commit 4da857be authored by mathias.chouet's avatar mathias.chouet
Browse files

Fix #248 - added [title] tooltips on all mat-select options

parent 98e98687
No related branches found
No related tags found
1 merge request!51Update to Angular 8
Showing
with 18 additions and 10 deletions
......@@ -75,7 +75,7 @@
<!-- langue -->
<mat-form-field>
<mat-select [placeholder]="uitextLanguage" [(value)]="currentLanguageCode" data-testid="language-select">
<mat-option *ngFor="let l of availableLanguages | keyvalue" [value]="l.key">
<mat-option *ngFor="let l of availableLanguages | keyvalue" [value]="l.key" [title]="l.value">
{{ l.value }}
</mat-option>
</mat-select>
......
......@@ -12,7 +12,7 @@
<!-- champ à modifier -->
<mat-form-field class="select-form-field">
<mat-select [placeholder]="uitextVariable" [(value)]="variable">
<mat-option *ngFor="let v of availableVariables" [value]="v.value">
<mat-option *ngFor="let v of availableVariables" [value]="v.value" [title]="v.label">
{{ v.label }}
</mat-option>
</mat-select>
......
......@@ -103,7 +103,7 @@
<mat-form-field>
<mat-select [placeholder]="uitextExtensionStrategy" [(value)]="selectedExtensionStrategy"
data-testid="variable-extension-strategy-select">
<mat-option *ngFor="let e of extensionStrategies" [value]="e.value">
<mat-option *ngFor="let e of extensionStrategies" [value]="e.value" [title]="e.label">
{{ e.label }}
</mat-option>
</mat-select>
......
<mat-form-field>
<mat-select [id]="selectId" [placeholder]="label" [(value)]="selectedValue">
<mat-option *ngFor="let e of entries" [value]="e">
<mat-option *ngFor="let e of entries" [value]="e" [title]="entryLabel(e)">
{{ entryLabel(e) }}
</mat-option>
</mat-select>
......
......@@ -2,7 +2,7 @@
<div fxFlex="1 1 100%">
<mat-form-field>
<mat-select id="pab-variating-element" [placeholder]="label" [(value)]="selectedValue">
<mat-option *ngFor="let e of entries" [value]="e">
<mat-option *ngFor="let e of entries" [value]="e" [title]="entryLabel(e)">
{{ entryLabel(e) }}
</mat-option>
</mat-select>
......
......@@ -89,7 +89,7 @@
<mat-select #selectWidget *ngIf="isSelect(cell)" [value]="cell.modelValue"
(selectionChange)="loiDebitSelected($event, cell)">
<mat-option *ngFor="let opt of cell.options" [value]="opt.value">
<mat-option *ngFor="let opt of cell.options" [value]="opt.value" [title]="opt.label">
{{ opt.label }}
</mat-option>
</mat-select>
......
<mat-form-field>
<mat-select [id]="selectId" [name]="selectId" [placeholder]="param.title"
[(ngModel)]="currentLinkedParam" required>
<mat-option *ngFor="let e of linkableParams" [value]="e">
<mat-option *ngFor="let e of linkableParams" [value]="e" [title]="selectItemLabel(e)">
{{ selectItemLabel(e) }}
</mat-option>
</mat-select>
......
......@@ -32,6 +32,14 @@
}
}
/* ::ng-deep .mat-select-panel mat-option.mat-option {
height: unset;
}
::ng-deep .mat-option-text.mat-option-text {
white-space: normal;
} */
.status-icons-container {
position: absolute;
top: -8px;
......
......@@ -26,7 +26,7 @@
<div class="select-x-y-axis" fxLayout="row wrap" fxLayoutAlign="space-between start">
<mat-form-field fxFlex.gt-xs="1 0 auto" fxFlex.lt-sm="1 0 100%">
<mat-select id="selectX" [placeholder]="uitextSelectX" [(value)]="chartX">
<mat-option *ngFor="let x of availableChartAxis" [value]="x">
<mat-option *ngFor="let x of availableChartAxis" [value]="x" [title]="getChartAxisLabel(x)">
{{ getChartAxisLabel(x) }}
</mat-option>
</mat-select>
......@@ -35,7 +35,7 @@
<div fxHide.xs fxFlex.gt-xs="0 0 16px"></div>
<mat-form-field fxFlex.gt-xs="1 0 auto" fxFlex.lt-sm="1 0 100%">
<mat-select id="selectY" [placeholder]="uitextSelectY" [(value)]="chartY">
<mat-select id="selectY" [placeholder]="uitextSelectY" [(value)]="chartY" [title]="getChartAxisLabel(y)">
<mat-option *ngFor="let y of availableChartAxis" [value]="y">
{{ getChartAxisLabel(y) }}
</mat-option>
......
......@@ -5,7 +5,7 @@
<mat-form-field>
<mat-select [id]="selectId" [name]="selectId" [placeholder]="label" [(value)]="selectedValue" required>
<mat-option *ngFor="let e of entries" [value]="e">
<mat-option *ngFor="let e of entries" [value]="e" [title]="selectItemLabel(e)">
{{ selectItemLabel(e) }}
</mat-option>
</mat-select>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment