publiccode.net icon indicating copy to clipboard operation
publiccode.net copied to clipboard

Research potential upgrade to Lightbox code for new Codebase pages

Open angelplasma opened this issue 5 years ago • 0 comments

Context: The new Codebase pages feature screenshot galleries, which uses a very simple CSS lightbox gallery. The gallery itself works well, while avoiding Javascript, but it has one drawback: The gallery adds states to the browser history.

Issue: From a user perspective: After viewing the gallery, the browser's back button steps back through the gallery view states, instead of navigating to the previous web page. The back button thus acts counter-intuitively.

From a code perspective: The code's use of content-less hashes (to make its UI functional) causes Travis conflicts, and our bypassing of Travis' proofing may enable the system's acceptance of faulty links.

Desired solution:

  • Gallery viewing should not affect the browser's standard back/forward navigation functions
  • If possible, stick with a pure CSS solution

angelplasma avatar Jan 28 '21 02:01 angelplasma