mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-4839] Document List - column name link accessibility (#5011)
* accessibility * rename translation key * translation key name * link name component accessibility * generic translation
This commit is contained in:
parent
e5f7d2f304
commit
f35f0466e6
@ -33,7 +33,15 @@ import { takeUntil } from 'rxjs/operators';
|
||||
@Component({
|
||||
selector: 'adf-library-name-column',
|
||||
template: `
|
||||
<span class="adf-datatable-cell-value" title="{{ displayTooltip$ | async }}" (click)="onClick()">
|
||||
<span
|
||||
role="link"
|
||||
[attr.aria-label]="'NAME_COLUMN_LINK.ACCESSIBILITY.ARIA_LABEL' | translate:{
|
||||
name: displayText$ | async
|
||||
}"
|
||||
class="adf-datatable-cell-value"
|
||||
title="{{ displayTooltip$ | async }}"
|
||||
(click)="onClick()">
|
||||
|
||||
{{ displayText$ | async }}
|
||||
</span>
|
||||
`,
|
||||
|
@ -33,7 +33,15 @@ import { takeUntil } from 'rxjs/operators';
|
||||
@Component({
|
||||
selector: 'adf-name-column',
|
||||
template: `
|
||||
<span class="adf-datatable-cell-value" title="{{ node | adfNodeNameTooltip }}" (click)="onClick()">
|
||||
<span
|
||||
role="link"
|
||||
[attr.aria-label]="'NAME_COLUMN_LINK.ACCESSIBILITY.ARIA_LABEL' | translate:{
|
||||
name: displayText$ | async
|
||||
}"
|
||||
class="adf-datatable-cell-value"
|
||||
title="{{ node | adfNodeNameTooltip }}"
|
||||
(click)="onClick()">
|
||||
|
||||
{{ displayText$ | async }}
|
||||
</span>
|
||||
`,
|
||||
|
@ -375,5 +375,10 @@
|
||||
"BREADCRUMB": "Breadcrumb",
|
||||
"CURRENT_PAGE": "page"
|
||||
}
|
||||
},
|
||||
"NAME_COLUMN_LINK": {
|
||||
"ACCESSIBILITY": {
|
||||
"ARIA_LABEL": "Open {{ name }}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user