Problem/Motivation

As part of our roadmap to stable (#3345922: Single Directory Components module roadmap: the path to beta and stable), we want to include some Single Directory Components into Drupal core's front-end facing themes.

Let's have this issue to track all the efforts in this direction. Ideally, we'll have one issue per attempted component linked as a children to this one.

Instructions

  1. Create a new issue for Drupal core with the title: Create new SDC component for Umami (name). Make sure to change name to the actual component's name.
  2. Paste the Component Issue Template, and fill in the specifics about the chosen component.
  3. Add the SDC Sprint DrupalConNA 2023 tag to the issue, if you are creating it during DrupalConNA 2023.
  4. Add the newly create issue as a child of this issue. And leave a comment here.

Component Issue Template

<h3 id="summary-problem-motivation">Problem/Motivation</h3>
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: Move code from the experimental SDC module to core is not committed.

<h4><em>Name</em> component</h4>

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 <em>Name</em> component, which includes markup, CSS, and JS.

This component is a good fit because: <em>enter details</em>

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

<ol>
  <li><em>List involved files and systems here</em></li>
</ol>

<h3>Testing instructions</h3>

<ol>
  <li><em>Add testing instructions here.</em></li>
  <li><em>Point out any automated tests that cover this component's refactor.</em></li>
</ol>

Comments

e0ipso created an issue. See original summary.

amanire’s picture

effulgentsia’s picture

dieterholvoet’s picture

Component: render system » single directory components

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.