[ACA-4709] ensure all components have encapsulation set to none (#3271)

* ACA-4709 Added use-none-component-view-encapsulation eslint rule and correct part of components

* ACA-4709 More changes for encapsulation

* ACA-4709 Installed eslint-plugin-eslint-angular dependency

* ACA-4709 Corrected rest places with did not use none encapsulation

* ACA-4709 Exclude process inline templates plugin from spec files
This commit is contained in:
AleksanderSklorz
2023-06-13 12:38:41 +02:00
committed by GitHub
parent 22444744f1
commit cc13551d2f
26 changed files with 121 additions and 80 deletions

View File

@@ -1,4 +1,6 @@
adf-about {
padding: 10px;
width: 100%;
app-about-page {
adf-about {
padding: 10px;
width: 100%;
}
}

View File

@@ -22,7 +22,7 @@
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
*/
import { Component, OnInit, inject } from '@angular/core';
import { Component, inject, OnInit, ViewEncapsulation } from '@angular/core';
import { DEV_MODE_TOKEN } from './dev-mode.tokens';
import { AppExtensionService } from '@alfresco/adf-extensions';
import { AboutModule, AppConfigService, AuthenticationService, RepositoryInfo } from '@alfresco/adf-core';
@@ -40,7 +40,8 @@ import { MatButtonModule } from '@angular/material/button';
imports: [CommonModule, TranslateModule, AboutModule, PageLayoutModule, RouterModule, MatIconModule, MatButtonModule],
selector: 'app-about-page',
templateUrl: './about.component.html',
styleUrls: ['./about.component.scss']
styleUrls: ['./about.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class AboutComponent implements OnInit {
private authService = inject(AuthenticationService);