|
|
Chromium Code Reviews|
Created:
3 years, 10 months ago by hcarmona Modified:
3 years, 8 months ago CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionMD-Settings A11y: Disable radio list if all options are disabled.
BUG=642644
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2715763002
Cr-Commit-Position: refs/heads/master@{#461915}
Committed: https://chromium.googlesource.com/chromium/src/+/4d9d2432508df3c21fec9178132362c52023dae2
Patch Set 1 #Patch Set 2 : move the tabindex #
Total comments: 1
Patch Set 3 : feedback #Patch Set 4 : patch #Patch Set 5 : fix closure #
Total comments: 4
Patch Set 6 : Fix path and indent #Patch Set 7 : Update #Messages
Total messages: 48 (30 generated)
Description was changed from ========== MD-Settings A11y: No tabindex on radio list if options are all disabled. BUG=642644 ========== to ========== MD-Settings A11y: No tabindex on radio list if options are all disabled. BUG=642644 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by hcarmona@chromium.org to run a CQ dry run
hcarmona@chromium.org changed reviewers: + tommycli@chromium.org
PTAL
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
dbeam@chromium.org changed reviewers: + dbeam@chromium.org
changing to tabindex="-1" disables tab but still allows clicking on something to focus it. just remove the tabindex attribute altogether to remove it from being "focusable" (focused on click) as well as not be in the "sequential tab order" (pressing Tab)
On 2017/02/23 19:01:59, Dan Beam wrote: > changing to tabindex="-1" disables tab but still allows clicking on something to > focus it. > > just remove the tabindex attribute altogether to remove it from being > "focusable" (focused on click) as well as not be in the "sequential tab order" > (pressing Tab) The paper-radio-group adds its own tabindex, so not adding one results in the default tabindex of 0. https://cs.chromium.org/chromium/src/third_party/polymer/v1_0/components-chro... What can we do in this case?
On 2017/02/23 19:09:05, hcarmona wrote: > On 2017/02/23 19:01:59, Dan Beam wrote: > > changing to tabindex="-1" disables tab but still allows clicking on something > to > > focus it. > > > > just remove the tabindex attribute altogether to remove it from being > > "focusable" (focused on click) as well as not be in the "sequential tab order" > > (pressing Tab) > > The paper-radio-group adds its own tabindex, so not adding one results in the > default tabindex of 0. > https://cs.chromium.org/chromium/src/third_party/polymer/v1_0/components-chro... > > What can we do in this case? i knew it used hostAttributes for a default of 0. figure out a way to undo this ;)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by hcarmona@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/02/23 19:13:36, Dan Beam wrote: > On 2017/02/23 19:09:05, hcarmona wrote: > > On 2017/02/23 19:01:59, Dan Beam wrote: > > > changing to tabindex="-1" disables tab but still allows clicking on > something > > to > > > focus it. > > > > > > just remove the tabindex attribute altogether to remove it from being > > > "focusable" (focused on click) as well as not be in the "sequential tab > order" > > > (pressing Tab) > > > > The paper-radio-group adds its own tabindex, so not adding one results in the > > default tabindex of 0. > > > https://cs.chromium.org/chromium/src/third_party/polymer/v1_0/components-chro... > > > > What can we do in this case? > > i knew it used hostAttributes for a default of 0. figure out a way to undo this > ;) PTAL, if this looks good I'll create a PR that updates the paper-radio-group
yeah, i think this'll work! https://codereview.chromium.org/2715763002/diff/20001/third_party/polymer/v1_... File third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js (right): https://codereview.chromium.org/2715763002/diff/20001/third_party/polymer/v1_... third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js:53: observer: '_onDisableChange', nit: changed
also, fwiw, i just looked back through all the behaviors this element pulls in
(directly or indirectly) and they don't seem to have a disable that this would
override (but they do have checks for .hasAttribute('disabled'), so we might
also consider reflectToAttribute?)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
Patchset #3 (id:40001) has been deleted
Thanks for the feedback! I've created a PR here: https://github.com/PolymerElements/paper-radio-group/pull/77
what's the status of this or polymer PRs?
do this locally in third_party/polymer if polymer reviews take too long, imo
The CQ bit was checked by hcarmona@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Updated w/ the changes we expect in the PRs For quick reference, the PRs: https://github.com/PolymerElements/iron-menu-behavior/pull/88 https://github.com/PolymerElements/paper-radio-group/pull/77 I didn't bring the polymer tests. If we run these in chromium, then I can add them to this CL. I had some presubmit warnings which I felt were okay to bypass... let me know if I need to fix something: - 'README.chromium' file should also be updated with correct version and package info - Found components that are not listed in bower.json app-layout
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: closure_compilation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/closure_compila...)
Message was sent while issue was closed.
https://codereview.chromium.org/2715763002/diff/100001/third_party/polymer/v1... File third_party/polymer/v1_0/chromium.patch (right): https://codereview.chromium.org/2715763002/diff/100001/third_party/polymer/v1... third_party/polymer/v1_0/chromium.patch:29: --- a/third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js this is the wrong path. please check that your patch works with this line from inside the third_party/polymer/v1_0/ directory https://cs.chromium.org/chromium/src/third_party/polymer/v1_0/reproduce.sh?q=... https://codereview.chromium.org/2715763002/diff/100001/third_party/polymer/v1... File third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js (right): https://codereview.chromium.org/2715763002/diff/100001/third_party/polymer/v1... third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js:242: this._disableTabindex(!couldTab); indent off
Message was sent while issue was closed.
Description was changed from ========== MD-Settings A11y: No tabindex on radio list if options are all disabled. BUG=642644 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== MD-Settings A11y: No tabindex on radio list if options are all disabled. BUG=642644 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by hcarmona@chromium.org to run a CQ dry run
Applied feedback. (also, issue was closed for some reason, reopened) https://codereview.chromium.org/2715763002/diff/100001/third_party/polymer/v1... File third_party/polymer/v1_0/chromium.patch (right): https://codereview.chromium.org/2715763002/diff/100001/third_party/polymer/v1... third_party/polymer/v1_0/chromium.patch:29: --- a/third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js On 2017/03/17 23:58:53, Dan Beam wrote: > this is the wrong path. please check that your patch works with this line from > inside the third_party/polymer/v1_0/ directory > > https://cs.chromium.org/chromium/src/third_party/polymer/v1_0/reproduce.sh?q=... Done. https://codereview.chromium.org/2715763002/diff/100001/third_party/polymer/v1... File third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js (right): https://codereview.chromium.org/2715763002/diff/100001/third_party/polymer/v1... third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js:242: this._disableTabindex(!couldTab); On 2017/03/17 23:58:53, Dan Beam wrote: > indent off Done.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
bicknellr@ is responding in the PR, so let's keep going with that for now
Patchset #7 (id:140001) has been deleted
The CQ bit was checked by hcarmona@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Updated to depend on pulling polymer changes.
Description was changed from ========== MD-Settings A11y: No tabindex on radio list if options are all disabled. BUG=642644 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== MD-Settings A11y: Disable radio list if all options are disabled. BUG=642644 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
The CQ bit was checked by hcarmona@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 160001, "attempt_start_ts": 1491351626329700,
"parent_rev": "c1d1aee5dcc8f13668fc418d5d670dc280759531", "commit_rev":
"4d9d2432508df3c21fec9178132362c52023dae2"}
Message was sent while issue was closed.
Description was changed from ========== MD-Settings A11y: Disable radio list if all options are disabled. BUG=642644 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== MD-Settings A11y: Disable radio list if all options are disabled. BUG=642644 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2715763002 Cr-Commit-Position: refs/heads/master@{#461915} Committed: https://chromium.googlesource.com/chromium/src/+/4d9d2432508df3c21fec91781323... ==========
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as https://chromium.googlesource.com/chromium/src/+/4d9d2432508df3c21fec91781323... |
