diff --git a/demo-shell-ng2/src/app/components/datatable/datatable.component.css b/demo-shell-ng2/src/app/components/datatable/datatable.component.scss similarity index 100% rename from demo-shell-ng2/src/app/components/datatable/datatable.component.css rename to demo-shell-ng2/src/app/components/datatable/datatable.component.scss diff --git a/demo-shell-ng2/src/app/components/datatable/datatable.component.ts b/demo-shell-ng2/src/app/components/datatable/datatable.component.ts index 02310a023e..8c03f37976 100644 --- a/demo-shell-ng2/src/app/components/datatable/datatable.component.ts +++ b/demo-shell-ng2/src/app/components/datatable/datatable.component.ts @@ -23,7 +23,7 @@ import { Observable } from 'rxjs/Rx'; @Component({ selector: 'datatable', templateUrl: './datatable.component.html', - styleUrls: ['./datatable.component.css'] + styleUrls: ['./datatable.component.scss'] }) export class DataTableComponent { diff --git a/demo-shell-ng2/src/app/components/files/files.component.scss b/demo-shell-ng2/src/app/components/files/files.component.scss index 9a31f63c36..1e06fcd5e0 100644 --- a/demo-shell-ng2/src/app/components/files/files.component.scss +++ b/demo-shell-ng2/src/app/components/files/files.component.scss @@ -22,10 +22,6 @@ $minimumDocumentListWidth: 425px; height:900px; } -adf-document-list ::ng-deep adf-datatable tr.is-selected .image-table-cell { - position: relative; -} - adf-document-list ::ng-deep adf-datatable tr.document-list__create { background: green !important; } @@ -34,22 +30,8 @@ adf-document-list ::ng-deep adf-datatable tr.document-list__disable { background: red !important; } -adf-document-list ::ng-deep adf-datatable tr.is-selected .image-table-cell::before { - content: "\E876"; /* "done" */ - font-family: "Material Icons"; - font-size: 24px; - line-height: 32px; - text-align: center; - color: white; - position: absolute; - width: 32px; - height: 32px; - top: 50%; - left: 50%; - margin-top: -16px; - margin-left: -12px; - border-radius: 100%; - background: #00bcd4; +adf-document-list ::ng-deep adf-datatable > table > tbody > tr.is-selected > td.adf-data-table-cell.adf-data-table-cell--image.image-table-cell > div > div > mat-icon > svg { + fill: #00bcd4; } .adf-site-container-style { diff --git a/demo-shell-ng2/src/index.html b/demo-shell-ng2/src/index.html index c975e830ee..ee8117b5f4 100644 --- a/demo-shell-ng2/src/index.html +++ b/demo-shell-ng2/src/index.html @@ -11,34 +11,29 @@
diff --git a/docs/data-column.component.md b/docs/data-column.component.md index 65dd8a38d0..ed7ecef344 100644 --- a/docs/data-column.component.md +++ b/docs/data-column.component.md @@ -204,26 +204,8 @@ Let's start by assigning an "image-table-cell" class to the thumbnail column: Now your application can define styles to change the content of the column based on conditions such as the selection state: ```css -adf-document-list ::ng-deep adf-datatable tr.is-selected .image-table-cell { - position: relative; -} - -adf-document-list ::ng-deep adf-datatable tr.is-selected .image-table-cell::before { - content: "\E876"; /* "done" */ - font-family: "Material Icons"; - font-size: 24px; - line-height: 32px; - text-align: center; - color: white; - position: absolute; - width: 32px; - height: 32px; - top: 50%; - left: 50%; - margin-top: -16px; - margin-left: -14px; - border-radius: 100%; - background: #00bcd4; +adf-document-list ::ng-deep adf-datatable > table > tbody > tr.is-selected > td.adf-data-table-cell.adf-data-table-cell--image.image-table-cell > div > div > mat-icon > svg { + fill: #00bcd4; } ``` diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/attach/attach.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/attach/attach.widget.html index 4f754f1986..ea31aecc0b 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/attach/attach.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/attach/attach.widget.html @@ -3,7 +3,7 @@