Skip to content

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

UX: Topic voting header updates (#39928)

Derek Rushforth7e39e668ae7d
diff --git a/app/assets/stylesheets/common/base/uc-modernize-foundation-theme.scss b/app/assets/stylesheets/common/base/uc-modernize-foundation-theme.scss
index 3520d0abfa7..f85f0156bc2 100644
--- a/app/assets/stylesheets/common/base/uc-modernize-foundation-theme.scss
+++ b/app/assets/stylesheets/common/base/uc-modernize-foundation-theme.scss
@@ -44,6 +44,7 @@
#topic-progress-wrapper {
&:not(
.topic-voting-menu-trigger,
+ .voting-wrapper__button,
.sidebar-footer-actions-button,
#search-button,
.btn-sidebar-toggle,
@@ -70,6 +71,7 @@
.btn.no-text.btn-icon {
&:not(
.topic-voting-menu-trigger,
+ .voting-wrapper__button,
.user-menu-tab,
.user-menu-tab-active,
.composer-actions-btn,
@@ -360,3 +362,8 @@
align-items: center;
}
}
+
+.header-title-voting,
+.voting-wrapper {
+ margin-top: 0 !important;
+}
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 4ac8287efd7..34205bb0471 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
@@ -152,7 +152,7 @@ export default class VoteBox extends Component {
<DButton
@icon={{this.buttonIcon}}
@disabled={{true}}
- @ariaLabel={{this.ariaLabel}}
+ @translatedAriaLabel={{this.ariaLabel}}
class={{this.buttonClasses}}
/>
</:trigger>
@@ -261,7 +261,7 @@ export default class VoteBox extends Component {
<DButton
@icon={{this.buttonIcon}}
@action={{this.onShowMenu}}
- @ariaLabel={{this.ariaLabel}}
+ @translatedAriaLabel={{this.ariaLabel}}
class={{this.buttonClasses}}
/>
{{/if}}
diff --git a/plugins/discourse-topic-voting/assets/stylesheets/common/topic-voting.scss b/plugins/discourse-topic-voting/assets/stylesheets/common/topic-voting.scss
index 65d0502aa43..ba5fbf5a5f5 100644
--- a/plugins/discourse-topic-voting/assets/stylesheets/common/topic-voting.scss
+++ b/plugins/discourse-topic-voting/assets/stylesheets/common/topic-voting.scss
@@ -111,6 +111,7 @@
--primary-high: var(--header_primary-high);
--primary-medium: var(--header_primary-high);
--primary-low: var(--header_primary-low);
+ --d-button-default-icon-color: var(--header_primary-high);
margin-top: 0.15em; // vertical alignment tweak
margin-right: var(--space-2);