[Plan] Remove jQuery UI components used by Drupal core and replace with a set of supported solutions

Created on 11 July 2019, over 5 years ago
Updated 22 August 2023, over 1 year ago

Problem/Motivation

JQuery UI was added as a dependency for core 10 years ago to improve our UX. Since then majority of the frontend community has moved on to using other libraries. For that reason, JQuery UI has been having trouble attracting new maintainers, and has been unmaintained since 2017 as announced by one of the maintainers of the project in this blog post. The most recent release was published in 2016 and there's no one responding to PRs in their Github repository.

In the meantime the former jQuery foundation became the JS foundation which merged with Node's foundation and formed OpenJS Foundation. That lists jQuery UI as an Emeritus project in https://openjsf.org/projects/ which is described as:

Emeritus projects are those which the maintainers feel have reached or are nearing end-of-life

#3051352: [Plan] Remove unused jQuery UI components and replace with a suite of contrib packages for the continuous upgrade path provides a plan for libraries that are unused.

Proposed resolution

List of jQuery UI components in the scope of this issue:

With these components, we have a few different directions we could choose to go to:

  1. Replace jQuery UI components with a set of individual libraries.
  2. Rebuild jQuery UI functionality ourselves. This could be done either by using vanilla JavaScript or by using a framework such as React.
  3. Fork the parts of jQuery UI that are used by Drupal core, and provide support to the forked project ourself.

Various proposed replacements

(Libraries specific to only one component can be documented in the appropriate issue.)

Remaining tasks

In order of most work needed to least

🌱 Plan
Status

Fixed

Version

9.4

Component
Javascript 

Last updated 2 days ago

Created by

🇫🇮Finland lauriii Finland

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada liquidcms

    I see this is closed and yes, I get that jQuery UI is no longer part of core; but this issue had 2 parts:
    1. Remove jQuery UI components used by Drupal core AND
    2. replace with a set of supported solutions

    Did #2 happen?

    I see comments like Wim's in #27 that Tabs could be removed as its only use in Core was View UI. This is a bit scary and suggests part 2 of this may have fallen by the way side. Let's remember that utilities in core are not here to build core (as no one builds a web site with core) but to enhance Drupal as a framework for building applications.

    Perhaps these have all been replaced? I do see a comment mentioning that collapse.js could be used for tabs. Any documentation on the full set of replacements (should be part of this issue)? jQuery UI certainly has excellent documentation.

Production build 0.71.5 2024