openlibhums / janeway

A web-based platform for publishing journals, preprints, conference proceedings, and books
https://janeway.systems/
GNU Affero General Public License v3.0
172 stars 65 forks source link

Figure modal a11y improvements #4239

Open StephDriver opened 4 months ago

StephDriver commented 4 months ago

from #4194

Consider - if the enlargement has no difference in alternative text to the smaller version, making it obvious in the link so that users can decided whether to stick with the main article instead.

joemull commented 20 hours ago

Refinement: We need to consider this primarily for the clean theme. The bug was discovered when testing on OLH theme, but clean theme should be prioritized. The JS utility we use for this feature is the same on both, though the HTML and CSS would of course be theme-specific.

We should consider whether there is an accessible bootstrap-provided utility for this that better integrates with clean HTML and CSS than the lightbox utility that we are currently using.

An even simpler alternative is the standard HTML element popover which should be considered if it is the simplest solution.