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

Add proper opening/opened/closing/closed events & fix events docs #1914

Merged
merged 1 commit into from
May 4, 2021

Conversation

skjnldsv
Copy link
Contributor

@skjnldsv skjnldsv commented May 3, 2021

Because sometimes we need to wait for the sidebar to really be opened, let's add proper events.

Will help fix viewer tests that waits for the Sidebar to finish open


Example (animation duration changed for this screencast)
Peek 03-05-2021 15-20

@skjnldsv skjnldsv added enhancement New feature or request 3. to review Waiting for reviews feature: app-sidebar Related to the app-sidebar component labels May 3, 2021
@skjnldsv skjnldsv added this to the 4.0.0 milestone May 3, 2021
@skjnldsv skjnldsv self-assigned this May 3, 2021
@skjnldsv skjnldsv force-pushed the enh/AppSidebar-event branch 2 times, most recently from d5e95a7 to 8225e17 Compare May 3, 2021 13:25
Comment on lines -715 to -731

.fade-leave-active,
.fade-enter-active {
position: absolute;
top: 0;
left: 0;
width: 100%;
transition-duration: var(--animation-quick);
transition-property: opacity;
opacity: $opacity_full;
}

.fade-enter,
.fade-leave-to {
opacity: 0;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed unused transition

@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 3, 2021

/backport to stable3

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 3, 2021

Fix eslint

@raimund-schluessler
Copy link
Contributor

@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 3, 2021

@skjnldsv Wanna use this PR to also submit the event for closing the title edit (#1288 (comment))?

Not really, I don't know the planned outcome nor usage of this one, so I figured I wanted to stay safe and not dive into too much as I'm already drowning 😅

Copy link
Contributor

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

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

Nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request feature: app-sidebar Related to the app-sidebar component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants