ui_patterns
                                
                                 ui_patterns copied to clipboard
                                
                                    ui_patterns copied to clipboard
                            
                            
                            
                        Contextual links are lost when a pattern is rendered
Using a pattern for the output of a node, the node's contextual links are not passed through to the template for rendering. It would be useful to have these available for printing in the twig file so as not to lose functionality and UX.
Hello @tanc ! So you use a pattern to render, say, a node teaser view mode and then contextual links are not working anymore right?
@ademarco exactly!
Hey guys, could you check if the current branch works for you? It assumes that the containing pattern element has position: relative; but that's on the theme level, hence outside the scope of the module.
could you check if the current branch works for you?
@ademarco I cannot see any new commits or am I missing something?
@yannickoo check the 104-contextual-links branch, it hasn't been merged into 8.x-1.x yet.
@ademarco I'll try and test this week, thanks for the commit!
Has anyone confirmed that the contextual menus work correctly now?
Apologies, I never got to test properly as a project using UI Patterns finished and another one hasn't started yet. I should be able to test on a new project soon
Finally got round to testing this and its looking good. With this patch the contextual links are showing for node based patterns. I wasn't getting contextual links for views based patterns.
The fix from 104-contextual-links doesn't appear to fix the issue of my layout pattern showing its contextual links.