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

Side by Side 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 3 years, 12 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
2 3
3 <dom-module id="cr-action-menu"> 4 <dom-module id="cr-action-menu">
4 <template> 5 <template>
5 <style> 6 <style>
6 :host { 7 :host {
7 background-color: white; 8 background-color: white;
8 border: none; 9 border: none;
9 box-shadow: 0 2px 6px var(--paper-grey-500); 10 box-shadow: 0 2px 6px var(--paper-grey-500);
10 margin: 0; 11 margin: 0;
11 outline: none; 12 outline: none;
12 padding: 8px 0; 13 padding: 8px 0;
13 } 14 }
14 15
15 :host::backdrop { 16 :host::backdrop {
16 background-color: transparent; 17 background-color: transparent;
17 } 18 }
18 19
20 :host ::content .dropdown-item {
21 background: none;
22 border: none;
23 box-sizing: border-box;
24 color: var(--paper-grey-800);
25 font: inherit;
26 min-height: 32px;
27 padding: 0 24px;
28 text-align: start;
29 width: 100%;
30 }
31
32 :host ::content .dropdown-item:not([hidden]) {
33 align-items: center;
34 display: flex;
35 }
36
37 :host ::content .dropdown-item:not([disabled]) {
38 @apply(--cr-actionable);
39 }
40
19 :host ::content .dropdown-item:focus { 41 :host ::content .dropdown-item:focus {
20 background-color: var(--paper-grey-300); 42 background-color: var(--paper-grey-300);
21 outline: none; 43 outline: none;
22 } 44 }
23 </style> 45 </style>
24 <content select=".dropdown-item,hr"></content> 46 <content select=".dropdown-item,hr"></content>
25 </template> 47 </template>
26 <script src="cr_action_menu.js"></script> 48 <script src="cr_action_menu.js"></script>
27 </dom-module> 49 </dom-module>
OLDNEW
« 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