question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Beta: preview panel covered by flash message

See original GitHub issue

When going through the challenges, the JavaScript is disabled. Execute code to enable flash message constantly shows up in the preview panel covering the preview itself. There’s no way to close it - it doesn’t fade out. It’s really annoying, and it’s pretty much on every challenge that shows the preview.


screenshot from 2018-03-10 09-45-07


Potential solutions:

Add the ability to close the message. Fade it out after a second or so. Push the preview content down.


It looks like something related to this was recently worked on #16804

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
QuincyLarsoncommented, Mar 16, 2018

I also vote to remove the message, and code locking in almost all cases except the one discussed on https://github.com/freeCodeCamp/freeCodeCamp/issues/16565

1reaction
BerkeleyTruecommented, Mar 13, 2018

That specific message is to indicate to the user that no js is running in the preview window. This is prevent uncompleted js code from crashing the preview window while the user is writing out their code (fun fact, writing “function” to an iframe script tag used to crash the client). When I originally wrote that flash message it was a simple span tag with text that rendered in the preview window but above (top not z) the user content.

This seems to be a bug introduced downstream when styling was applied to the message. Changing the styling is fine but we shouldn’t be removing the message. This is not licked to code locking. This happens on every keystroke pause and is disabled on code execute

Read more comments on GitHub >

github_iconTop Results From Across the Web

Announcing beta and preview features
The flash message should communicate the impact of the the beta or preview state for the service and provide links to learn more...
Read more >
[Beta] Preview is improper during JS warning #16804 - GitHub
On typing/editing, a JS warning comes up in the preview pane which distorts the ... Beta: preview panel covered by flash message #16867....
Read more >
Flash support in Instant Previews | Google Search Central Blog
With Instant Previews, users can see a snapshot of a search result before clicking on it. We've made a number of improvements to...
Read more >
Default :: Flash :: Lookbook
This is a flash message! ... render(Primer::Beta::Flash.new(full: full, spacious: spacious, dismissible: dismissible, icon: icon, scheme: scheme)) { content }.
Read more >
Announcing Windows 11 Insider Preview Build 25247
weren't flashing with new messages or opening a preview on hover in the system tray. The new show hidden icons flyout's animation should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found