Skip to content

Improvement/scroll fade table#1072

Draft
JeanMarcMilletScality wants to merge 7 commits intodevelopment/1.0from
improvement/scroll-fade-table
Draft

Improvement/scroll fade table#1072
JeanMarcMilletScality wants to merge 7 commits intodevelopment/1.0from
improvement/scroll-fade-table

Conversation

@JeanMarcMilletScality
Copy link
Copy Markdown
Contributor

Add scroll fade effect in Table component

JBWatenbergScality and others added 7 commits April 15, 2026 11:53
Adds a zero-JS bottom fade effect via CSS Scroll-Driven Animations +
mask-image. Applying class="scroll-fade" to any overflow-y: auto/scroll
element gives a 2.5rem bottom gradient that auto-hides when the user
reaches the end of the list — no React state, no scroll listeners.

How it works:
  • @Property --scroll-fade-bottom (initial-value: 0rem) drives the
    mask-image gradient stop.
  • @Keyframes scroll-fade-out animates it 2.5rem → 0rem over the final
    2.5rem of the scroll range (animation-range: calc(100% - 2.5rem) 100%).
  • fill-mode: both keeps the fade visible from scroll-top until near-
    bottom, then holds it hidden once fully scrolled.
  • When there is no overflow the scroll timeline is inactive, so the
    initial-value (0rem = no mask) applies — content is never clipped.

Graceful degradation: browsers without scroll-driven animations (Firefox,
Safari) get an inactive timeline → initial-value → no fade, no clipping.

Requires Chrome/Edge 115+ for the fade effect to be active.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Removes the .scroll-fade utility class in favour of a universal rule:
@supports (animation-timeline: scroll()) { * { ... } }

The scroll-driven animation is now active on every element, but only
produces a visible effect when the element actually overflows — non-
scrollable elements have an inactive scroll timeline, so the @Property
initial-value (0rem) applies and the mask is a transparent no-op.

Also adds animation-duration: 1ms as a workaround for the Gecko
activation quirk (Firefox Nightly 136+, targeting stable in Firefox 151
~May 2026 as part of Interop 2026). The value is ignored by scroll-
driven animation progress but required to initialise Firefox's animation
sampling loop.

Uses individual animation-* longhands (not the shorthand) so that any
more-specific component-level animation declaration overrides this rule
without conflict.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…orts guard

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moves scrollbar.stories.tsx into a ScrollbarWrapper/ folder, converts
it to typed StoryObj, and adds a guideline MDX covering the component
purpose and the scroll-fade utility class.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 15, 2026

Hello jeanmarcmilletscality,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 15, 2026

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

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.

3 participants