Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix click targets in search results slideshow modal #1371

Closed
ggeisler opened this issue Dec 14, 2021 · 7 comments
Closed

Fix click targets in search results slideshow modal #1371

ggeisler opened this issue Dec 14, 2021 · 7 comments
Assignees
Labels

Comments

@ggeisler
Copy link
Contributor

ggeisler commented Dec 14, 2021

[Edit: I now see I filed a ticket in blacklight-gallery about this earlier this year]

In the search results slideshow modal, the previous and next button click targets appear offset. As shown below (and this seems consistent in Firefox, Chrome, and Safari), we have a large click target, which is good, but instead of starting at the top of the modal, it seems to start at the button itself, and then extends down the height of the modal (but because it is offset, that target extends below the modal):

Screen Shot 2021-12-13 at 5 32 34 PM

The click target should be shifted up, so that it extend from the top of the modal (leaving room for the close button) to the bottom edge.

I saw several users get frustrated (or at least confused) by this when using the slideshow view.

Note that this would be work on the blacklight-gallery gem, so would benefit any project that uses that gem, including Stanford Exhibits, where I also see the problem.

@ggeisler ggeisler added the bug label Dec 14, 2021
@thatbudakguy thatbudakguy self-assigned this Feb 3, 2022
@thatbudakguy
Copy link
Member

thatbudakguy commented Feb 8, 2022

@ggeisler (or @jacobthill) this change is ready for review.

@jacobthill
Copy link
Contributor

Thanks @thatbudakguy. @ggeisler this looks good to me but I would prefer you to confirm this before calling it done.

@ggeisler
Copy link
Contributor Author

ggeisler commented Feb 9, 2022

@jacobthill Yep, this looks perfect. Thanks @thatbudakguy!

@mwerla
Copy link

mwerla commented Feb 23, 2022

@jacobthill Target clicks looks ok, but I noticed that the slideshow view allows you to go through the current page of search results only. So in the above example (https://dev.dlmenetwork.org/library/catalog?q=qatar&search_field=all_fields&view=slideshow) clicking on right arrow to see next item instead of item 13 will give you item 1:

image

@jacobthill
Copy link
Contributor

@ggeisler I think the issue @mwerla noted need to be broken out into a separate Spotlight ticket. Can you verify?

@thatbudakguy
Copy link
Member

thatbudakguy commented Feb 23, 2022

@jacobthill i think this problem is actually already tracked on the blacklight-gallery plugin: projectblacklight/blacklight-gallery#4 ...albeit, the issue is 8 years old! more comments on that issue about expected behavior would be helpful, I think. but imo we can close this issue.

@ggeisler
Copy link
Contributor Author

Yes, that Blacklight Gallery ticket @thatbudakguy found (thanks!) is still valid and fixing it should fix the problem @mwerla noted.

Just to update things, I added a comment on the Blacklight Gallery ticket with the behavior I'd expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: QA QNL
Development

No branches or pull requests

4 participants