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.

Night mode modal styling

See original GitHub issue

Issue Description

Both the “Bug” and “Challenge Success” modals still have mostly “day mode” styling when in night mode.

I’ve already attempted messing around with this a bit, but it’s not so straightforward, since the two modals are set up differently. Here’s what happens by adding a new color to .night .modal-body:

Success Modal, ok, not perfect with the white lines, but not terrible

Now same styling on the Bug modal:

After inspecting, it would appear that in both day mode and night mode, the .modal-bodal body is always extending over .modal-header, its just that in day mode, .modal-body has no fill. If you attempt to accommodate this by adding a top-margin to the modal content, it looks ok for the bug modal, but leaves giant white spaces in the success modal. And I couldn’t figure out how to style those spaces without affecting other things.

Since you guys were on the dropdown thread, do any of you have any ideas @raisedadead, @hallaathrad, @systimotic?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
no-stack-dub-sackcommented, Jan 16, 2017

@systimotic Ok, cool - the specificity is what I was missing. Thanks! I’ll fix both issues and make a PR a bit later

1reaction
systimoticcommented, Jan 16, 2017

@no-stack-dub-sack Yeah, that should work, as long as you put the .modal-content in there. Keep in mind that the original colour is set later in the file than the night colour, so with equal specificity the default colour will stay visible. I believe putting .model-dialog .modal-content inside of .night should do the trick for more specificity.

As @hallaathrad mentioned, the lines are caused by a border, which is set by Bootstrap. The top border is on .modal-header, the bottom border is on .modal-footer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modal Grid. Dark UI - Dribbble
Modal Grid. Dark UI. Inspirational designs, illustrations, and graphic elements from ... Sidebar Navigation (Dark) app clean dark mode dark theme dashboard ...
Read more >
How to increase contrast for MUI dark theme for modals
MUI modal works well in light mode, but I am having a difficult time finding the edge of the modal when dark theme...
Read more >
modal dialog dark theme - Okler Themes
I am adding a popup dialog to my website using code from the sample. It all works correctly except that is showing in...
Read more >
Implementing Dark Mode In React Apps Using styled ...
In this article, we'll learn how to efficiently implement dark mode in a React app on a simple web page, using the styled-components...
Read more >
Dark Mode - Tailwind CSS
Using Tailwind CSS to style your site in dark mode. Basic usage. Now that dark mode is a first-class feature of many operating...
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