Replace dialog positioning with floating-ui

Created on 13 May 2024, 7 months ago
Updated 23 August 2024, 3 months ago

Problem/Motivation

I think this is a good candidate for further simplifying the dialog.
The library is already in the core.
The truth is still marked as internal.
But it may also appear here https://www.drupal.org/project/drupal/issues/3197758 ✨ Create a new component: Toggletip RTBC

Proposed resolution

floating-ui, in addition to very flexible positioning tools, has two interesting features:

1. https://floating-ui.com/docs/autoUpdate which allows you to turn off other listeners
2. https://floating-ui.com/docs/virtual-elements What allows you to use the virtual element created by Drupal.displace

Remaining tasks

Now basically everything works in this MR.
Minor changes are needed to fully support all previous positionOptions.

I'll send a review request. But mainly to listen to feedback.

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
JavascriptΒ  β†’

Last updated 1 day ago

Created by

πŸ‡·πŸ‡ΈSerbia finnsky

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024