Repository navigation
A Liquid gallery exposes only its shown slide, and a rating can show half stars - #346
Merged
Merged
Conversation
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>
✅ Deploy Preview for fulldev-ui ready!
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>
Merged
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
multiplemode, 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