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

Unified Diff: ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.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: ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.html
diff --git a/ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.html b/ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.html
index 004bec315285579d94a9addfbf5c99f38294e5d9..c9b0070ae43f7a4401202c98fc7c0ac1d0f385ef 100644
--- a/ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.html
+++ b/ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.html
@@ -6,17 +6,16 @@
<link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-dropdown.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-in-animation.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-out-animation.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-listbox.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper-menu-button-animations.html">
<dom-module id="cr-shared-menu">
<template>
<style>
- #menu {
+ paper-listbox {
@apply(--shadow-elevation-2dp);
- background-color: white;
overflow: hidden;
- padding: 8px 0;
position: relative;
width: var(--cr-shared-menu-width);
}
@@ -25,9 +24,9 @@
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>
<script src="cr_shared_menu.js"></script>

Powered by Google App Engine
This is Rietveld 408576698