Skip to content

fix(Select): restore initial highlight in unpadded Select.Viewport#1956

Merged
huntabyte merged 2 commits intohuntabyte:mainfrom
michelheusschen:fix/select-highlight-unpadded-viewport
Feb 18, 2026
Merged

fix(Select): restore initial highlight in unpadded Select.Viewport#1956
huntabyte merged 2 commits intohuntabyte:mainfrom
michelheusschen:fix/select-highlight-unpadded-viewport

Conversation

@michelheusschen
Copy link
Contributor

Fixes initial highlighting when Select.Viewport has no padding by checking for inclusive viewport bounds.

Reproduction: https://stackblitz.com/edit/qt2mghjf?file=src%2Froutes%2F%2Bpage.svelte

  • Uses the Select demo code with class="p-1" removed from the viewport
  • Open the select, no items will be highlighted and arrow navigation is not possible

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

🦋 Changeset detected

Latest commit: ec2f7d4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
bits-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
bits-ui ✅ Ready (View Log) Visit Preview ec2f7d4

Copy link
Owner

@huntabyte huntabyte left a comment

Choose a reason for hiding this comment

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

Thank you!

@huntabyte huntabyte merged commit 5599131 into huntabyte:main Feb 18, 2026
6 checks passed
@github-actions github-actions bot mentioned this pull request Feb 18, 2026
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.

2 participants