mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-25888 Offset SearchTextInput expansion based on search icon width (#10213)
* AAE-25888 use negative margin and transform by full width * AAE-25888 update tests * AAE-25888 add adf-search-button-inactive to manage search icon offset * AAE-25888 remove scss variable * AAE-25888 adjust peer unit tests
This commit is contained in:
@@ -415,13 +415,13 @@ describe('SearchControlComponent', () => {
|
||||
it('should have positive transform translation', () => {
|
||||
userPreferencesService.setWithoutStore('textOrientation', 'ltr');
|
||||
fixture.detectChanges();
|
||||
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(85%)');
|
||||
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(100%)');
|
||||
});
|
||||
|
||||
it('should have negative transform translation ', () => {
|
||||
userPreferencesService.setWithoutStore('textOrientation', 'rtl');
|
||||
fixture.detectChanges();
|
||||
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(-85%)');
|
||||
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(-100%)');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user