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

Make UI Shell HeaderAction panel transition configurable #419

Merged
merged 4 commits into from
Nov 27, 2020

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Nov 27, 2020

#384

Features

  • Configure the UI Shell HeaderAction panel slide transition using the transition prop; by default, the duration is 200ms

    Custom slide transition parameters:

    <script>
      import { quintOut } from "svelte/easing";
    </script>
    
    <HeaderAction transition="{{ duration: 1200, delay: 200, easing: quintOut }}">...</HeaderAction>

    Disabled:

    <HeaderAction transition="{false}">...</HeaderAction>

Fixes

  • remove the fly transition from HamburgerMenu

Documentation

  • demo different transitions in "Header with app switcher" example in UI Shell

@vercel
Copy link

vercel bot commented Nov 27, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/carbon-svelte/carbon-components-svelte/p8zvbga5k
✅ Preview: https://carbon-components-svelte-git-configure-transitions.carbon-svelte.vercel.app

@metonym metonym merged commit f4c940d into master Nov 27, 2020
@metonym metonym deleted the configure-transitions branch November 27, 2020 14:26
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.

1 participant