fix issues with the icons column in DT/DL (#2277)

* fix issues with the icons column in DT/DL

- fix issue with screen reader label not being translated
- fix issue with column taking the width of the screen reader label

* fix custom selection icon position
This commit is contained in:
Denys Vuika
2017-09-01 15:04:06 +01:00
committed by Mario Romano
parent 480bef7ad9
commit 7f720fda3a
3 changed files with 26 additions and 27 deletions

View File

@@ -45,7 +45,7 @@ adf-document-list >>> adf-datatable tr.is-selected .image-table-cell::before {
top: 50%;
left: 50%;
margin-top: -16px;
margin-left: -28px;
margin-left: -12px;
border-radius: 100%;
background: #00bcd4;
}

View File

@@ -23,7 +23,7 @@
role="button"
tabindex="0"
title="{{ col.title }}">
<span *ngIf="col.srTitle" class="sr-only">{{col.srTitle}}</span>
<span *ngIf="col.srTitle" class="sr-only">{{ col.srTitle | translate }}</span>
<span *ngIf="col.title">{{ col.title | translate}}</span>
</th>
<!-- Actions (right) -->

View File

@@ -222,12 +222,9 @@
display: block;
}
}
}
/* Utils */
/* [Accessibility] For screen reader only */
:host .sr-only {
.sr-only {
position: absolute;
width: 1px;
height: 1px;
@@ -238,6 +235,7 @@
border: 0;
}
/* Utils */
.hidden {
display: none;
}
@@ -254,6 +252,7 @@
display: none;
}
}
}
.adf-upload__dragging {
& > td {