guardian / guardian/dotcom-rendering

Apply gradient to top and bottom of clue list when scrollable

Open
#13,543 0 comments 0 reactions 0 assignees View on GitHub
crosswords good first issue Pick me up
Dominant language
TypeScript
Stars
274
Forks
34
Avg merge
2d 22h
Merged PRs (30d)
121

Description

Currently we apply a gradient to the bottom of the clue list when there are more clues that are hidden and can be scrolled into view, but don't apply the same treatment to the top of the list to show it can be scrolled in the other direction.

We could also replace the debounce on the scroll and resize events so the visibility of the gradient changes whilst still scrolling rather than waiting until stopped. It uses debouncing rather than throttling as `lodash.debounce` is already a dependency in DCR — we could add `lodash.throttle` (or similar), or roll our own.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.