Skip to content

Style the Buy button like the other sidebar buttons - #13642

Open
lokesh wants to merge 3 commits into
internetarchive:masterfrom
lokesh:buy-button-style
Open

lokesh wants to merge 3 commits into
internetarchive:masterfrom
lokesh:buy-button-style

Conversation

@lokesh

@lokesh lokesh commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator
Screenshot 2026-09-15 at 12 09 10 PM

The Buy button in the book sidebar was a dark grey one-off with a cart icon and a PNG caret, taller than the buttons around it. It now looks like the Preview, Search and Borrow buttons beside it, so the panel reads as one set of controls, and the caret flips when the menu is open.

Technical

The trigger uses .ol-button-static, the light-DOM twin of <ol-button> secondary, so its size and colors come from the shared tokens. buy-popover.css keeps only the full-width and chevron rules.

Testing

Open /books/OL24337798M and click Buy.

Screenshot

see above

Stakeholders

@cdrini @mekarpeles

The Buy trigger in the book sidebar was a bespoke dark grey button with
an absolutely positioned cart icon and a PNG caret in its own bordered
cell. It now takes the secondary look from .ol-button-static, the
light-DOM twin of ol-button, so its height, border, radius, shadow, font
and hover come from the same tokens as every other button. The cart icon
is dropped and the caret is the sprite's chevron, which rotates while the
popover is open.
@lokesh
lokesh marked this pull request as ready for review September 15, 2026 19:14
@lokesh lokesh added the Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] label Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants