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

Unified Diff: chrome/browser/resources/chromeos/login/gaia_buttons.js

Issue 1133733003: Unified icon-buttons used in the new GAIA flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added 'aria-label's. Created 5 years, 7 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: chrome/browser/resources/chromeos/login/gaia_buttons.js
diff --git a/chrome/browser/resources/chromeos/login/gaia_buttons.js b/chrome/browser/resources/chromeos/login/gaia_buttons.js
index 974b09ee07598f607e1abc4985286db1dcd29aed..433f4a8f4abd49c8ae610b1a64f14f76c6e38706 100644
--- a/chrome/browser/resources/chromeos/login/gaia_buttons.js
+++ b/chrome/browser/resources/chromeos/login/gaia_buttons.js
@@ -10,10 +10,14 @@ Polymer('gaia-paper-button', {
}
});
-Polymer('gaia-core-icon-button', {
- onKeyDown: function(e) {
- if (e.keyCode == 13 || e.keyCode == 32)
- this.fire('tap');
+Polymer('gaia-icon-button', {
+ ready: function() {
+ this.classList.toggle('custom-appearance', true);
+ },
+
+ onMouseDown: function(e) {
+ /* Prevents button focusing after mouse click. */
Greg Levin 2015/05/08 19:18:07 Is this desirable? Most buttons seem to retain fo
dzhioev (left Google) 2015/05/08 21:15:45 Yes, we do this thing for the most buttons in our
Greg Levin 2015/05/11 14:33:50 Right, but it's not clear to me that we *want* to
dzhioev (left Google) 2015/05/11 23:05:57 Got it, I'll keep current behavior for now and con
+ e.preventDefault();
}
});

Powered by Google App Engine
This is Rietveld 408576698