Skip to content

A Liquid gallery exposes only its shown slide, and a rating can show half stars - #346

Merged
silveltman merged 2 commits into
mainfrom
t3/carousel-initial-visibility
Nov 26, 2026
Merged

silveltman merged 2 commits into
mainfrom
t3/carousel-initial-visibility

Conversation

@silveltman

@silveltman silveltman commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

A Shopify product gallery built on the Liquid carousel exposed its second image to the keyboard and screen readers right after load. Each slide was 690.66 px wide in a 691 px area, and the Liquid runtime always runs data-slot's carousel in multiple mode, which exposes every slide with any part in view, so the sliver of slide 2 counted.

Now a Liquid carousel with data-slides='single' runs in data-slot's own single mode: only the shown slide is exposed, whatever the width. Without the attribute nothing changes, so a row of cards still exposes every card in view. The docs, the gallery example and the skill tell a gallery to set it.

The theme's product rating also needs half stars, which the Liquid rating could not show: a star's svg took the width of its fill, so a 50% fill drew a half-size star. The svg now keeps the star's size and the fill clips it, as in Astro, and the example shows 4.5 stars.

The browser regression test gives the gallery a 300.6 px width and checks that only the shown slide is exposed, before and after a thumbnail click, and that a 50% fill clips a full-size star, in Chromium, Firefox and WebKit. Without the fixes both checks fail.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

A Liquid carousel with data-slides='single' exposes only its shown slide to the keyboard and screen readers. Before, a gallery whose width had a fraction of a pixel also exposed the next slide at load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for fulldev-ui ready!

Name Link
🔨 Latest commit 428add7
🔍 Latest deploy log https://app.netlify.com/projects/fulldev-ui/deploys/6b08b8e0287ea5f62918c25e
😎 Deploy Preview https://deploy-preview-346--fulldev-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

A star kept the width of its fill, so a half fill showed a half-size star. It now keeps its size and the fill clips it, as in Astro.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silveltman silveltman changed the title A Liquid gallery exposes only its shown slide, also at a fractional width A Liquid gallery exposes only its shown slide, and a rating can show half stars Nov 26, 2026
@silveltman
silveltman merged commit e3b5a89 into main Nov 26, 2026
7 checks passed
@silveltman
silveltman deleted the t3/carousel-initial-visibility branch November 26, 2026 23:06
@fulldev-release fulldev-release Bot mentioned this pull request Nov 26, 2026
silveltman pushed a commit that referenced this pull request Nov 26, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## fulldev-ui@0.27.1

### Patch Changes

- [#346](#346)
[`e3b5a89`](e3b5a89)
Thanks [@silveltman](https://github.com/silveltman)! - In Liquid, a
carousel with `data-slides='single'` exposes only its shown slide to the
keyboard and screen readers, as a product gallery needs. Before, a
gallery whose width had a fraction of a pixel also exposed the next
slide at load. Without the attribute, every slide in view stays exposed,
as in a row of cards. A Liquid rating can now show part of a star: a
`rating__fill` with a width, such as 50%, clips its star instead of
shrinking it.

<!-- codesmith:footer -->
---
<a
href="https://dashboardbackend.blacksmith.sh/track/run-proof?expires=1798326447&installation_model_id=442937&pr_number=347&ref=codesmith_pr_footer&repository=fulldotdev%2Fui&return_to=https%3A%2F%2Fgithub.com%2Ffulldotdev%2Fui%2Fpull%2F347&variant=proof_this_pr&signature=b9173ecef207e1f600b95c8cf35b9de9f3e6771ece9d95a0dd9880f93f2d8205"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-proof-this-pr-v2-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-proof-this-pr-v2-light.svg"><img
alt="Proof this PR"
src="https://pr-comments-assets.blacksmith.sh/codesmith/proof-proof-this-pr-v2-dark-3x.png"
width="121" height="28"></picture></a>
<sup><a
href="https://app.blacksmith.sh/fulldotdev/codesmith/ui/pr/347?autoLogin=true&ref=codesmith_pr_footer">Open
in [code]smith</a> · Need help on this PR? Tag
<code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Co-authored-by: fulldev-release[bot] <336258566+fulldev-release[bot]@users.noreply.github.com>
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.

1 participant