Style ajax throbber with Rivet Loading Indicator

Created on 17 November 2023, almost 2 years ago

Problem/Motivation

The default Drupal form input autocomplete throbber GIF is low quality and should be replaced with the Rivet Loading Indicator.

Proposed resolution

The Rivet loading indicator is specified using modern techniques (animated CSS):

<div class="rvt-loader rvt-loader--xs" aria-label="Content loading"></div>

However, there is no way to position such an external DOM element as part of an <input> field. Therefore, we must recreate the loader as a GIF of 40px by 40px with a 5px wide thickness on the spinner, rotating at 0.8 seconds, using the Rivet color #006298 (rvt-color-blue / $color-blue-500) design token, and then size it to 20px by 20px for retina screens using background-size.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024