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

Several tokens values are not being applied in pages

    Details

      Description

      Steps to reproduce

      • Go to Style Books
      • Create a new stylebook
      • Go to typography category
      • Update font family base value and set 'Courier New'

      Expected result

      The font of the text in the home page in the preview changes

      Actual result

      Nothing change

       

      Technical notes

      In order to avoid admin controls to take the stylebook styles, we decided to apply those styles in the #wrapper element of a page, which resulted in some tokens not working.

      The specific tokens that don't work are the ones defined by the theme in the body:

       

      body {
          background-color: var(--body-bg);
          color: var(--body-color);
          font-family: var(--font-family-base);
          font-size: var(--font-size-base);
      }
      

       

      A possible solution would be to define those styles also in the #wrapper

      #wrapper {
          background-color: var(--body-bg);
          color: var(--body-color);
          font-family: var(--font-family-base);
          font-size: var(--font-size-base);
      }

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              victor.galan Victor Galan
              Participants of an Issue:
              Recent user:
              Yang Cao
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                27 weeks ago

                  Packages

                  Version Package
                  7.3.X
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  Master