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

Increase specificity of Product Requirement blueprints icon so sidebar resources do not need to be loaded in atl.general context

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.1.4
    • 5.1.2
    • None

    Description

      Description

      Currently the 'Product Requirements' blueprint icon has the same specificity as the default icon listed in the sidebar resource:

      • Blueprint main.css: .acs-nav-item.blueprint.requirements .icon
      • Sidebar sidebar-icons.css: .acs-nav-item.pinned_page.blueprint .icon

      In order for the blueprint style to override the sidebar css, the sidebar resources are being loaded first by being included as a dependency in the plugin descriptor. This means that all he sidebar resources are loaded despite the sidebar not being present on certain pages (e.g. Dashboard)

      Fix

      Increase the specificity of the blueprint icon so it is not dependent on load order. This can be done by modifying com/atlassian/confluence/plugins/requirements/css/main.css in confluence-software-blueprints from ".acs-nav-item.blueprint.requirements .icon" to ".acs-nav-item.pinned_page.blueprint.requirements .icon".

      The spacesidebar dependency can then be removed from atlassian-plugin.xml

      Attachments

        Activity

          People

            easenjo sthr (Inactive)
            dma@atlassian.com David Ma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: