Skip to content

Extract the filter menu submenu into a shared component - #6716

Merged
zoldar merged 3 commits into
masterfrom
sanne-filter-submenu
Oct 7, 2026
Merged

zoldar merged 3 commits into
masterfrom
sanne-filter-submenu

Conversation

@sanne-san

Copy link
Copy Markdown
Contributor

Changes

  • Move the submenu logic from filter-menu.tsx into a new submenu.tsx: the open and close state, the delay on hover, and the position. On wide screens the submenu opens beside the menu. On small screens it replaces the menu.
  • No functionality change, and only the filter menu uses the new component for now. In a follow-up PR, the submenu will also be used on the segment pill in the top nav.

Tests

  • This PR does not require tests

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@sanne-san
sanne-san added this pull request to stack #6720 September 25, 2026 13:57
@sanne-san
sanne-san marked this pull request as ready for review October 1, 2026 13:33
@sanne-san
sanne-san requested a review from a team October 1, 2026 13:33
Base automatically changed from sanne-filter-dropdown to master October 7, 2026 08:43
sanne-san and others added 2 commits October 7, 2026 10:50
- Move the submenu logic from `filter-menu.tsx` into a new `submenu.tsx`:
  the open and close state, the delay on hover, and the position. On
  wide screens the submenu opens beside the menu. On small screens it
  replaces the menu.
- No functionality change, and only the filter menu uses the new
  component for now. In a follow-up PR, the submenu will also be used
  on the segment pill in the top nav.
@zoldar
zoldar force-pushed the sanne-filter-submenu branch from 73d2c0a to 5864348 Compare October 7, 2026 09:00
@zoldar zoldar added the preview label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Preview environment👷🏼‍♀️🏗️
PR-6716

@zoldar
zoldar added this pull request to the merge queue Oct 7, 2026
Merged via the queue into master with commit b7c6d81 Oct 7, 2026
34 of 39 checks passed
@zoldar
zoldar deleted the sanne-filter-submenu branch October 7, 2026 09:19
tsubery pushed a commit to tsubery/analytics that referenced this pull request Oct 21, 2026
* Extract the filter menu submenu into a shared component

- Move the submenu logic from `filter-menu.tsx` into a new `submenu.tsx`:
  the open and close state, the delay on hover, and the position. On
  wide screens the submenu opens beside the menu. On small screens it
  replaces the menu.
- No functionality change, and only the filter menu uses the new
  component for now. In a follow-up PR, the submenu will also be used
  on the segment pill in the top nav.

* Remove mouseleave trigger after rebase

* Apply formatting

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants