mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-10238] sr personal files close button lacks appropriate label (#11248)
* [ACS-10238] Fix screen reading clear icon for search filter and for searching for user for adding permissions * [ACS-10238] Fix screen reading remove icon for removing user or group from list to add permissions
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
"COMMON": {
|
"COMMON": {
|
||||||
"APPLY": "Apply",
|
"APPLY": "Apply",
|
||||||
"CANCEL": "Cancel",
|
"CANCEL": "Cancel",
|
||||||
"NAME": "Name"
|
"NAME": "Name",
|
||||||
|
"CLEAR": "Clear"
|
||||||
},
|
},
|
||||||
"ADF_VERSION_LIST": {
|
"ADF_VERSION_LIST": {
|
||||||
"ACTIONS": {
|
"ACTIONS": {
|
||||||
@@ -556,7 +557,8 @@
|
|||||||
"CLOSE-ACTION": "CANCEL",
|
"CLOSE-ACTION": "CANCEL",
|
||||||
"BASE-DIALOG-TITLE": "Search a group or people to add...",
|
"BASE-DIALOG-TITLE": "Search a group or people to add...",
|
||||||
"EVERYONE": "EVERYONE",
|
"EVERYONE": "EVERYONE",
|
||||||
"USER-GROUP-LIST": "User or Group List"
|
"USER-GROUP-LIST": "User or Group List",
|
||||||
|
"REMOVE_USER_GROUP": "Remove"
|
||||||
},
|
},
|
||||||
"COLUMN": {
|
"COLUMN": {
|
||||||
"NAME": "Users and Groups ({{ count }})",
|
"NAME": "Users and Groups ({{ count }})",
|
||||||
|
|||||||
+2
@@ -60,6 +60,8 @@
|
|||||||
class="adf-add-member-action"
|
class="adf-add-member-action"
|
||||||
[style.display]="entry.row.obj.readonly ? 'none': 'block'"
|
[style.display]="entry.row.obj.readonly ? 'none': 'block'"
|
||||||
(click)="onMemberDelete(entry.row.obj)"
|
(click)="onMemberDelete(entry.row.obj)"
|
||||||
|
[attr.aria-label]="'PERMISSION_MANAGER.ADD-PERMISSION.REMOVE_USER_GROUP' | translate"
|
||||||
|
[attr.title]="'PERMISSION_MANAGER.ADD-PERMISSION.REMOVE_USER_GROUP' | translate"
|
||||||
data-automation-id="adf-delete-permission-button">
|
data-automation-id="adf-delete-permission-button">
|
||||||
<mat-icon>highlight_off</mat-icon>
|
<mat-icon>highlight_off</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
+8
-6
@@ -10,16 +10,18 @@
|
|||||||
[attr.aria-label]="'PERMISSION_MANAGER.ADD-PERMISSION.SEARCH' | translate"
|
[attr.aria-label]="'PERMISSION_MANAGER.ADD-PERMISSION.SEARCH' | translate"
|
||||||
[value]="searchedWord"
|
[value]="searchedWord"
|
||||||
/>
|
/>
|
||||||
|
<button
|
||||||
<mat-icon
|
matSuffix
|
||||||
|
mat-icon-button
|
||||||
*ngIf="searchedWord?.length > 0"
|
*ngIf="searchedWord?.length > 0"
|
||||||
class="adf-permission-search-icon"
|
|
||||||
data-automation-id="adf-permission-clear-input"
|
data-automation-id="adf-permission-clear-input"
|
||||||
id="adf-permission-clear-input"
|
id="adf-permission-clear-input"
|
||||||
matSuffix
|
class="adf-permission-search-input-clear-button"
|
||||||
(click)="clearSearch()"
|
(click)="clearSearch()"
|
||||||
>clear
|
[attr.aria-label]="'COMMON.CLEAR' | translate"
|
||||||
</mat-icon>
|
[attr.title]="'COMMON.CLEAR' | translate">
|
||||||
|
<mat-icon class="adf-permission-search-icon">clear</mat-icon>
|
||||||
|
</button>
|
||||||
|
|
||||||
<mat-icon *ngIf="searchedWord?.length === 0" class="adf-permission-search-icon" data-automation-id="adf-permission-search-icon" matSuffix
|
<mat-icon *ngIf="searchedWord?.length === 0" class="adf-permission-search-icon" data-automation-id="adf-permission-search-icon" matSuffix
|
||||||
>search
|
>search
|
||||||
|
|||||||
+7
@@ -86,6 +86,13 @@ $search-result-height: calc(100% - 60px);
|
|||||||
color: var(--adf-theme-foreground-base-color);
|
color: var(--adf-theme-foreground-base-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.adf-permission-search-input-clear-button {
|
||||||
|
padding: 0;
|
||||||
|
width: 20px;
|
||||||
|
height: 32px;
|
||||||
|
margin-right: 1.5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -30,6 +30,7 @@ import { MatInputModule } from '@angular/material/input';
|
|||||||
import { TranslatePipe } from '@ngx-translate/core';
|
import { TranslatePipe } from '@ngx-translate/core';
|
||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
import { UserIconColumnComponent } from '../user-icon-column/user-icon-column.component';
|
import { UserIconColumnComponent } from '../user-icon-column/user-icon-column.component';
|
||||||
|
import { MatIconButton } from '@angular/material/button';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-add-permission-panel',
|
selector: 'adf-add-permission-panel',
|
||||||
@@ -42,7 +43,8 @@ import { UserIconColumnComponent } from '../user-icon-column/user-icon-column.co
|
|||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatListModule,
|
MatListModule,
|
||||||
UserIconColumnComponent,
|
UserIconColumnComponent,
|
||||||
SearchComponent
|
SearchComponent,
|
||||||
|
MatIconButton
|
||||||
],
|
],
|
||||||
templateUrl: './add-permission-panel.component.html',
|
templateUrl: './add-permission-panel.component.html',
|
||||||
styleUrls: ['./add-permission-panel.component.scss'],
|
styleUrls: ['./add-permission-panel.component.scss'],
|
||||||
|
|||||||
+3
-1
@@ -11,7 +11,9 @@
|
|||||||
*ngIf="value"
|
*ngIf="value"
|
||||||
matSuffix
|
matSuffix
|
||||||
(click)="clear()"
|
(click)="clear()"
|
||||||
class="adf-search-text-form-field-clear-button">
|
class="adf-search-text-form-field-clear-button"
|
||||||
|
[attr.aria-label]="'SEARCH.FILTER.ACTIONS.CLEAR' | translate"
|
||||||
|
[attr.title]="'SEARCH.FILTER.ACTIONS.CLEAR' | translate">
|
||||||
<mat-icon>close</mat-icon>
|
<mat-icon>close</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|||||||
Reference in New Issue
Block a user