Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11348

Flamingo Theme preview is broken (on view mode) when "lessCode" is filled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.3-milestone-2, 6.2.3
    • Fix Version/s: 6.3-rc-1, 6.2.4
    • Component/s: Flamingo Theme
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      1. Create a new flamingo theme
      2. On the "advanced" category, put in the "lessCode" field the following code:
        @base: #f938ab;
        
        #mainContentArea .xcontent {
          color: saturate(@base, 5%);
          border-color: lighten(@base, 30%);
        }
        
      3. Save the theme
        Now, in the preview of the view mode, you see the following error:
        ParseError: Unrecognised input
        in style.less.vm?colorTheme=no on line 143, column 1:
            @lessCode: @base: #f938ab;    #mainContentArea .xcontent {    color: saturate(@base, 5%);    border-color: lighten(@base, 30%);  };
        

      There is a bug there because the preview is not supposed to handle the "lessCode" field.

        Attachments

          Activity

            People

            • Assignee:
              gdelhumeau Guillaume Delhumeau
              Reporter:
              gdelhumeau Guillaume Delhumeau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: