Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Oct 29, 2025

Note

Enhances the $ affix to auto-convert capitalized tokens into sub-element selectors and support chained selectors, with docs and tests.

  • Core (tasty renderer)
    • Add transformSelectorAffix() and update getSelector() in src/tasty/utils/renderStyles.ts to interpret $ affix.
    • Auto-convert capitalized tokens to sub-element selectors and support chains (e.g., $: '> Body > Row >').
    • Support empty affix ($: '') as descendant selector; retain default descendant behavior when $ is absent.
  • Docs
    • Add “Selector Affix ($)” section with examples in src/stories/Tasty.docs.mdx.
  • Tests
    • Add tests in src/tasty/tasty.test.tsx for empty affix and complex chains; verify direct child and descendant selector behaviors.

Written by Cursor Bugbot for commit 1710539. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2025

🦋 Changeset detected

Latest commit: 1710539

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

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit 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

@vercel
Copy link

vercel bot commented Oct 29, 2025

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

Project Deployment Preview Comments Updated (UTC)
cube-ui-kit Ready Ready Preview Comment Oct 29, 2025 11:55am
cube-ui-kit-cursor Ready Ready Preview Comment Oct 29, 2025 11:55am

@github-actions
Copy link
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-9900c4d.

@github-actions
Copy link
Contributor

🏋️ Size limit report

Name Size Passed?
All 295.15 KB (+0.07% 🔺) Yes 🎉
Tree shaking (just a Button) 32.13 KB (+0.16% 🔺) Yes 🎉
Tree shaking (just an Icon) 19.43 KB (+0.28% 🔺) Yes 🎉

Click here if you want to find out what is changed in this build

@github-actions
Copy link
Contributor

🧪 Storybook is successfully deployed!

@tenphi tenphi merged commit b27ab4b into main Oct 29, 2025
14 checks passed
@tenphi tenphi deleted the feat-sub-element-selector-affix branch October 29, 2025 12:09
@github-actions github-actions bot mentioned this pull request Oct 29, 2025
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