Conversation
…ents Applying opacity < 1 directly to .Post-header created a new CSS stacking context, which caused the user-card dropdown (shown on avatar hover) to be confined to that stacking context and disappear when the user tried to navigate to it. Moving opacity to the .Post--unapproved wrapper fixes the stacking context issue and produces the same visual result — the whole post is dimmed at 50%. The per-child selectors for .EventPost-icon/.EventPost-info are covered by the parent rule and can be removed. Fixes #4212
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
opacity < 1to.Post-headerdirectly creates a new CSS stacking context, which confines thez-indexof any absolutely-positioned descendants (e.g. the user-card dropdown on avatar hover) to that context — causing the dropdown to disappear when the user tries to navigate to itopacity: 0.5up to.Post--unapproveditself removes the stacking context issue; the visual result is identical (whole post dimmed) and the per-child selector list is no longer neededFixes #4212
Test plan
🤖 Generated with Claude Code