Skip to content

Commit

Permalink
chooser: make more sense with incremental tabindex
Browse files Browse the repository at this point in the history
  • Loading branch information
matejc committed Nov 16, 2015
1 parent 7f8f290 commit 15247cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/chooser.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<div id="actionlist" class="layout center-justified vertical">
<div class="label">Select action:</div>
<template is="dom-repeat" items="{{actions}}" as="a">
<div class="item" on-click="selectaction" on-keyup="selectaction" actionid="{{a.id}}" tabindex="1">
<div class="item" on-click="selectaction" on-keyup="selectaction" actionid$="{{a.id}}" tabindex$="{{a.tabindex}}">
<span>{{a.label}}</span>
<paper-ripple fit/>
</div>
Expand All @@ -143,12 +143,12 @@
</div>
<div id="configlist" class="center-justified layout vertical">
<div class="label">Select configuration:</div>
<div class="item" on-click="selectconfig" on-keyup="selectconfig" tabindex="1">
<div class="item" on-click="selectconfig" on-keyup="selectconfig" tabindex="2">
<span>Empty</span>
<paper-ripple fit/>
</div>
<template is="dom-repeat" items="{{configurations}}">
<div class="item" on-click="selectconfig" on-keyup="selectconfig" tabindex="1">
<div class="item" on-click="selectconfig" on-keyup="selectconfig" tabindex="2">
<span>{{item.path}}</span>
<paper-ripple fit/>
</div>
Expand Down Expand Up @@ -187,7 +187,6 @@
this.$.configurations.init();
this.$.configurations.all(function (err, cfgs) {
this.configurations = cfgs;
console.log(cfgs)
}.bind(this));
},
selectaction: function(e) {
Expand Down
6 changes: 3 additions & 3 deletions src/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ dbs.markeds.list = function(profileId, cb) {

dbs.actions = function() {
data.actions = [
{ id: 0, label: "Package Manager", url: "package-manager.html" },
{ id: 1, label: "Configuration Options", url: "configuration.html" },
{ id: 2, label: "Planet", url: "planet.html" }
{ id: 0, label: "Package Manager", url: "package-manager.html", tabindex: '1' },
{ id: 1, label: "Configuration Options", url: "configuration.html", tabindex: '2' },
{ id: 2, label: "Planet", url: "planet.html", tabindex: '3' }
];
};

Expand Down

0 comments on commit 15247cb

Please sign in to comment.