digitallinguistics / data-explorer

The DLx portal for viewing, searching, and aggregating data
https://data.digitallinguistics.io
MIT License
3 stars 0 forks source link

Lexeme Details: avoid page jump when clicking tabs #436

Open dwhieb opened 1 year ago

dwhieb commented 1 year ago

Clicking a tab causes the page to jump to the target panel (this is the expected behavior for browsers for same-page links). This is a disruptive and annoying user experience.

Rework the tabs to use JavaScript rather than the :target selector. Use progressive enhancement, so that all sections are displayed if JavaScript isn't working. You already needed JS for the tabs interface to work anyway.