From fe5d5438642b35cc8d78366eeebf18aab6ba70c7 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Wed, 16 Nov 2022 23:21:57 +0000 Subject: [PATCH] fix: post dropdown opens all dropdowns in `.Post-actions` (#3675) --- framework/core/js/src/forum/components/Post.tsx | 2 +- framework/core/less/forum/Post.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/js/src/forum/components/Post.tsx b/framework/core/js/src/forum/components/Post.tsx index 381c47cdd..3f9304bb4 100644 --- a/framework/core/js/src/forum/components/Post.tsx +++ b/framework/core/js/src/forum/components/Post.tsx @@ -97,7 +97,7 @@ export default abstract class Post const $actions = this.$('.Post-actions'); const $controls = this.$('.Post-controls'); - $actions.toggleClass('open', $controls.hasClass('open')); + $actions.toggleClass('openWithin', $controls.hasClass('open')); } /** diff --git a/framework/core/less/forum/Post.less b/framework/core/less/forum/Post.less index 6fe81e884..6b36ea347 100644 --- a/framework/core/less/forum/Post.less +++ b/framework/core/less/forum/Post.less @@ -322,7 +322,7 @@ vertical-align: top; } } - .Post:hover &, .Post:focus-within &, &.open { + .Post:hover &, .Post:focus-within &, &.openWithin { opacity: 1; } }