Skip to content

reactions-popup collapses the project side panel when opening the reaction picker #10162

Closed

Description

@ithielnor

Description

In an issue opened in a project's side panel, clicking the React (smiley) button makes the whole side panel vanish instead of showing the picker. The URL keeps pane=issue. The panel's element is still there, just collapsed to 0 height and moved off screen.

Cause: this rule in source/features/reactions-popup.css:

:root div[data-visibility-visible]:has([class*='ReactionsMenuItem-module']) {
      min-width: 0px !important;
      translate: -28px -56px;
}

In the side panel, GitHub renders the picker's overlay inside the panel's own overlay (SidePanel-module__Overlay, also a div[data-visibility-visible]). Both overlays match the rule because :has() matches any ancestor. The translate on the panel's overlay makes it the containing block for the position: fixed side panel inside it. The overlay is 0px wide and 1px tall, so the panel collapses and moves off screen.

A possible fix (untested) is to match only the innermost overlay:

:root div[data-visibility-visible]:has([class*='ReactionsMenuItem-module']):not(:has(div[data-visibility-visible] [class*='ReactionsMenuItem-module'])) {

In my testing, overriding the panel overlay to translate: none keeps the panel open, and the picker keeps the feature's two-row layout.

How to replicate the issue + URL

  1. Open https://github.com/orgs/nodejs/projects/13?pane=issue&itemId=170255455&issue=nodejs%7Cuserland-migrations%7C406 (or click any card on a project board).
  2. In the side panel, click the React (smiley) button under the issue body or any comment.
  3. The side panel disappears.

Extension version

26.10

Browser(s) used

Brave 1.96.59 (Chromium 154)

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. changed the title [-]reactions-popup collapses the project side panel when opening the reaction picker[/-] [+]`reactions-popup` collapses the project side panel when opening the reaction picker[/+] on Oct 1, 2026
  2. fregante commented on Oct 1, 2026

    @fregante
    Member

    Thanks for the detailed report! Yeah that selector was pretty bad and should be improved. There's probably something more specific that doesn't require nested :has() selectors.

    As for the immediate fix, you can write the same rule we have but reverse the two properties. I'll set it as a hotfix.

  3. added
    small
    on Oct 1, 2026
  4. fregante commented on Oct 3, 2026

    @fregante
    Member

    Hotfixed and fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions