Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-76817

As a Web Developer I can namespace the CSS of a Web Fragment to avoid affecting the rest of the page

    Details

      Description

      Each Web Fragment is composed of HTML, JavaScript and CSS. The JavaScript and CSS is most commonly meant to affect only the fragment itself. To support this, the goal of this story is to provide a simple mechanism so that the Web Developer can write code that will only affect the fragment itself.

      For CSS one possible solution would be to use SASS-like nesting and for JavaScript a closure.
      In both cases, the code that achieves this should be provided by default when a fragment is first created.

      Web Developers can remove the namespacing for cases where it's not desired (and they are being careful enough to create undesired effects elsewhere in the page). This might be necessary to create certain visual or behavioural effects.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.1.X
                Master