Quantcast
Viewing all articles
Browse latest Browse all 294099

Create new List component for Umami

Problem/Motivation

Single directory components (SDC) is a new way to theme Drupal. Instead of scattering related files around your theme, they're contained to one directory. The primary issue for SDC is at #3313520: Single directory components in core.

The Demo Umami team has decided that their theme can depend on an experimental module like SDC. This allows us to have the work in this ticket merged even when #3352256: [META] Move code from the experimental SDC module to core is not committed.

List component

As part of SDC's roadmap (see #3345922: Single Directory Components module roadmap: the path to beta and stable), we want to convert Umami components to use SDC. For this task I'm choosing the Name component, which includes markup, CSS, and JS.

This component is a good fit because we have at 2 lists and may have more.

This component involves the following Twig templates, CSS, JS, assets, and libraries:

  1. list.component.yml
  2. list.css
  3. list.twig

Testing instructions

  1. Check lists in bottom of recipe page

Image may be NSFW.
Clik here to view.
List component


Viewing all articles
Browse latest Browse all 294099

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>