Skip to content

Add new carousel read button definition #10630

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

Merged

Conversation

SivanC
Copy link
Contributor

@SivanC SivanC commented Mar 26, 2025

Closes #10628

Fixes squared corners and improper padding of read buttons in carousels

Technical

Instead of using the isCarousel flag in macros/ReadButton.html to toggle the rendering of the <details> element within the attached-dropdown read button, instead determine whether to generate the attached-dropdown read button at all or instead a "vanilla" read button that doesn't have the <details> element or any dropper-related class tags.

Testing

  1. Go here (testing link)
  2. Observe that IA read buttons (e.g. Read, Borrow) are identical in shape and positioning to other buttons (Preview, non-IA provider, etc.) in carousels

Screenshot

Stakeholders

@mekarpeles - Let me know if this works! Looks alright to me with the primitive testing method I have available

@mekarpeles mekarpeles self-assigned this Mar 31, 2025
@mekarpeles mekarpeles added the Priority: 2 Important, as time permits. [managed] label Mar 31, 2025
@mekarpeles mekarpeles merged commit ae0c6c6 into internetarchive:master Apr 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 2 Important, as time permits. [managed]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect Styling for Read Buttons in Edition-Aware Carousels
2 participants