Skip to content

NTP: Update hover colors for context menu #4423

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

Merged
merged 1 commit into from
Feb 19, 2020
Merged

NTP: Update hover colors for context menu #4423

merged 1 commit into from
Feb 19, 2020

Conversation

cezaraugusto
Copy link
Contributor

@cezaraugusto cezaraugusto commented Jan 24, 2020

Fix brave/brave-browser#6395

Screen Shot 2020-02-10 at 11 58 35 AM

Screen Shot 2020-02-10 at 11 58 25 AM

Submitter Checklist:

Test Plan:

Assert that in dark mode, widget context menu (see screenshot) is turned black. Should be white in light mode.

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@cezaraugusto cezaraugusto self-assigned this Jan 24, 2020
@cezaraugusto cezaraugusto added CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS labels Jan 24, 2020
@petemill
Copy link
Member

The hover state is a bit jarring since it's still using the light color. There's a lot more contrast now.

How about we add a couple theme colors:

    contextMenuHoverBackground: ,
    contextMenuHoverForeground: ,

and use a nice light gray for the hover bg?

@cezaraugusto
Copy link
Contributor Author

Sounds good bur deferring to @karenkliu since it's a design decision.

@karenkliu please see screenshot on top of this page and comment above from Pete.

@karenkliu
Copy link

karenkliu commented Jan 29, 2020

Agree this should be done; here are the two:
Screen Shot 2020-01-29 at 11 41 40 AM
Grab CSS from Abstract: https://share.goabstract.com/a6781cec-ebef-4012-9ef9-68868f864e65?collectionLayerId=5092bc9f-adb5-4725-b253-059ddb0c9fe4

Screen Shot 2020-01-29 at 11 41 45 AM

Grab CSS from Abstract: https://share.goabstract.com/a6781cec-ebef-4012-9ef9-68868f864e65?collectionLayerId=0c4d8b10-cce3-4012-a438-6d5d5e218cd7

@cezaraugusto cezaraugusto force-pushed the ca-6395 branch 2 times, most recently from 1e5ad8b to 1cfd543 Compare February 10, 2020 14:55
@cezaraugusto cezaraugusto changed the title NTP: Allow theming for widget context menu NTP: Allow custom theming Feb 10, 2020
@cezaraugusto cezaraugusto added CI/skip-linux CI/skip-macos-x64 Do not run CI builds for macOS x64 labels Feb 10, 2020
@cezaraugusto
Copy link
Contributor Author

Thanks team, PR updated

@cezaraugusto
Copy link
Contributor Author

rebased since npm run test-security was failing

@petemill
Copy link
Member

@cezaraugusto not sure if we need to make a new NTP-specific theme just for these values.

Right now only contextMenuBackground is being used and that's by the rewards dropdown:
image

I think we should be consistent here, and that component would also get these light / dark / hover values.

@cezaraugusto
Copy link
Contributor Author

@petemill could you review brave/brave-ui#557 then?

@cezaraugusto cezaraugusto changed the title NTP: Allow custom theming NTP: Update hover colors for context menu Feb 13, 2020
@cezaraugusto
Copy link
Contributor Author

PR updated

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

Verified by building locally that this looks great- matches mockup provided by @karenkliu 😄

@cezaraugusto cezaraugusto merged commit efb9e2b into master Feb 19, 2020
@cezaraugusto cezaraugusto deleted the ca-6395 branch February 19, 2020 18:21
@bbondy bbondy modified the milestones: 1.6.x - Beta, 1.7.x - Dev Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS CI/skip-macos-x64 Do not run CI builds for macOS x64 feature/newtab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dark mode does not work for the new tab Remove menu
5 participants