Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: add modal to <DropdownMenu /> - #22061

Closed
jakehwll wants to merge 10 commits into
mainfrom
jakehwll/modal-dropdownmenu
Closed

fix: add modal to <DropdownMenu />#22061
jakehwll wants to merge 10 commits into
mainfrom
jakehwll/modal-dropdownmenu

Conversation

@jakehwll

@jakehwll jakehwll commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

This pull-request ensures that our <DropdownMenu /> elements don't cause a layout shift with the scrollbars, this does now cause the scroll to not lock at all when we open a <DropdownMenu /> however.

It should be noted this will not effect <Select />'s as their underlying code does not allow for modal={true}. This was noticed primarily on the /tasks page so their components have been migrated to a <DropdownMenu />.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3a898f9a8b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread site/src/components/DropdownMenu/DropdownMenu.tsx
Comment thread site/src/modules/tasks/TaskPrompt/TemplateVersionSelect.tsx
@DanielleMaywood

Copy link
Copy Markdown
Contributor

is it intended that we lost the "active" part?

image

@github-actions github-actions Bot added the stale This issue is like stale bread. label Feb 23, 2026
@jakehwll jakehwll removed the stale This issue is like stale bread. label Feb 24, 2026
@jaaydenh

Copy link
Copy Markdown
Contributor

PromptSelectTrigger.tsx and PromptSelectTrigger.stories.tsx are no longer used. Should these be removed?

@jaaydenh jaaydenh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like having dropdownmenus scroll with the page is a suboptimal experience. Its hard to believe there is no better way to fix this.

Screenshot 2026-02-25 at 14 34 41

@jaaydenh

Copy link
Copy Markdown
Contributor

@jakehwll I pushed a commit that with a css change that should resolve the scrollbar layout shift issue without changing modal behavior on the dropdownmenu. If this looks good to you, lets remove all the dropdownmenu changes.

	@supports (scrollbar-gutter: stable) {
		html {
			scrollbar-gutter: stable;
		}

		html body[data-scroll-locked] {
			--removed-body-scroll-bar-size: 0 !important;
			margin-right: 0 !important;
			overflow-y: scroll !important;
		}
	}

@jakehwll jakehwll closed this Feb 27, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 27, 2026
@github-actions
github-actions Bot deleted the jakehwll/modal-dropdownmenu branch August 26, 2026 00:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants