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:
- list.component.yml
- list.css
- list.twig
Testing instructions
- Check lists in bottom of recipe page
Image may be NSFW.
Clik here to view.