Create new SDC component for Olivero site branding

Created on 18 October 2023, over 1 year ago
Updated 19 October 2023, over 1 year ago

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.

This issue is postponed on #3352256: [META] Move code from the experimental SDC module to core, since we cannot make Olivero depend on an experimental module. In any case, this issue can (and should) be worked in parallel.

Branding component

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

This component is a good fit because: component is simple and it's a good start to include more components to Olivero theme.

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

  1. core/themes/olivero/css/components/header-site-branding.css
  2. core/themes/olivero/css/components/header-site-branding.pcss.css
  3. core/themes/olivero/olivero.libraries.yml
  4. core/themes/olivero/templates/block/block--system-branding-block.html.twig

Testing instructions

  1. Add testing instructions here.
  2. Point out any automated tests that cover this component's refactor.
πŸ“Œ Task
Status

Postponed

Version

11.0 πŸ”₯

Component
OliveroΒ  β†’

Last updated about 10 hours ago

Created by

πŸ‡¨πŸ‡¦Canada davidarbour

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

Comments & Activities

Production build 0.71.5 2024