[2.0.0-beta1] Component selector: use SDC's thumbnailPath?

Created on 22 August 2024, 5 months ago

Problem/Motivation

Some Design System have thumbnails for components.

For example, daisyUI 4: https://daisyui.com/components/ (800x418)

Material 3: https://m3.material.io/components (395x200)

DSFR 1: https://www.systeme-de-design.gouv.fr/composants-et-modeles/

Bootstrap 5 and USWDS 3 don(t have such thumbnails AFAIK

SDC has a property to add this thumbnail in definitions. https://api.drupal.org/api/drupal/core%21modules%21sdc%21src%21Component...

With an automatic discovery of the thumbnail if it is called "thumbnail.png" and found the component directory.

No public SDC theme are using them for now.

No public UI Suite theme are using them for now, but we can easily ask the maintainers to add them.

Proposed resolution

Do we leverage this feature in the component selector? How?

Why do we do with all those different scale and ratios?

Feature request
Status

Active

Version

2.0

Component

User interface

Created by

🇫🇷France pdureau Paris

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

Comments & Activities

Production build 0.71.5 2024