Generated with the help of an LLM.
Problem/Motivation
The Rivet theme contains several local overrides and compatibility shims associated with older Rivet Core versions, upstream Rivet issues, Drupal core limitations, and browser behavior.
Steps to reproduce
1. Search the theme for explicit TODOs, temporary fixes, compatibility shims, and removal notes:
rg -n -i \
'@todo|workaround|temporary|legacy|backward compat|compatibility|deprecated|remove when|delete as part of' \
--glob '!node_modules/**' \
--glob '!vendor/**' \
--glob '!css/compiled/**' \
--glob '!*.map' \
--glob '!package-lock.json'
2. Search for dependency-version-specific code that may not have been updated with the dependency declarations:
rg -n \
'rivet-core@|starterkit_theme:|core_version_requirement|Drupal 10|2\.5\.1|2\.9\.1' \
--glob '!node_modules/**' \
--glob '!vendor/**' \
--glob '!css/compiled/**' \
--glob '!*.map' \
--glob '!package-lock.json'
3. Compare each workaround with the currently configured dependency versions in:
- - package.json
- - rivet.libraries.yml
- - rivet.info.yml
4. For each TODO that references an upstream issue:
- - Open the linked Rivet or Drupal issue.
- - Check its current status and most recent comments.
- - Determine which upstream release contains the fix.
- - Compare that release with the project’s currently supported versions.
- - Do not assume that a closed issue makes the workaround removable if the project still supports older dependency versions.
5. Trace each candidate through the theme to find all related files and registrations. For example:
rg -n 'rvt-select|rivet_css_alter|StarterKit|rvt-c-steps|rvt-c-region' \
--glob '!node_modules/**' \
--glob '!vendor/**'
6. This review should reveal examples such as:
- - A select override referencing fixed upstream Rivet issue #734.
- - A CSS alter hook hardcoded to Rivet Core 2.5.1 even though the theme now loads 2.9.1.
- - Starterkit fallback code tied to a Drupal core issue fixed in 10.3, while the theme still declares support for earlier Drupal 10 releases.
- - Additional workarounds whose upstream issues remain open and therefore should be retained.
7. Remove only workarounds confirmed to be obsolete, then rebuild the styles:
ddev npm run build
8. Review the resulting changes to confirm that only the expected source, library, and compiled CSS files changed:
git diff --stat
git diff
9. Perform targeted regression testing for every removed workaround, including selects, generated subthemes, layout breakout regions, empty/lazy regions, Webform progress indicators, and <details> elements as applicable.
Expected result: The theme contains only compatibility workarounds still required by its supported Rivet, Drupal, Webform, and browser versions. Obsolete code, related asset declarations, and stale TODO comments are removed.
Actual result: The scan finds a mixture of obsolete, conditionally removable, and still-required workarounds that need to be classified before removal.
Proposed resolution
Following the dependency upgrades in #3636600: Update Rivet dependencies and CSS build tooling, review these workarounds against the currently supported Rivet and Drupal versions. Remove code that is demonstrably obsolete, retain workarounds whose upstream blockers remain unresolved, and update stale TODO comments with their current status.
Out of scope
- The CKEditor PostCSS TODO is an unfinished build enhancement, not obsolete code.
- Documentation TODOs copied from Drupal templates.
- Generic Drupal compatibility styling without an upstream removal condition.
Acceptance criteria
- Every reviewed workaround is classified as removed, retained, or deferred with supporting dependency/upstream evidence.
- Confirmed obsolete code and related library declarations or compiled assets are removed.
- Retained workarounds have accurate comments and live upstream references.
- Selects are tested across supported browsers, including disabled, multiple, and long-option variants.
- Region visibility, Webform progress steps, and behavior are regression-tested if their fallbacks change.
- Generated subthemes are tested if starterkit processing changes.
- Drupal 10 and Drupal 11 checks pass while both remain supported.
- Sass compilation and Stylelint complete cleanly.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork rivet-3636602
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jwilson3Comment #3
jwilson3Comment #4
jwilson3TODO and compatibility workaround audit
The source links below reference the immutable Rivet 1.2.0 release. Change links reference commits on the #3636602 issue-fork branch.
rvt-select.scss2c84b0f: Remove obsolete rvt-select line-height overriderivet_css_alter()4ed67cb: Resolve the asset dynamically and add regression coveragedetails.css<details>support is stale. The CSS itself remains useful and was not removed.002becf: Remove obsolete details.css TODOcheckboxes.html.twig<ul>. The template must remain.5cc4318: Simplify checkboxes.html.twig docblockStarterKit.phprivet.starterkit.ymlignore, not the provisionaldeletekey retained by Rivet. Modernizing this safely requires defining the generated file set, deciding the Drupal minimum version, and adding generation tests.03ea149: Link to the starterkit cleanup issueckeditor.css.rvt-proseselectors to target.ck.ck-content.rvt-drupal-compatibility.css.rvt-container-xl.rivet_preprocess_image_widget()rivet_preprocess_table()rivet_preprocess_views_view_table()search-result.html.twigfield--node--created.html.twigfield--node--uid.html.twigviews-view-list.html.twiglistvariable documentation is copied verbatim from Drupal 11.4's Starterkit template. It is not a Rivet workaround.Comment #7
jwilson3Comment #9
jwilson3Released in 1.2.1