Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4429)

Unified Diff: chrome/browser/resources/local_ntp/local_ntp.js

Issue 15848006: Make the Most Visited tile focus state more apparent to match the online NTP. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/local_ntp/local_ntp.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/local_ntp/local_ntp.js
diff --git a/chrome/browser/resources/local_ntp/local_ntp.js b/chrome/browser/resources/local_ntp/local_ntp.js
index 912e52d881cc2819e01213f9d04270448f80bedd..68f4a93e4ae05fc8139a168ee84d6ceb4023b569 100644
--- a/chrome/browser/resources/local_ntp/local_ntp.js
+++ b/chrome/browser/resources/local_ntp/local_ntp.js
@@ -55,6 +55,7 @@ var CLASSES = {
SUGGESTION_CONTENTS: 'suggestion-contents',
SUGGESTIONS_BOX: 'suggestions-box',
THUMBNAIL: 'mv-thumb',
+ THUMBNAIL_MASK: 'mv-mask',
// Applied when user types. Makes fakebox non-interactive and hides
// scrollbars. Removed on ESC.
USER_TYPED: 'user-typed',
@@ -466,6 +467,10 @@ function createTile(page, position) {
thumbnailElement.className = CLASSES.THUMBNAIL;
tileElement.appendChild(thumbnailElement);
+ // A mask to darken the thumbnail on focus.
+ var maskElement = createAndAppendElement(
+ tileElement, 'div', CLASSES.THUMBNAIL_MASK);
+
// The button used to blacklist this page.
var blacklistButton = createAndAppendElement(
tileElement, 'div', CLASSES.BLACKLIST_BUTTON);
« no previous file with comments | « chrome/browser/resources/local_ntp/local_ntp.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698