You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When navigating to the MetaMask API Playground using an anchor link of one of the API methods does expand the section, but does not scroll to that section. Therefore when trying to link from (for instance) documentation or blog articles, if the method is beyond the fold (bottom of the screen) the user may feel that they have not navigated correctly and will have to scroll on their own.
A good example of this is a method we like to link to a lot from various places: eth_chainId
The purpose of this issue is to add the functionality needed, which could be something like:
if(window.location.hash){// Extract the anchor point from the URLconstanchor=window.location.hash.substr(1);// Scroll to the anchor point on the pagewindow.scrollTo({top: document.getElementById(anchor).offsetTop,behavior: 'smooth'});}
Something like that.
The text was updated successfully, but these errors were encountered:
When navigating to the MetaMask API Playground using an anchor link of one of the API methods does expand the section, but does not scroll to that section. Therefore when trying to link from (for instance) documentation or blog articles, if the method is beyond the fold (bottom of the screen) the user may feel that they have not navigated correctly and will have to scroll on their own.
A good example of this is a method we like to link to a lot from various places:
eth_chainId
The purpose of this issue is to add the functionality needed, which could be something like:
Something like that.
The text was updated successfully, but these errors were encountered: