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

            Sen Geronimo made changes -
            Workflow Original: JAC Suggestion Workflow 4 [ 3565339 ] New: JAC Suggestion Workflow 3 [ 4330580 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow 2 [ 3181228 ] New: JAC Suggestion Workflow 4 [ 3565339 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3035877 ] New: JAC Suggestion Workflow 2 [ 3181228 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing v4 [ 2528972 ] New: JAC Suggestion Workflow [ 3035877 ]
            Rachel Lin (Inactive) made changes -
            Workflow Original: Confluence Workflow - Public Facing v3 [ 2281837 ] New: Confluence Workflow - Public Facing v4 [ 2528972 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing v3 - TEMP [ 2171973 ] New: Confluence Workflow - Public Facing v3 [ 2281837 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing v3 [ 1933591 ] New: Confluence Workflow - Public Facing v3 - TEMP [ 2171973 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing v2 [ 1753581 ] New: Confluence Workflow - Public Facing v3 [ 1933591 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Suggestion WF (TEMP) [ 1673301 ] New: Confluence Workflow - Public Facing v2 [ 1753581 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing [ 1357336 ] New: CONF Suggestion WF (TEMP) [ 1673301 ]

              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: