A platform for community discussion. Free, open, simple.
A11Y: remove redundant tabindex=0 from polls (#28320)
Krisdf18bcd0299d
diff --git a/plugins/poll/assets/javascripts/discourse/components/poll-options.gjs b/plugins/poll/assets/javascripts/discourse/components/poll-options.gjsindex b2023f244cf..4423418747f 100644--- a/plugins/poll/assets/javascripts/discourse/components/poll-options.gjs+++ b/plugins/poll/assets/javascripts/discourse/components/poll-options.gjs@@ -35,7 +35,7 @@ export default class PollOptionsComponent extends Component {@sendRank={{this.sendRank}}/>{{else}}- <li tabindex="0" data-poll-option-id={{option.id}}>+ <li data-poll-option-id={{option.id}}>{{#if this.currentUser}}<button {{on "click" (fn this.sendClick option)}}>{{#if (this.isChosen option)}}