juxtopposed / stacksorted

Find Inspiration in Design Elements.
https://stacksorted.com
263 stars 36 forks source link

Modals impair backwards navigation #22

Open p5quared opened 1 year ago

p5quared commented 1 year ago

Modals appear to be coupled to <Router />, assumedly so you can share links to elements, e.g.: https://stacksorted.com/grids/apple-iphone-14.

However, backwards navigation does not relaunch modals, causing the appearance of broken navigation.

Recreation:

  1. Open any /category.
  2. Click on some elements and open modals.
  3. Press back button a number of times.

Doing this a number of times with different steps, like opening modals, switching category, opening modals, and trying to 'back' repeatedly, yields somewhat unpredictable results. Even try using the site for a little bit, then clicking down the categories one by one, and then pressing back a few times.

This effect is almost certainly affecting accessibility.

Thoughts

p5quared commented 1 year ago

See #23

p5quared commented 1 year ago

Here is a demonstration of the backwards navigation issue I encountered. Link

kalisnetwork commented 1 year ago

Yeah! it happened to me once , For an instance we cannot go backwards or get out of site, It just keep on looping and we stuck on site.

Example : Try to get into three sections and repeat once up and down then you stuck forever there.