Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add animationMode configuration #905

Merged
merged 4 commits into from
Nov 11, 2019
Merged

Conversation

ilhan007
Copy link
Member

  • Add animationMode to configure the degree of components animations.
    Available options are: full (by default), basic, minimal and none,
    where full means all animations run without restrictions and none means all animations are off.
  • Switch on/off the ui5-panel toggle animation based on the animationMode.

- Add animationMode to configure the degree of components animations.
Available options are: 'full' (by default), 'basic', 'minimal', 'none'.
- switch on/off the ui5-panel toggle animation based on the 'animationMode'
@@ -0,0 +1,7 @@
const AnimationModes = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be AnimationMode (not modes), similar to ButtonType.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, done

Copy link
Contributor

@vladitasev vladitasev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the documentation about the default animation mode (Full) and also make sure it is enforced by the configuration if the user didn't supply it.

@@ -11,6 +11,7 @@ theme | sap_fiori_3, sap_belize, sap_belize_hcb | sap_fiori_3 |
language | en, de, es, etc... | en | Language to be used for translatable texts
[RTL](#rtl) | true, false | false | When true, sets global text direction to right-to-left
compactSize | true, false | false | When set, enforces compact density (smaller margins/paddings)
[animationMode](#animationMode) | full, basic, minimal, none | false | Defines the animation effects of the web components
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set the correct one

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ilhan007 ilhan007 merged commit c90e3b0 into master Nov 11, 2019
@ilhan007 ilhan007 deleted the chore-add-animation-config branch November 11, 2019 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants