mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-2499] DocumentList - custom name column link does not have a role (#1188)
* custom element as accessibility link * fix focus outline * internationalization key * folder link aria-label * use not folder evaluation for shared files
This commit is contained in:
parent
ee93ac3e0f
commit
2aa44ac6d8
@ -5,6 +5,16 @@
|
||||
}"
|
||||
>
|
||||
<span
|
||||
role="link"
|
||||
[attr.aria-label]="
|
||||
(isFile()
|
||||
? 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FILE_LINK_ARIA_LABEL'
|
||||
: 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FOLDER_LINK_ARIA_LABEL')
|
||||
| translate
|
||||
: {
|
||||
name: displayText$ | async
|
||||
}
|
||||
"
|
||||
class="adf-datatable-cell-value"
|
||||
title="{{ node | adfNodeNameTooltip }}"
|
||||
(click)="onClick()"
|
||||
|
@ -16,4 +16,8 @@
|
||||
.aca-custom-name-column {
|
||||
display: block;
|
||||
align-items: center;
|
||||
|
||||
.adf-datatable-cell-value {
|
||||
margin: 0 4px;
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ export class CustomNameColumnComponent extends NameColumnComponent
|
||||
}
|
||||
|
||||
isFile(): boolean {
|
||||
return this.node && this.node.entry && this.node.entry.isFile;
|
||||
return this.node && this.node.entry && !this.node.entry.isFolder;
|
||||
}
|
||||
|
||||
isFileWriteLocked(): boolean {
|
||||
|
@ -499,5 +499,11 @@
|
||||
"TOOLTIP": "Upload new version"
|
||||
}
|
||||
}
|
||||
},
|
||||
"CUSTOM_NAME_COLUMN": {
|
||||
"ACCESSIBILITY": {
|
||||
"FILE_LINK_ARIA_LABEL": "View file {{ name }}",
|
||||
"FOLDER_LINK_ARIA_LABEL": "Open {{ name }} folder"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user