mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
AAE-23556 Fix search text input component styles (#9895)
This commit is contained in:
parent
df8404e1b0
commit
54b34f513e
@ -27,13 +27,10 @@
|
|||||||
(ngModelChange)="inputChange($event)"
|
(ngModelChange)="inputChange($event)"
|
||||||
[searchAutocomplete]="searchAutocomplete ? searchAutocomplete : null"
|
[searchAutocomplete]="searchAutocomplete ? searchAutocomplete : null"
|
||||||
(keyup.enter)="searchSubmit($event)">
|
(keyup.enter)="searchSubmit($event)">
|
||||||
<button mat-icon-button matSuffix
|
<mat-icon *ngIf="canShowClearSearch()" matSuffix
|
||||||
data-automation-id="adf-clear-search-button"
|
data-automation-id="adf-clear-search-button"
|
||||||
class="adf-clear-search-button"
|
class="adf-clear-search-button"
|
||||||
*ngIf="canShowClearSearch()"
|
(mousedown)="resetSearch()">clear</mat-icon>
|
||||||
(mousedown)="resetSearch()">
|
|
||||||
<mat-icon>clear</mat-icon>
|
|
||||||
</button>
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,12 +21,9 @@
|
|||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-input-form-field-divider {
|
&-clear-search-button {
|
||||||
#{$mat-line-ripple} {
|
font-size: var(--theme-button-font-size);
|
||||||
background-color: var(--adf-theme-primary-50);
|
cursor: pointer;
|
||||||
}
|
|
||||||
|
|
||||||
font-size: var(--theme-subheading-2-font-size);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +99,6 @@ export class SearchTextInputComponent implements OnInit, OnDestroy {
|
|||||||
@Input()
|
@Input()
|
||||||
placeholder: string = '';
|
placeholder: string = '';
|
||||||
|
|
||||||
|
|
||||||
/** Label text to show over the input field */
|
/** Label text to show over the input field */
|
||||||
@Input()
|
@Input()
|
||||||
label: string = '';
|
label: string = '';
|
||||||
@ -144,11 +143,11 @@ export class SearchTextInputComponent implements OnInit, OnDestroy {
|
|||||||
animationStates: SearchAnimationDirection = {
|
animationStates: SearchAnimationDirection = {
|
||||||
ltr: {
|
ltr: {
|
||||||
active: { value: 'active', params: { 'margin-left': 13 } },
|
active: { value: 'active', params: { 'margin-left': 13 } },
|
||||||
inactive: { value: 'inactive', params: { transform: 'translateX(82%)' } }
|
inactive: { value: 'inactive', params: { transform: 'translateX(95%)' } }
|
||||||
},
|
},
|
||||||
rtl: {
|
rtl: {
|
||||||
active: { value: 'active', params: { 'margin-right': 13 } },
|
active: { value: 'active', params: { 'margin-right': 13 } },
|
||||||
inactive: { value: 'inactive', params: { transform: 'translateX(-82%)' } }
|
inactive: { value: 'inactive', params: { transform: 'translateX(-95%)' } }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -202,11 +201,11 @@ export class SearchTextInputComponent implements OnInit, OnDestroy {
|
|||||||
if (this.dir === 'ltr') {
|
if (this.dir === 'ltr') {
|
||||||
return this.subscriptAnimationState.value === 'inactive'
|
return this.subscriptAnimationState.value === 'inactive'
|
||||||
? { value: 'active', params: { 'margin-left': 13 } }
|
? { value: 'active', params: { 'margin-left': 13 } }
|
||||||
: { value: 'inactive', params: { transform: 'translateX(82%)' } };
|
: { value: 'inactive', params: { transform: 'translateX(95%)' } };
|
||||||
} else {
|
} else {
|
||||||
return this.subscriptAnimationState.value === 'inactive'
|
return this.subscriptAnimationState.value === 'inactive'
|
||||||
? { value: 'active', params: { 'margin-right': 13 } }
|
? { value: 'active', params: { 'margin-right': 13 } }
|
||||||
: { value: 'inactive', params: { transform: 'translateX(-82%)' } };
|
: { value: 'inactive', params: { transform: 'translateX(-95%)' } };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user