Skip to content
Snippets Groups Projects
Commit ab53045c authored by Florent Poittevin's avatar Florent Poittevin Committed by Alicia.DeDiosFuente
Browse files

style: button clear all filter

parent fdcbe46b
No related branches found
No related tags found
1 merge request!110feat: clear filter button for tables
<div class="data-table">
<div *ngIf="isFilterApplied()">
<mat-icon class="clear-filter"
[matTooltip]="'table.clear' | translate"
[matTooltipPosition]="'right'"
(click)="clearFilters()"
>clear</mat-icon>
<div class="clear-filter-wrapper">
<button *ngIf="isFilterApplied()"
mat-icon-button
mat-button
class="clear-filter"
(click)="clearFilters()"
[matTooltip]="'table.clear' | translate"
[matTooltipPosition]="'right'"
>
<mat-icon
>clear
</mat-icon>
</button>
</div>
<p-table
[columns]="columns"
......
......@@ -58,14 +58,18 @@ $invalidInputBorderColor: #ff0084;
$inputGroupTextColor: #444444;
.data-table {
.clear-filter {
color: $medium-light-grey;
font-size: $size-status-history-button;
width: $size-status-history-button;
height: $size-status-history-button;
right: 32px;
padding: 6px;
.clear-filter-wrapper {
width: 100%;
display: flex;
justify-content: flex-end;
height: 40px;
@include respond-to-smaller-than-breakpoint('sm') {
display: none;
}
}
.no-datas {
display: flex;
justify-content: center;
......
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