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

Move the infinite overlay to the same source order as regular overlays #7923

Merged
merged 3 commits into from Apr 10, 2020
Merged

Move the infinite overlay to the same source order as regular overlays #7923

merged 3 commits into from Apr 10, 2020

Conversation

BatJan
Copy link
Contributor

@BatJan BatJan commented Apr 10, 2020

Prerequisites

  • I have added steps to test this contribution in the description below

Description

I have just decided to close #4526 without having it merged in it's current state since the stuff I made no longer works.

Therefore I decided to have a deeper look at some of the root causes to some of the issues I faced when trying to implement the focus lock. One of them being that regular overlays and infinite overlays got triggered from different places within the source code meaning I had to do so weird little hacks to get it working. Move the infinite overlay out of the source order it will be a lot simpler to implement a well working focus lock - So this is what I have done with this PR 😃

The <umb-editors> component has been moved to the same level in the source code as the <umb-overlay> component, since it's an overlay too really. I have also removed the <div class="umb-editor__overlay" ng-if="infiniteMode"></div> and added <umb-backdrop ng-if="backdrop.show || infiniteMode">...<div> to make the backdrop behave much more aligned with what you would expect from an overlay meaning that you now can't click on the content tree using your mosue - Just like with regular overlays making the overall experience much more consistent and improves the UX.

When this PR is hopefully accepted I will start looking at adding the focus lock again since this change will make it a lot easier to achieve 😄

Visually this is what it acts like before and after

Before
umb-editors-before

After
umb-editors-after

@BatJan BatJan marked this pull request as ready for review April 10, 2020 11:19
@nul800sebastiaan nul800sebastiaan merged commit 3e9c759 into umbraco:v8/contrib Apr 10, 2020
@nul800sebastiaan
Copy link
Member

Sweet, works well, thanks @BatJan! ⭐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants