User:Jroberson108/Template:Sticky table start/ScrollCue

Template:Sticky table start/ScrollCue
DescriptionAdds bottom shadow to Template:Sticky table start scrollable area to help with discoverability
Author(s)Jroberson108
StatusWorking
First releasedJuly 3, 2025; 46 days ago (2025-07-03)
UpdatedAugust 4, 2025
    (13 days ago)
SkinsMinerva Neue or other skins on WebKit browsers
Source

On Apple devices, scrollable areas may not be visually apparent in browsers using the WebKit engine (such as browsers on iOS, iPadOS, and macOS) because scrollbars are hidden except during active scrolling. Android browsers behave similarly, though some briefly show scrollbars on load as an indicator.

To improve discoverability, this companion script and styles add a transparent shadow cue to the bottom of the {{Sticky table start}} scrollable areas to indicate vertically scrollable. The shadow disappears when scrolled to the bottom, ensuring it does not interfere with readability. This solution works on WebKit browsers and the default mobile skin, Minerva skin.

This functionality is implemented separately from the template because JavaScript is required, which templates cannot include.

Installation

edit

Add the following to your common.js page (you must be logged in to use it):

importScript('User:Jroberson108/Template:Sticky table start/ScrollCue.js'); // Backlink: [[User:Jroberson108/Template:Sticky table start/ScrollCue.js]]