| 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>
|
|
|
|
|