Skip to content

A platform for community discussion. Free, open, simple.

UX: add missing title attr to vote btn (#40821)

chapoi8b202d4ec0b6
diff --git a/plugins/discourse-topic-voting/assets/javascripts/discourse/components/vote-button.gjs b/plugins/discourse-topic-voting/assets/javascripts/discourse/components/vote-button.gjs
index f09f8fb2725..a6ccf6e9e43 100644
--- a/plugins/discourse-topic-voting/assets/javascripts/discourse/components/vote-button.gjs
+++ b/plugins/discourse-topic-voting/assets/javascripts/discourse/components/vote-button.gjs
@@ -171,6 +171,7 @@ export default class VoteBox extends Component {
@icon={{this.buttonIcon}}
@onShow={{this.onShowMenu}}
@onClose={{this.onCloseMenu}}
+ @title={{this.ariaLabel}}
@ariaLabel={{this.ariaLabel}}
class={{this.buttonClasses}}
@onRegisterApi={{this.onRegisterApi}}
@@ -266,6 +267,7 @@ export default class VoteBox extends Component {
<DButton
@icon={{this.buttonIcon}}
@action={{this.onShowMenu}}
+ @translatedTitle={{this.ariaLabel}}
@translatedAriaLabel={{this.ariaLabel}}
class={{this.buttonClasses}}
/>