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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 5.1.4
    • Affects Version/s: 5.1.2
    • Component/s: None

      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

              Assignee:
              sthr (Inactive)
              Reporter:
              David Ma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: