Create new SDC component for Umami Banner

Created on 7 June 2023, over 1 year ago
Updated 14 March 2024, 9 months 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.

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.

Banner component

Banner component contains:

1. Slot for image(any media)
2. Slot for content.

Button styles moved to `button--primary` variant.

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 Banner component, which includes markup and CSS.

This component is a good fit because it already used in 2 places.

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

  1. core/profiles/demo_umami/themes/umami/css/components/blocks/banner/banner.css

Testing instructions

  1. Visit homepage

📌 Task
Status

Fixed

Version

10.3

Component
Umami 

Last updated about 2 months ago

Created by

🇺🇸United States sarahjean

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024