Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-21490

Allow styling to popular-labels macro

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Popular labels macro does not allow any applied style to the background for heatmap display, this can also not be overridden in the spaces "Stylesheet" settings as the style has been applied at the element level.

      I have a few solutions:

      Add Full Style Attributes to Macro

      This is the most workable and user-friendly way to customise the macro, add following attributes to macro:

      • background-color
      • border
      • border-color
      • border-style

      Add background-color Attribute

      Not the most ideal, but it is fairly workable, allow for transparent background-color (specify a color of ''), users can then style the border by placing the macro inside a panel macro.

      Move Style Attributes to Stylesheet

      The least user-friendly, but it allows users to control the look of the labels macro by using their custom stylesheet for the space.

      Current Solution

      I do have a workaround without having to modify the source for those interested. What you need to do is go to "Administration > Look and Feel > Custom HTML" and add the following to the HEAD section.

      <script type='text/javascript' language='javascript'>
      AJS.$(function($) {
        $(".heatmap ul").css("background-color", "");
      });
      </script>
      

      note: This technique has two caveats.

      1. It is applied to all spaces, you can control this by testing for the spaces key.
      2. There will be a flicker of gray to no color when the pages first load with heatmaps in them.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6c4fdac73624 Brett Ryan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: