Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasa-Nataliya authored and AnukritiGL committed Sep 2, 2023
1 parent c363b3e commit d4e1092
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.adf-categories-management {
padding-top: 12px;

.adf-category-name-field {
display: flex;
justify-content: space-between;
Expand All @@ -26,7 +26,7 @@
.mat-form-field-wrapper {
width: 100%;
}

.mat-form-field-appearance-fill .mat-form-field-flex {
background: none;
}
Expand All @@ -53,7 +53,6 @@
}

.adf-categories-list {

.mat-list-base .mat-list-item,
.mat-list-base .mat-list-option {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
}
}

.app-metadata-tab .adf-metadata-properties .mat-expansion-panel {
border: 1px solid var(--adf-metadata-property-panel-border-color);
border-radius: 12px;
margin-bottom: 12px;
}

.acs-details-container {
.mat-tab-body-content {
.adf-metadata-properties {
Expand All @@ -130,9 +136,3 @@
box-shadow: none;
}
}

.app-metadata-tab .adf-metadata-properties .mat-expansion-panel {
border: 1px solid var(--adf-metadata-property-panel-border-color);
border-radius: 12px;
margin-bottom: 12px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,9 @@ describe('ContentMetadataComponent', () => {
expect(component.categoriesPanelState).toBe(true);
expect(component.editable).toBe(false);
expect(component.editableTags).toBe(false);
});
});

it('should toggle group editable', () => {
it('should toggle group editable', () => {
const eventMock = new MouseEvent('click');
const group: CardViewGroup = {
editable: false, expanded: false,
Expand All @@ -459,7 +459,7 @@ describe('ContentMetadataComponent', () => {
expect(component.editable).toBe(false);
expect(component.editableTags).toBe(false);
expect(component.editableCategories).toBe(false);
});
});
});

describe('toggleEditMode', () => {
Expand Down Expand Up @@ -950,13 +950,9 @@ describe('ContentMetadataComponent', () => {
component.displayAspect = 'EXIF';
component.expanded = true;
component.displayEmpty = true;

fixture.detectChanges();
await fixture.whenStable();

let defaultProp = queryDom(fixture);
let exifProp = queryDom(fixture, 'EXIF');
let customProp = queryDom(fixture, 'CUSTOM');
expect(defaultProp.componentInstance.expanded).toBeFalsy();

component.displayAspect = 'CUSTOM';
Expand All @@ -965,23 +961,14 @@ describe('ContentMetadataComponent', () => {
await fixture.whenStable();

defaultProp = queryDom(fixture);
exifProp = queryDom(fixture, 'EXIF');
customProp = queryDom(fixture, 'CUSTOM');
expect(defaultProp.componentInstance.expanded).toBeFalsy();
expect(exifProp.componentInstance.expanded).toBeFalsy();
expect(customProp.componentInstance.expanded).toBeTruthy();

component.displayAspect = 'Properties';

fixture.detectChanges();
await fixture.whenStable();

defaultProp = queryDom(fixture);
exifProp = queryDom(fixture, 'EXIF');
customProp = queryDom(fixture, 'CUSTOM');
expect(defaultProp.componentInstance.expanded).toBeTruthy();
expect(exifProp.componentInstance.expanded).toBeFalsy();
expect(customProp.componentInstance.expanded).toBeFalsy();
});

it('should not expand anything if input is wrong', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ adf-tags-creator {
padding-right: 3px;
font-size: 14px;
}

.mat-form-field-appearance-fill .mat-form-field-flex {
background: none;
}

.mat-form-field-appearance-fill .mat-form-field-infix {
padding: 0;
}
Expand All @@ -56,7 +56,7 @@ adf-tags-creator {
align-items: center;
display: flex;
padding: 0 12px;

.mat-form-field-underline {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion stylelint-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"max-line-length": 240,
"linebreaks": "unix",
"selector-class-pattern": [
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page)",
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page|acs)",
{
"resolveNestedSelectors": true
}
Expand Down

0 comments on commit d4e1092

Please sign in to comment.