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

Unified Diff: third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog.html

Issue 2158913007: Roll Polymer from 1.5.0 -> 1.6.0 to pick up native CSS custom props (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 5 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: third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog.html
diff --git a/third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog.html b/third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog.html
index 86ed386c53737336ff51e7e0d2f72bdb86929aa7..8c405514974e99161a28bad53ec1fee7a06cbb7b 100644
--- a/third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog.html
+++ b/third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog.html
@@ -16,10 +16,11 @@ Material design: [Dialogs](https://www.google.com/design/spec/components/dialogs
`<paper-dialog>` is a dialog with Material Design styling and optional animations when it is
opened or closed. It provides styles for a header, content area, and an action area for buttons.
You can use the `<paper-dialog-scrollable>` element (in its own repository) if you need a scrolling
-content area. See `Polymer.PaperDialogBehavior` for specifics.
+content area. To autofocus a specific child element after opening the dialog, give it the `autofocus`
+attribute. See `Polymer.PaperDialogBehavior` and `Polymer.IronOverlayBehavior` for specifics.
For example, the following code implements a dialog with a header, scrolling content area and
-buttons.
+buttons. Focus will be given to the `dialog-confirm` button when the dialog is opened.
<paper-dialog>
<h2>Header</h2>
@@ -28,7 +29,7 @@ buttons.
</paper-dialog-scrollable>
<div class="buttons">
<paper-button dialog-dismiss>Cancel</paper-button>
- <paper-button dialog-confirm>Accept</paper-button>
+ <paper-button dialog-confirm autofocus>Accept</paper-button>
</div>
</paper-dialog>

Powered by Google App Engine
This is Rietveld 408576698