Add layout icon maps to patterns

Created on 2 March 2023, about 2 years ago

Problem/Motivation

It is possible to add icon_map property to patterns:

  icon_map:
    - [ title, toto, tutu ]
    - [ title, content_main, content_secondary ]
    - [ a, b, c, d, e ]

See: https://www.drupal.org/project/ui_patterns/issues/3339670 💬 Be able to provide icons to patterns used as layouts Fixed

It is also possible to add an image with icon_path :

  icon_path: "themes/custom/ui_suite_bootstrap/screenshot.png"

But it is not usable yet since the path is not relative to the theme folder.

Proposed resolution

Because this icon map can help site builders using patterns as layout, let's add them.

Feature request
Status

Active

Version

1.0

Component

Code

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