Proof of concept was successful, see https://codereview.chromium.org/2059723003.
The benefits of this would be
1) Using native elements is better (lighter) than using Polymer elements.
2) Bugs related to PaperDialogBehavior will not be affecting cr-dialog users anymore. Concrete example of this, is https://bugs.chromium.org/p/chromium/issues/detail?id=62390.
One difference I noticed between the two dialog implementations is that the native dialog, focuses the first element in the dialog by default (unless autofocus is set on some other element). PaperDialogBehavior does not focus any element by default. This manifests with the 'x' button being focused (paper-ripple visible) right after opening the dialog (see screenshot). We should give meaningful autofocus elements to all our dialogs during the migration.
|
Deleted:
focus.png
69.0 KB
|
Comment 1 by dpa...@chromium.org
, Jul 1 2016