-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Affix support cssVar #45807
feat: Affix support cssVar #45807
Conversation
|
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit f83bbca:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature #45807 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 706 706
Lines 12046 12045 -1
Branches 3197 3197
=========================================
- Hits 12046 12045 -1
☔ View full report in Codecov by Sentry. |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at c844f37
The pull request adds theme support for the Affix component by using CSS variables for styling. It introduces a new
cssVar.ts
file to export a custom hook for the component, and updates theindex.tsx
andstyle/index.ts
files to use the hook and the theme helper functions.🔍 Walkthrough
🤖 Generated by Copilot at c844f37
useCSSVar
hook to register and apply CSS variables for Affix component (link, link, link)cssVar.ts
file to exportuseCSSVar
hook for Affix component (link)prepareComponentToken
function to define and merge default token values for Affix component (link, link)