Skip to content

Ensure Previewers popup is visible across themes#3080

Merged
RunDevelopment merged 1 commit intoPrismJS:masterfrom
hoonweiting:3074-previewers-popup
Sep 15, 2021
Merged

Ensure Previewers popup is visible across themes#3080
RunDevelopment merged 1 commit intoPrismJS:masterfrom
hoonweiting:3074-previewers-popup

Conversation

@hoonweiting
Copy link
Copy Markdown
Contributor

Some themes set a positive z-index for some of their parts, such as the .tokens in Twilight. This makes the Previewers popup appear underneath the code, which is silly. This PR sets a higher z-index for the popup itself (10), so theme creators can still play around with z-index in their themes, without obscuring the popup if the Previewers plugin were to be used.

This closes #3074.

@github-actions
Copy link
Copy Markdown

No JS Changes

Generated by 🚫 dangerJS against a611c13

@hoonweiting
Copy link
Copy Markdown
Contributor Author

I kinda forgot this isn't prism-themes, so I'm not sure if I need to run npm run build?

@RunDevelopment RunDevelopment merged commit c7b6a7f into PrismJS:master Sep 15, 2021
@RunDevelopment
Copy link
Copy Markdown
Member

Thank you for contributing @hoonweiting!

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.

Code appears on top of Previewers popup when Twilight theme is used

2 participants