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

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

Issue 2755213002: MD WebUI: fix action menu initial focus to be more like context menus (Closed)
Patch Set: fix tests Created 3 years, 9 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_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 0a36633844a4cbacf573590ffb6567fc7f4bb9ed..68caf2c7bf3019a4ccb6bfaf1a91319e0126c59b 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
@@ -42,8 +42,14 @@
background-color: var(--paper-grey-300);
outline: none;
}
+
+ .item-wrapper {
+ outline: none;
+ }
</style>
- <content select=".dropdown-item,hr"></content>
+ <div class="item-wrapper" tabindex="-1">
+ <content select=".dropdown-item,hr"></content>
+ </div>
</template>
<script src="cr_action_menu.js"></script>
</dom-module>

Powered by Google App Engine
This is Rietveld 408576698