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

Unified Diff: third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js

Issue 2715763002: MD-Settings A11y: Disable radio list if all options are disabled. (Closed)
Patch Set: move the tabindex Created 3 years, 10 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
« no previous file with comments | « chrome/browser/resources/settings/people_page/sync_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js
index 642f8ec5a6983b1fc01e1b3658ba205dcfb2e9d1..72f7f779bb1abe5edd7abe9471304355a85f0870 100644
--- a/third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js
@@ -7,7 +7,6 @@ Polymer({
hostAttributes: {
role: 'radiogroup',
- tabindex: 0
},
properties: {
@@ -47,7 +46,12 @@ Polymer({
allowEmptySelection: {
type: Boolean,
value: false
- }
+ },
+
+ disabled: {
+ type: Boolean,
+ observer: '_onDisableChange',
Dan Beam 2017/02/23 20:49:14 nit: changed
+ },
},
/**
@@ -107,5 +111,12 @@ Polymer({
_onRightKey: function(event) {
Polymer.IronMenubarBehaviorImpl._onRightKey.apply(this, arguments);
this._activateFocusedItem();
- }
- });
+ },
+
+ _onDisableChange: function(disabled) {
+ if (disabled)
+ this.removeAttribute('tabindex');
+ else
+ this.tabindex = 0;
+ },
+ });
« no previous file with comments | « chrome/browser/resources/settings/people_page/sync_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698