Skip to content

Conversation

tobi-or-not-tobi
Copy link
Contributor

When in an overlay, the pause overlay is behind the current overlay. With this fix, the pause-overlay moves up to the 1001 z-index and the overlay keycodes continue to work when an overlay is open.

Fixes #3766

css/reveal.scss Outdated
@@ -1073,7 +1073,7 @@ $controlsArrowAngleActive: 36deg;
background: black;
visibility: hidden;
opacity: 0;
z-index: 100;
z-index: 10001;
Copy link
Owner

Choose a reason for hiding this comment

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

Instead of bumping z-index up higher, can we leave it at 100 and move the overlay down to 99? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes totally, I had that before. The reason I switch to moving the pause overlay up, was that I assume the overlay function (begin generic) has potentially being customised by users at more places, and therefore a change to the z-index could harm quit a bit. At the same time, when user have overridden the z-index of the pause overlay already, this change will not affect them.

Either way, happy to follow your recommendation.

Copy link
Owner

Choose a reason for hiding this comment

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

It's a good consideration but let's go ahead and change that anyway. It's such a small change I doubt it will affect many people.

css/reveal.scss Outdated
@@ -1073,7 +1073,7 @@ $controlsArrowAngleActive: 36deg;
background: black;
visibility: hidden;
opacity: 0;
z-index: 10001;
z-index: 99;
Copy link
Owner

Choose a reason for hiding this comment

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

You changed the index of the pause overlay, but that should remain at 100.

The .r-overlay should move to 99 so that it appears below the pause screen.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry for that, pls review once more.

@hakimel hakimel merged commit 5c77e86 into hakimel:master Mar 24, 2025
1 check passed
@hakimel
Copy link
Owner

hakimel commented Mar 24, 2025

Looks good, thanks @tobi-or-not-tobi!

@hakimel
Copy link
Owner

hakimel commented Mar 28, 2025

This has been released in 5.2.1 🚀 https://github.com/hakimel/reveal.js/releases/tag/5.2.1

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.

Shortcuts work behind the scenes in overlay
2 participants