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

CSS selectors in themes can clash with defined Velocity macros

    • 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.

      When targeting HTML elements from CSS included in themes, there is the potential for the ID selector to clash with defined Velocity macros.

      For example if you try to target an element with the id of "logo" with the CSS selector #logo, a velocity parse exception will be thrown because velocity will interpret this as a call to the logo macro. At the moment you can work around this issue by escaping the selector with a backslash (e.g. #logo). This is a moving target because theme authors have no idea when we may introduce a new macro which will clash with CSS selectors that have used.

      We should have some mechanism to reduce these clashes, either through code or convention.

            [CONFSERVER-7436] CSS selectors in themes can clash with defined Velocity macros

              matt@atlassian.com Matt Ryall
              christopher.owen@atlassian.com Christopher Owen [Atlassian]
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: