Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-134157

Use Class Names in Fragments for Background and Text Colors

    Details

      Description

        As a user, I would like for page fragments and content pages to use class names to denote background and text colors.

        Currently, the styles menu uses inline styles to denote text and background colors, which is inconsistent with the way that Liferay already uses class names for other elements.

        For example, class names are provided by Liferay when using the margin (e.g. mt-5) and padding (e.g. pb-3) settings in the style menu in the page editor. 

        This inconsistency makes it challenging to work with the styles menu. It would be much more beneficial and powerful to reference class names.

      Requested behavior:

      Class names on the overall containing DIV such as

      class="bg-color-swatch-0 fg-color-swatch-11".

      Actual behavior:

      style="background-color: var(--swatch-11); color: var(--swatch-0);"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mateo.hermosin Mateo Hermosin
              Reporter:
              madeleine.clay Madeleine Clay
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package