Library: Fix components preview (1/2)

Created on 25 August 2024, 3 months ago
Updated 12 September 2024, 2 months ago

Problem/Motivation

Initially theme was developed using UI Patterns 1 and Twig preview templates in order to pimp patterns library and mainly :

Those preview templates is a mechanism that doesn't work yet with UI Patterns 2.

Proposed resolution

Make use of class properties inside stories in YML SDC declarations :

stories:
  my_story:
    props:
     attributes:
       class: []

... and stories mechanism for wrappers !

Remaining tasks

Make a pass on every components and apply the proposed resolution everywhere we needs it !

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇫🇷France G4MBINI Bègles

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