A platform for community discussion. Free, open, simple.
FIX: Make poll options tabbable (#13159)
Bianca Nenciu8e1448487fdb
diff --git a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6index 08a0235248d..1a47c2488e7 100644--- a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6+++ b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6@@ -58,7 +58,7 @@ createWidget("discourse-poll-option", {tagName: "li",buildAttributes(attrs) {- return { "data-poll-option-id": attrs.option.id };+ return { tabindex: 0, "data-poll-option-id": attrs.option.id };},html(attrs) {@@ -83,6 +83,12 @@ createWidget("discourse-poll-option", {this.sendWidgetAction("toggleOption", this.attrs.option);}},++ keyDown(e) {+ if (e.keyCode === 13) {+ this.click(e);+ }+ },});createWidget("discourse-poll-load-more", {