Closed (fixed)
Project:
UI Suite Bootstrap
Version:
5.2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2025 at 16:26 UTC
Updated:
3 Jan 2026 at 15:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
grimreaperComment #3
grimreaperWhen clicking on the contextual links pen, it opens and you can scroll down.
This is a Core feature/behavior, nothing special done in Sobki.
I guess in Core, there should be a check in JS to open to the top instead of to the bottom, but would require to use an external library that handles that.
Comment #4
grimreaperOr maybe in USB we can override contextual links to use https://getbootstrap.com/docs/5.3/components/popovers/ to render it. And the direction should be automatic.
Comment #5
laetitia_al commentedLet's try that !
Comment #6
grimreaperComment #7
grimreaperNeed help with contextual link JS, how better to integrate.
Comment #9
grimreaperShowing screenshots.
Comment #10
grimreaperComment #11
grimreaper2 remaining problems:
- popover state is not synced with the backbone model state
- not possible to access the links inside the popover with the keyboard
Comment #12
grimreaperMorning thought, instead of popover, maybe change into a dropdown (which if I remember correctly can also open automatically where there is enough space).
Comment #14
grimreaperdiscussed with @tocab, Bootstrap popovers can't have interactive links. So focus don't go in it.
I will try to use dropdowns instead.
Comment #15
grimreaperComment #17
grimreaperComment #18
grimreaperIt breaks the contextual links in admin theme.
Comment #19
grimreaperComment #21
grimreaperChange reverted and marking as postponed until Core issue is resolved.
Comment #22
grimreaperComment #25
grimreaperParent issue is now merged!
To restore when Core 11.3 will be released.
And need to update Core requirement.
Comment #27
grimreaper