mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ACS-5342] Accessibility fixes for filters and facets (#8626)
This commit is contained in:
parent
7eebdb8b11
commit
66b5ca90dc
@ -25,6 +25,7 @@
|
|||||||
<div #menuContainer [attr.data-automation-id]="'search-field-' + field.label">
|
<div #menuContainer [attr.data-automation-id]="'search-field-' + field.label">
|
||||||
<adf-search-filter-menu-card (click)="$event.stopPropagation()"
|
<adf-search-filter-menu-card (click)="$event.stopPropagation()"
|
||||||
(keydown.tab)="$event.stopPropagation();"
|
(keydown.tab)="$event.stopPropagation();"
|
||||||
|
(keydown.shift.tab)="$event.stopPropagation()"
|
||||||
(close)="menuTrigger.closeMenu()">
|
(close)="menuTrigger.closeMenu()">
|
||||||
<ng-container ngProjectAs="filter-title">
|
<ng-container ngProjectAs="filter-title">
|
||||||
{{ field.label | translate }}
|
{{ field.label | translate }}
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
<div class="adf-search-filter-menu-card">
|
<div class="adf-search-filter-menu-card">
|
||||||
<div class="adf-search-filter-title">
|
<div class="adf-search-filter-title">
|
||||||
<ng-content select="filter-title"></ng-content>
|
<ng-content select="filter-title"></ng-content>
|
||||||
<mat-icon class="adf-search-filter-title-action"
|
<button mat-icon-button
|
||||||
role="button"
|
class="adf-search-filter-title-action"
|
||||||
aria-hidden="false"
|
aria-hidden="false"
|
||||||
[attr.aria-label]="'SEARCH.FILTER.BUTTONS.CLOSE' | translate"
|
[attr.aria-label]="'SEARCH.FILTER.BUTTONS.CLOSE' | translate"
|
||||||
(click)="onClose()"
|
(click)="onClose()"
|
||||||
[matTooltip]="'SEARCH.FILTER.BUTTONS.CLOSE' | translate">
|
[matTooltip]="'SEARCH.FILTER.BUTTONS.CLOSE' | translate">
|
||||||
close
|
<mat-icon>
|
||||||
</mat-icon>
|
close
|
||||||
|
</mat-icon>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
|
@ -3,12 +3,13 @@
|
|||||||
background: var(--adf-theme-background-card-color);
|
background: var(--adf-theme-background-card-color);
|
||||||
|
|
||||||
.adf-search-filter-title {
|
.adf-search-filter-title {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
padding: 16px 12px;
|
padding: 16px 12px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
flex: 1 1 auto;
|
|
||||||
font-size: var(--theme-body-1-font-size);
|
font-size: var(--theme-body-1-font-size);
|
||||||
letter-spacing: 0.15px;
|
letter-spacing: 0.15px;
|
||||||
line-height: 24px;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-style: inherit;
|
font-style: inherit;
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
<div #menuContainer [attr.data-automation-id]="'search-field-' + category.name">
|
<div #menuContainer [attr.data-automation-id]="'search-field-' + category.name">
|
||||||
<adf-search-filter-menu-card (click)="$event.stopPropagation()"
|
<adf-search-filter-menu-card (click)="$event.stopPropagation()"
|
||||||
(keydown.tab)="$event.stopPropagation();"
|
(keydown.tab)="$event.stopPropagation();"
|
||||||
|
(keydown.shift.tab)="$event.stopPropagation()"
|
||||||
(close)="menuTrigger.closeMenu()">
|
(close)="menuTrigger.closeMenu()">
|
||||||
|
|
||||||
<ng-container ngProjectAs="filter-title">
|
<ng-container ngProjectAs="filter-title">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user