Add directional variants to .sf-overflow-fade macro - #441
Conversation
Add six directional overflow-fade variants (--right, --left, --top, --bottom, --block, --inline) as standalone classes using real alpha mask-image gradients. Each sets overflow:hidden and its own directional linear-gradient with --sf-mask-scrim-start/end. Also migrates the base .sf-overflow-fade from --sf-scroll-shadow-size to --sf-mask-scrim-end for token consistency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W3cC2BQwGM6WMyHtycK4yn
|
Warning Review limit reached
More reviews will be available in 40 minutes. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoAdd directional variants to .sf-overflow-fade macro Description
Diagram
High-Level Assessment
Files changed (11)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
6 rules 1.
|
Remove misleading "inline-end" language and add an explicit note that all directional variants use physical edges. RTL users who need logical inline-end fading should add a :dir(rtl) override. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W3cC2BQwGM6WMyHtycK4yn
All new directional macro classes must appear in docs/demo.html to satisfy the selector-coverage regression test. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W3cC2BQwGM6WMyHtycK4yn
Extends the
.sf-overflow-fademacro with six new directional modifier classes to support fading on specific edges or axes, rather than only the default right edge.Changes
New macro variants in
core/macros.css:.sf-overflow-fade--right— explicit alias for default (right/inline-end edge).sf-overflow-fade--left— left/inline-start edge.sf-overflow-fade--top— top/block-start edge.sf-overflow-fade--bottom— bottom/block-end edge.sf-overflow-fade--block— both top and bottom edges simultaneously.sf-overflow-fade--inline— both left and right edges simultaneouslyRefactored mask variable naming: Changed
--sf-scroll-shadow-sizeto--sf-mask-scrim-start/--sf-mask-scrim-endfor clarity and to support multi-directional fadesUpdated documentation (
docs/macros.md):API registry updates: Added all six new classes to
docs/api-index.json,docs/classes.md,docs/registry.json, andconfigurator/src/data/classes.generated.jsonTest coverage: Added parametrized tests for all six variants to verify mask gradient and overflow:hidden are applied correctly
Metrics: Total class count increased from 233 to 239; macro classes from 36 to 42; PUBLIC tier from 868 to 874
Implementation notes
All variants use the same mask-image approach (linear-gradient with alpha masking) and respect the element's background. The refactored variable names (
--sf-mask-scrim-start/--sf-mask-scrim-end) make the intent clearer and allow independent control of fade depth on each edge.https://claude.ai/code/session_01W3cC2BQwGM6WMyHtycK4yn