Skip to content

Commit f995236

Browse files
akhanfirJihed525
authored andcommitted
fix: Display problem on additionnal content - MEED-10137 - Meeds-io/meeds#3989 (#674)
Before this change, when adding articles to a card template and focusing on the additional content, then hovering the mouse over that additional content, a display problem occurred. To fix this problem, regardless of the focused element within the card, the card's hover state must be disabled. In this case, we add the class , and it displays when the card is focused. We apply the hover style only if this class is not displayed. After this change, if the content is displayed due to focus, moving the mouse will not change its state unexpectedly. (cherry picked from commit 5c7f59f)
1 parent 0201e6b commit f995236

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

content-webapp/src/main/webapp/skin/less/newsListView.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ p.caption-title:after {
11481148
&:hover {
11491149
cursor: pointer;
11501150

1151-
.upper-row {
1151+
.articleLinkDetails:not(.is-article-link-focused) .upper-row {
11521152
transform: translateY(0);
11531153
}
11541154
}

content-webapp/src/main/webapp/vue-app/news-list-view/components/views/NewsCardsViewItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
class="article-illustration-img">
3535
</div>
3636
<div
37-
class="text-area"
37+
:class="{ 'is-article-link-focused': isArticleLinkFocused }"
38+
class="text-area articleLinkDetails"
3839
tabindex="0"
3940
role="link"
4041
:aria-label="$t('news.illustration.link.title', {0: item.title})"

0 commit comments

Comments
 (0)