Skip to content

fix(theme): target known control classes in field-group border-joining selectors#274

Merged
alexgrozav merged 2 commits into
mainfrom
alexgrozav/create-pr-v1
Jun 22, 2026
Merged

fix(theme): target known control classes in field-group border-joining selectors#274
alexgrozav merged 2 commits into
mainfrom
alexgrozav/create-pr-v1

Conversation

@alexgrozav

Copy link
Copy Markdown
Contributor

Description

Replace the generic & > *:not(:last-child) / & > *:not(:first-child) selectors in the field-group horizontal and vertical layout with targeted :where/:is selectors scoped to known control classes (.input, .textarea, .select, .button, .dropdown). This prevents non-control children (labels, dividers, icons) from accidentally having their borders stripped, and uses :where as the subject anchor (0 specificity) paired with :is for the adjacency key ((0,1,0) specificity) for correct cascade behavior.

Related issue

Type of change

  • 🐞 Bug fix (non-breaking change that fixes an issue)

Checklist

  • My commits follow Conventional Commits with a package scope (e.g. feat(theme): …)
  • I ran pnpm build:nodocs && pnpm lint && pnpm typecheck && pnpm test and everything passes
  • I added a changeset (pnpm changeset) for changes to publishable packages, or this change only touches docs/storybook/app/playground/tests
  • I added or updated tests where relevant
  • I updated documentation where relevant
  • I did not edit generated files (dist/, .styleframe/)
  • My PR targets main and stays focused in scope

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
storybook-styleframe-dev Ready Ready Preview, Comment Jun 22, 2026 8:00am
styleframe-dev Ready Ready Preview, Comment Jun 22, 2026 8:00am

Request Review

@changeset-bot

changeset-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ae3b9cb

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

This PR includes changesets to release 2 packages
Name Type
@styleframe/theme Patch
@styleframe/playground 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

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alexgrozav alexgrozav merged commit 2092696 into main Jun 22, 2026
15 checks passed
@alexgrozav alexgrozav deleted the alexgrozav/create-pr-v1 branch June 22, 2026 08:03
@github-actions github-actions Bot mentioned this pull request Jun 23, 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.

1 participant