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

Community dropdown styling in night mode #12538

Closed
systimotic opened this issue Jan 15, 2017 · 16 comments
Closed

Community dropdown styling in night mode #12538

systimotic opened this issue Jan 15, 2017 · 16 comments
Assignees
Labels
help wanted Open for all. You do not need permission to work on these. scope: UI Threads for addressing UX changes and improvements to user interface

Comments

@systimotic
Copy link
Member

Issue Description

In #12288, a dropdown was added to the navigation. While checking out #12532, I noticed that this dropdown is very bright in night mode. I think it can use some styling updates.

I believe the changes should be made somewhere around here.

Does anybody have any ideas on what it should look like, specifically what colours it should use?
/cc @QuincyLarson @freeCodeCamp/moderators

Screenshot

firefox_2017-01-15_15-14-22
firefox_2017-01-15_15-14-31

@systimotic systimotic added status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. help wanted Open for all. You do not need permission to work on these. labels Jan 15, 2017
@justincorrigible
Copy link
Member

justincorrigible commented Jan 15, 2017

Hmm How about we try the opposite? keep the dark grey, using the light one for the text itself?
I'll help @systimotic QA if anyone is up for submitting a PR ;)

@raisedadead
Copy link
Member

Agreed with Justin, and the specific color codes can be taken from here
https://www.freecodecamp.com/design-style-guide/

@raisedadead raisedadead added scope: UI Threads for addressing UX changes and improvements to user interface status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. and removed status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. labels Jan 15, 2017
@no-stack-dub-sack
Copy link
Member

no-stack-dub-sack commented Jan 15, 2017

@systimotic @raisedadead @hallaathrad
Hey guys also, what about this:
image

Was going to open a separate issue for it, but this seems like a sensible place to interject...

I can't tell if someone has said they'll work on this - if not, I'll take it on if we agree both should be fixed!

@raisedadead
Copy link
Member

Yup.. I agreed both should be fixed. But keep in mind that this modal is not available on staging anymore.

@systimotic
Copy link
Member Author

@no-stack-dub-sack You can go ahead with fixing the dropdown 👍
Might be best to leave the modal, as it's being removed anyway.

@systimotic systimotic removed the status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. label Jan 15, 2017
@systimotic
Copy link
Member Author

😕 I just checked, and the modal is available on staging. I guess this was reverted. I'm not sure what the status on that is, whether it's back temporarily or permanently.
It was reverted in #11253. From what I can tell it's back permanently, but I'm not certain.

@no-stack-dub-sack
Copy link
Member

no-stack-dub-sack commented Jan 16, 2017

@systimotic @raisedadead Ok, so I can go ahead and fix both - and if it ends up being removed - no biggie!

Also noticed that if you click the community button while the dropdown in down, and then mouse out of the drop down, it stays white instead of reverting back to green:

image

Assuming this is unintentional so will try to look at that as well.

@no-stack-dub-sack
Copy link
Member

no-stack-dub-sack commented Jan 16, 2017

@raisedadead @systimotic

Agreed with Justin, and the specific color codes can be taken from here
https://www.freecodecamp.com/design-style-guide/

This actually raises two good points:

  1. Many of the night mode colors are not in this style guide
  2. And, there are several instances of "Free Code Camp" in this style guide, which should be changed per issue Change name from "Free Code Camp" to freeCodeCamp everywhere #12472

However, I cannot find this in the codebase, does anyone know where this lives?

@no-stack-dub-sack
Copy link
Member

no-stack-dub-sack commented Jan 16, 2017

Ok, so I got something cooked up that I think looks nice and uses nightmode/brand colors, including fixing the focus style issue of the buttons in the navbar:
image

And here's the dropdown:
image
image

BUT, when I started clicking around, for instance, going to the shop, then coming back to the map, the styling reverts back to the light colors. The page momentarily goes back to "day mode", then when it settles back to night mode, the dropdown styles have reverted. Any ideas as to why this might be?

Here's my code, insert at line 1073 of main.less:

.hamburger-dropdown {
    .dropdown .dropdown-menu,
    .open a {
      background-color: @gray;
      a {
        color: @night-text-color;
        &:hover {
          background-color: #666;
          color: @brand-primary;
        }
      }
    }
    a:focus,
    a:active {
      background-color: #666 !important;
      color: @brand-primary !important;
    }
  }

The modals - I worked on this a bit, but they come with a whole slew of other problems that I'm too tired to get into now. Because there's also the "Bug" modal...

@raisedadead
Copy link
Member

There are several instances of "Free Code Camp" in this style guide

I have PR pending merge. Ref freeCodeCamp/design-style-guide#7

I like what you have done with the drop down, maybe the text needs more contrast (more whiter), but looks coool!

@Bouncey
Copy link
Member

Bouncey commented Jan 16, 2017 via email

@justincorrigible
Copy link
Member

@no-stack-dub-sack not sure I'm digging the green text over the grey when hovering/active. Doesn't seem to have enough contrast to be readable. How about light grey background with dark grey text?

@no-stack-dub-sack
Copy link
Member

no-stack-dub-sack commented Jan 16, 2017

@systimotic @raisedadead @hallaathrad So I think this looks a little better per Justin & Mrugesh's comment regarding more contrast, I used the @link-hover-color var which is @brand-primary darkened by 15%, so it still keeps a hint of the brand green, but offers substantially better contrast. This is within the dropdown, and for hover, active, focus of the nav links.
image

And I think I will open a separate issue regarding the modals and will explain the difficulty with those there.

@justincorrigible
Copy link
Member

This looks good to me.

@raisedadead
Copy link
Member

Awesomeness!!! Lets have a Pull request already! 😉

@no-stack-dub-sack
Copy link
Member

On it!

@BerkeleyTrue BerkeleyTrue added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Jan 16, 2017
@raisedadead raisedadead removed the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Open for all. You do not need permission to work on these. scope: UI Threads for addressing UX changes and improvements to user interface
Projects
None yet
Development

No branches or pull requests

6 participants