Investigating tying `sp-dropdown` and `sp-action-menu` into overlay system
See original GitHub issueExpected Behaviour
Content should be available on top of everything!
Actual Behaviour
Some content can flow over the dropdown/action-menu content.
Reproduce Scenario (including but not limited to)
Put content after the dropdown or action-menu with a very high z-index…
Possibilities
This may be manageable by adding a fallback to the overlay
system that hoists overlay content to the <body/>
when and overlay-root
is not available. Further research should go into whether popover
, which powers these elements, should deliver this feature by default.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, here’s what some of my teammates hit when trying to use the dropdown.
It is rendering underneath the surrounding screen elements and the clicks are going to elements underneath (an
sp-checkbox
)@Westbrook can you elaborate more on option 1 here? I’m not sure I quite understand the need to do slot flattening.
Surely if the slotted content in the dropdown element (i.e. the sp-menu) is attached as content payload to the
sp-overlay:open
event then there’s no need to do any additional walking of the dom to gather slotted nodes? You’re just taking the top level content that was slotted into the dropdown.