I want to share a patch of a feature for the Contextual Link module (core).
The patch allow to disable the dropdown menu of contextual link until the page is refreshed.
The problem: Sometimes the contextual link breaks the layout and sometimes we want to click on a link that is behind of the gear of a contextual link.
Solution: To disable the contextual link temporarily for some region, just click on the gear over the region and select "Disable" to hide this. To view the contextual on this region again, just refresh the page. The "Disable" option is added when the patch is applied.
I hope you enjoy.
Comment | File | Size | Author |
---|---|---|---|
#4 | contextual_link-disable_contextual_link_temporarily-2570479-4.patch | 1.4 KB | lucass |
Comments
Comment #2
lucass CreditAttribution: lucass commentedComment #4
lucass CreditAttribution: lucass commentedComment #5
lucass CreditAttribution: lucass commentedComment #6
lucass CreditAttribution: lucass commentedComment #7
lucass CreditAttribution: lucass commentedComment #8
Bojhan CreditAttribution: Bojhan as a volunteer commentedThis looks like an interesting idea.
However I am not sure about its placement and or premise. We shouldn't be disabling interface elements if that is to solve a bug. Instead we should look into how to resolve the bug.
Comment #9
gilsbert CreditAttribution: gilsbert commentedComment #10
gilsbert CreditAttribution: gilsbert commentedHi. The feature does not remove the interface element. It does give us an option to close it when we need to click on something that is behind it on the page. It is working and I hope it can be commited.
Comment #11
Fabianx CreditAttribution: Fabianx as a volunteer commentedI am unfortunately not convinced:
a) This might be breaking existing sites.
b) This could be done easily within a contrib module.
c) Our UX maintainer is not convinced as well.
I suggest to move this to a contrib module with name 'contextual_links_disable'.
I do not think it belongs in core.