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

Unified Diff: chrome/browser/resources/md_history/lazy_load.vulcanized.html

Issue 2272553002: MD WebUI: Use arrow keys for navigation in cr-shared-menu, close on tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dbeam@ review comments Created 4 years, 3 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
Index: chrome/browser/resources/md_history/lazy_load.vulcanized.html
diff --git a/chrome/browser/resources/md_history/lazy_load.vulcanized.html b/chrome/browser/resources/md_history/lazy_load.vulcanized.html
index 838b605ec192ccd79510971d8c0b380b54661daf..9478fc3e677dd7338718b0313f643ab74d82683b 100644
--- a/chrome/browser/resources/md_history/lazy_load.vulcanized.html
+++ b/chrome/browser/resources/md_history/lazy_load.vulcanized.html
@@ -520,21 +520,38 @@ paper-ripple {
</template>
</dom-module>
+<dom-module id="paper-listbox" assetpath="chrome://resources/polymer/v1_0/paper-listbox/" css-build="shadow">
+ <template>
+ <style scope="paper-listbox">:host {
+ display: block;
+ padding: 8px 0;
+
+ background: var(--paper-listbox-background-color,var(--primary-background-color));;
+ color: var(--paper-listbox-color,var(--primary-text-color));;
+
+ ;
+}
+
+</style>
+
+ <content></content>
+ </template>
+
+ </dom-module>
<dom-module id="cr-shared-menu" assetpath="chrome://resources/cr_elements/cr_shared_menu/" css-build="shadow">
<template>
- <style scope="cr-shared-menu">#menu {
+ <style scope="cr-shared-menu">paper-listbox {
box-shadow: var(--shadow-elevation-2dp_-_box-shadow);
- background-color: white;
overflow: hidden;
- padding: 8px 0;
position: relative;
+ width: var(--cr-shared-menu-width);
}
</style>
<iron-dropdown id="dropdown" allow-outside-scroll="" restore-focus-on-close="" vertical-align="auto" horizontal-align="right" opened="{{menuOpen}}" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]">
- <div id="menu" class="dropdown-content" role="menu">
+ <paper-listbox id="menu" class="dropdown-content">
<content></content>
- </div>
+ </paper-listbox>
</iron-dropdown>
</template>
</dom-module>
« no previous file with comments | « chrome/browser/resources/md_history/lazy_load.crisper.js ('k') | chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698