Add identifier class to paragraphs for theming

Created on 26 August 2024, 8 months ago
Updated 5 September 2024, 7 months ago

Problem/Motivation

When adding custom styles for each paragraph according to its ID it is not possible because the paragraphs browser does not distinguish the blocks by paragraph type.

Steps to reproduce

Try to add custom styles by paragraph type to the HTML <fieldset class="paragraphs-browser-paragraph-type"> element.

Proposed resolution

Add a class extending its name from paragraphs-browser-paragraph-type containing the paragraph's ID converted to class, e.g. paragraphs-browser-paragraph-type--example-paragraph

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇪🇸Spain enchufe Spain

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