Skip to content

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

UX: fix topic map link expansion hover (#25822)

Kris9005a1450873
diff --git a/app/assets/javascripts/discourse/app/widgets/topic-map.js b/app/assets/javascripts/discourse/app/widgets/topic-map.js
index 5def701edbb..f27a4a06ea1 100644
--- a/app/assets/javascripts/discourse/app/widgets/topic-map.js
+++ b/app/assets/javascripts/discourse/app/widgets/topic-map.js
@@ -34,7 +34,7 @@ createWidget("topic-map-show-links", {
title: "topic_map.links_shown",
icon: "chevron-down",
action: "showLinks",
- className: "btn",
+ className: "btn btn-flat",
})
);
},
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index 2200699b323..d9b76ca3995 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -759,6 +759,18 @@ aside.quote {
}
}
+ .link-summary .btn {
+ width: 100%;
+ .d-icon {
+ color: var(--primary-high);
+ }
+ .discourse-no-touch & {
+ &:hover {
+ background: var(--primary-low);
+ }
+ }
+ }
+
.controls {
display: flex;
align-items: center;
diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scss
index a65a294faaa..6657c892d84 100644
--- a/app/assets/stylesheets/desktop/topic-post.scss
+++ b/app/assets/stylesheets/desktop/topic-post.scss
@@ -316,15 +316,6 @@ pre.codeblock-buttons:hover {
}
}
}
- .link-summary .btn {
- color: var(--primary-med-or-secondary-high);
- background: var(--blend-primary-secondary-5);
- width: 100%;
- &:hover {
- color: var(--primary);
- background: var(--primary-low);
- }
- }
.toggle-summary .summarization-buttons .top-replies {
margin-left: 10px;
diff --git a/app/assets/stylesheets/mobile/topic-post.scss b/app/assets/stylesheets/mobile/topic-post.scss
index 156dda75268..f3e49e38acf 100644
--- a/app/assets/stylesheets/mobile/topic-post.scss
+++ b/app/assets/stylesheets/mobile/topic-post.scss
@@ -194,11 +194,6 @@ a.reply-to-tab {
}
}
}
- .link-summary .btn {
- color: var(--primary-med-or-secondary-high);
- background: var(--blend-primary-secondary-5);
- width: 100%;
- }
.toggle-summary {
.summarization-buttons {