No problem. The issue doesn’t happen when the plugin is disabled probably because the URL in browser’s address bar gets changed (the hash #id is added in the URL) so the focus is no longer on the link. This of course doesn’t happen when the page scrolls smoothly to the target). You can of course test that the focus is gone when you click anywhere on the page.
The :focus-within
and its styling is added by your theme (“Page scroll to id” has nothing to do with this). This is the CSS of the theme which makes the focused link highlighted:
#-pro-menu-46-35 .oxy-pro-menu-list .menu-item.menu-item.menu-item.menu-item a:hover, #-pro-menu-46-35 .oxy-pro-menu-list .menu-item.menu-item.menu-item.menu-item a:focus-within {
color: #ffffff;
background-color: #018447;
}
By adding the CSS I posted, we simply “reverse” this highlighting for the “page scroll to id” menu links.
If this focus-highlight behavior didn’t happen before it’s probably because it was added after a theme update. Have you updated the theme recently?
This whole issue is not something abnormal or a bug etc. If the theme highlights the focused link then it’s a normal behavior.
In short, the reason this happens is because the theme highlights the focused links and the links stay focused seemingly because the page’s URL in the browser’s address bar does not change (due to plugin’s smooth scrolling functionality).
Maybe you can test this by going to “Page scroll to id” settings and enabling “Append the clicked link’s hash value to browser’s URL/address bar” option.