Repository navigation
Native dialogs and popovers for modals, dropdowns and the reaction picker - #4280
Merged
Merged
Conversation
jcbrand
marked this pull request as ready for review
November 29, 2026 14:45
jcbrand
force-pushed
the
native-dialog-overlays
branch
from
November 29, 2026 15:10
244514d to
a49e8f3
Compare
jcbrand
force-pushed
the
native-dialog-overlays
branch
from
November 29, 2026 15:18
a49e8f3 to
4a7fbc0
Compare
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.
Replaces the Bootstrap modal, dropdown and popover JavaScript with the browser's own
<dialog>and Popover API.showModal(). Escape, the mobile back gesture, a click on the backdrop and the header's close button close them, focus goes back to the opener, and scrolling stays inside the modal. The footer's redundant Close button is gone. Confirm and alert prompts resolve from the dialog's return value. Theapi.modalmethods are unchanged.DropdownBase, and the reaction picker, arepopover="auto"elements placed with CSS anchor positioning. They draw above everything else, so scrolling panes no longer clip them, and they flip to stay on screen. The browser closes them on Escape and on a click outside. Arrow-key navigation, theshowclass and theconverse:dropdown:*events are unchanged.@oddbird/popover-polyfillare separate chunks, loaded only in browsers without anchor positioning or popover support.No more Bootstrap JavaScript hooks. No Bootstrap JavaScript is left in the bundle, and the markup no longer carries Bootstrap's
data-toggle,data-targetordata-bs-dismissattributes, which a host page's own Bootstrap would act on. Bootstrap's CSS classes are kept.Breaking for plugins with their own modals:
converse:modal:*events; the*.bs.modalevents are gone.data-converse-dismissclose a modal;data-bs-dismissno longer does.Fixes #1440
Testing: the suite runs in Chromium only. The Popper fallback was checked by hand with anchor positioning switched off; the popover polyfill is not tested.