-
When a lightbox is escaped [esc key/close button pressed], focus should return the element that triggered it in order to not confuse or frustrate the user, especially if they are not sighted. It does not do this, rather it returns to the top of the page.
-
Triggering a lightbox containing a video should, I think, be triggered via a
<button>
element rather than an<a>
, as it’s an action that occurs without reloading or traveling to a new page? However, even though Cwicly allows the settings for video lightboxs when the trigger HTML element is set to ‘button’, it does not work, due to the lightbox script requiring the url be passed via a href.
Environment info
- WordPress version: 6.4.1
- Cwicly Plugin version: 1.3.4.1