Skip to content

Fix Share dialog layout and update X branding (#1629) - #1630

Open
Manas756 wants to merge 1 commit into
internetarchive:masterfrom
Manas756:fix/1629-share-dialog-ui
Open

Manas756 wants to merge 1 commit into
internetarchive:masterfrom
Manas756:fix/1629-share-dialog-ui

Conversation

@Manas756

Copy link
Copy Markdown

Description

Fixes #1629

This PR resolves layout, responsiveness, and usability issues in the BookReader Share dialog.

Root Cause

Self-closing <i> tags caused browsers to incorrectly nest labels inside icon elements. Fixed modal dimensions and hidden overflow further contributed to overlapping and clipped content.

Additionally, Colorbox moves the dialog outside the reader container, affecting the page-sharing checkbox lookup.

Changes

  • Corrected malformed icon markup.
  • Standardized Facebook, X, and Email button dimensions and alignment.
  • Replaced legacy Twitter branding with the X logo.
  • Added responsive button stacking on narrow screens.
  • Fixed page-sharing checkbox alignment and lookup.
  • Improved modal scrolling and Finished button positioning.
  • Improved keyboard focus behavior.
  • Added regression tests for sharing controls, URLs, and embed options.

Verification

  • 727 Jest tests passed across 60 suites, with 6 skipped.
  • Lint passed.
  • Production build passed.
  • git diff --check passed.
  • Verified four viewport sizes in headless Chrome.
  • Verified keyboard focus and dismissal.
  • Verified book and page-specific sharing links.
  • Verified embed controls and generated sharing destinations.

External social media posting, native email delivery, and cross-browser testing were not performed.

Screenshots

Before

before

After — Desktop

after-desktop

After — Mobile

after-mobile

After — Short Viewport

after-short-scrolled

Copilot AI balanced review requested due to automatic review settings November 28, 2026 13:23
@netlify

netlify Bot commented Nov 28, 2026

Copy link
Copy Markdown

👷 Deploy request for ia-bookreader pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 085400b

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Share dialog layout, button alignment, and outdated Twitter branding

2 participants