[4.0.0-beta2] Move grid_cols and gap prop types from string to integer in Grid cols component

Created on 13 February 2025, 7 days ago

Problem/Motivation

In grid row, many enums would be better as integers than strings.

      type: array
      maxItems: 4
      items:
        type: string
        enum:
          - col-span-1
          - col-span-2
          - col-span-3
          - ...

Proposed resolution

It would be better to do:

      type: array
      maxItems: 4
      items:
        type: integer
        enum: [1, 2, 3...]

And concatenate the "col-span-" in the twig template

📌 Task
Status

Active

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