-
Notifications
You must be signed in to change notification settings - Fork 6
Replace Popper.js with Floating UI or the native Popover API #359
Description
Just like the PatternFly React components, PatternFly Java components rely on the outdated Popper.js library for positioning dropdowns, tooltips, and popovers. This is done by bundling Popper.js code inline and by wrapping the JS code with mapped JsInterop classes.
There's a PatternFly epic about replacing Popper.js with Floating UI. We can follow this approach and replace the internal inlined Popper.js code with Floating UI.
Another option would be to use the native Popover API. This would remove the dependency to an external library. A similar approach has already been discussed for PatternFly itself. This approach seems promising but means a heavy refactoring. Quite a lot of components rely on the current Popper.js-based implementation. It's unsure if all the current features of Popper.js (flip, arrow, hide) would still be available. It would require extensive testing.