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

Unified Diff: ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html

Issue 2583353003: MD History: Replace last usage of cr-shared-menu with cr-action-menu. (Closed)
Patch Set: Test found real subtle bug (display flex overriding [hidden] attribute) Created 4 years 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/test/data/webui/md_history/history_synced_tabs_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html
diff --git a/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html b/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html
index e5d4ef904c9a9757d0f5b7662db1d4dc9a807222..0a36633844a4cbacf573590ffb6567fc7f4bb9ed 100644
--- a/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html
+++ b/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html
@@ -1,4 +1,5 @@
<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
<dom-module id="cr-action-menu">
<template>
@@ -16,6 +17,27 @@
background-color: transparent;
}
+ :host ::content .dropdown-item {
+ background: none;
+ border: none;
+ box-sizing: border-box;
+ color: var(--paper-grey-800);
+ font: inherit;
+ min-height: 32px;
+ padding: 0 24px;
+ text-align: start;
+ width: 100%;
+ }
+
+ :host ::content .dropdown-item:not([hidden]) {
+ align-items: center;
+ display: flex;
+ }
+
+ :host ::content .dropdown-item:not([disabled]) {
+ @apply(--cr-actionable);
+ }
+
:host ::content .dropdown-item:focus {
background-color: var(--paper-grey-300);
outline: none;
« no previous file with comments | « chrome/test/data/webui/md_history/history_synced_tabs_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698