ec-europa / europa-component-library

ECL - Europa Component Library
https://ec.europa.eu/component-library
European Union Public License 1.1
124 stars 35 forks source link

In-page navigation odd behaviour when Drupal Toolbar is present #3608

Open dhamaris opened 1 week ago

dhamaris commented 1 week ago

Hello, I am using ECL 4.6.3 and I am finding an odd behaviour when using inpage navigation with toolbar from Drupal. When I click on a menu link, the one that gets the focus is the one above it. In the example I clicked on "Accprdion 3" but it was as tthough I clicked "accordion 2". And so with every link, the one above gets selected Screenshot from 2024-09-05 17-27-53

This does not happen when i am not administrator, and i don't see this sticky toolbar from Drupal:

image

The point in code where I think that the wrong element gets selected is this one, so I thought it must have to do with the toolbar disturbing this functionality of selecting an element when its heading is withing a threshold in the viewport. image image

Can you confirm if that is the case? Or otherwise where could be the issue here. Thanks

planctus commented 1 week ago

Hello @dhamaris, being this an issue that you experience when logged in in your Drupal website, we cannot directly offer you support, we would need to reproduce somehow the issue you have in a different environment for being able to help you. Do you have any environment where you could give us access as "registered users"..? I'd say this is very minor, anyway, the inpage is meant to work as a navigation element for the end user, this issue you experience, being limited to the logged in user, it's something we might not necessarily have to support, but let's see if we can identify the reason for this.

dhamaris commented 1 week ago

Thank you @planctus, next week I will try to provide you with a testing URL to see if you can identify the problem. As you say, it is a minor thing, thank you for taking a look into it.

dhamaris commented 1 week ago

Hello @planctus, can you check if you can access the following URL?

https://euromod-eclv4.apps.ocpt.jrc.cec.eu.int/my-ecl-page-testing

Let me know if you can connect to it and I will show you how to reproduce the issue. Thank you

planctus commented 5 days ago

mmh..no, i couldn't, tried from the remote desktop as well, there i get a "timeout", the server took too long to respond.

dhamaris commented 5 days ago

By remote desktop you mean the VPN using the proxy from the EC? I think these links are visible on the Welcome network, do you have access to them?