mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4579] Layout - RTL support (#4741)
* single contentAnimation state * fine tune contentAnimation state based on direction and position * tets * fix mock component inputs * use native direction attribute * update docs * pass direction to calculate sidenav layout * update test * fix unit test * remove dialogs directionality workaround * set document directionality service * remove context menu direction workaround * remove unneeded dependencies * remove direction style workaround * remove permission icon direction * remove sidenav layout direction attribute * update docs * update sidenav layout direction * test * remove document type * update test dependencies * clear storage before test * test * fix dl gap * try to fix Uncaught QuotaExceededError * fix QuotaExceededError * fix tests * fix tests
This commit is contained in:
committed by
Eugenio Romano
parent
f3e90298e6
commit
9cf6f5519c
@@ -23,14 +23,14 @@ export const sidenavAnimation: AnimationTriggerMetadata = trigger('sidenavAnimat
|
||||
transition('compact <=> expanded', animate('0.4s cubic-bezier(0.25, 0.8, 0.25, 1)'))
|
||||
]);
|
||||
|
||||
export const contentAnimationLeft: AnimationTriggerMetadata = trigger('contentAnimationLeft', [
|
||||
state('expanded', style({ 'margin-left': '{{ margin }}px' }), { params : { margin: 0 } }),
|
||||
state('compact', style({'margin-left': '{{ margin }}px' }), { params : { margin: 0 } }),
|
||||
transition('expanded <=> compact', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)'))
|
||||
]);
|
||||
|
||||
export const contentAnimationRight: AnimationTriggerMetadata = trigger('contentAnimationRight', [
|
||||
state('expanded', style({ 'margin-right': '{{ margin }}px' }), { params : { margin: 0 } }),
|
||||
state('compact', style({'margin-right': '{{ margin }}px' }), { params : { margin: 0 } }),
|
||||
export const contentAnimation: AnimationTriggerMetadata = trigger('contentAnimationLeft', [
|
||||
state('expanded', style({
|
||||
'margin-left': '{{ margin-left }}px',
|
||||
'margin-right': '{{ margin-right }}px'
|
||||
}), { params: { 'margin-left': 0, 'margin-right': 0 } }),
|
||||
state('compact', style({
|
||||
'margin-left': '{{ margin-left }}px',
|
||||
'margin-right': '{{ margin-right }}px'
|
||||
}), { params: { 'margin-left': 0, 'margin-right': 0 } }),
|
||||
transition('expanded <=> compact', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)'))
|
||||
]);
|
||||
|
Reference in New Issue
Block a user