From 9a66e783b664a52fddba51db743363824a3a3813 Mon Sep 17 00:00:00 2001 From: kevinparkerson Date: Mon, 27 Oct 2014 09:57:29 -0500 Subject: [PATCH 1/2] repeater-chrome-highlight: addresses issue #726 by changing chrome's highlight on focus of rows to be more visually-appealing; also fixes minor accessibility bug when attempting to select rows via enter key --- js/repeater-list.js | 2 +- less/repeater-list.less | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/repeater-list.js b/js/repeater-list.js index 0ea5dc614..9f6bf47d0 100755 --- a/js/repeater-list.js +++ b/js/repeater-list.js @@ -436,7 +436,7 @@ // allow selection via enter key $item.keyup(function (e) { if (e.keyCode === 13) { - $item.trigger('clicked.fu.repeaterList'); + $item.trigger('click.fu.repeaterList'); } }); } diff --git a/less/repeater-list.less b/less/repeater-list.less index 0a097ea7f..58b9f95f6 100755 --- a/less/repeater-list.less +++ b/less/repeater-list.less @@ -52,6 +52,10 @@ } tr { + &:focus { + outline: 1px dotted #66afe9; + } + &.empty { td { border-bottom: none; From 93d62d579cc8df346011f3539955771210436b68 Mon Sep 17 00:00:00 2001 From: kevinparkerson Date: Mon, 27 Oct 2014 10:14:14 -0500 Subject: [PATCH 2/2] repeater-chrome-highlight: added comment to clarify enter key trigger event purpose --- js/repeater-list.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/repeater-list.js b/js/repeater-list.js index 9f6bf47d0..0927049e4 100755 --- a/js/repeater-list.js +++ b/js/repeater-list.js @@ -436,6 +436,7 @@ // allow selection via enter key $item.keyup(function (e) { if (e.keyCode === 13) { + // triggering a standard click event to be caught by the row click handler above $item.trigger('click.fu.repeaterList'); } });