mirror of https://github.com/Chocobozzz/PeerTube
Fix video filter pastille accessibility
parent
f027bdb4b0
commit
77c002f07f
|
@ -23,8 +23,8 @@
|
||||||
<my-global-icon iconName="chevrons-up"></my-global-icon>
|
<my-global-icon iconName="chevrons-up"></my-global-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<div
|
||||||
*ngFor="let activeFilter of filters.getActiveFilters()" (click)="resetFilter(activeFilter.key, activeFilter.canRemove)"
|
*ngFor="let activeFilter of filters.getActiveFilters()"
|
||||||
class="active-filter pastille button-unstyle" [ngClass]="{ 'can-remove': activeFilter.canRemove }" [title]="getFilterTitle(activeFilter.canRemove)"
|
class="active-filter pastille button-unstyle" [ngClass]="{ 'can-remove': activeFilter.canRemove }" [title]="getFilterTitle(activeFilter.canRemove)"
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
|
@ -33,8 +33,14 @@
|
||||||
<ng-container *ngIf="activeFilter.value">: {{ activeFilter.value }}</ng-container>
|
<ng-container *ngIf="activeFilter.value">: {{ activeFilter.value }}</ng-container>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<my-global-icon *ngIf="activeFilter.canRemove" iconName="cross"></my-global-icon>
|
<button
|
||||||
</button>
|
*ngIf="activeFilter.canRemove" type="button" class="remove-button"
|
||||||
|
(click)="resetFilter(activeFilter.key, activeFilter.canRemove)"
|
||||||
|
i18n-title title="Remove this filter"
|
||||||
|
>
|
||||||
|
<my-global-icon iconName="cross"></my-global-icon>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-select
|
<ng-select
|
||||||
|
|
|
@ -94,11 +94,16 @@
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
my-global-icon {
|
> .remove-button {
|
||||||
@include margin-left(10px);
|
@include margin-left(10px);
|
||||||
|
|
||||||
width: 16px;
|
border: 0;
|
||||||
color: pvar(--greyForegroundColor);
|
padding: 0;
|
||||||
|
|
||||||
|
my-global-icon {
|
||||||
|
width: 16px;
|
||||||
|
color: pvar(--greyForegroundColor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue