Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35774

ExtensionPoint wrapper element should have a class

      Allowing it to styled e.g. making it inline-block be default.

          [JENKINS-35774] ExtensionPoint wrapper element should have a class

          Michael Neale added a comment -

          tfennelly is this still needed?

          Michael Neale added a comment - tfennelly is this still needed?

          Josh McDonald added a comment -

          This doesn't seem like a good idea to me. If your specific extensionpoint needs a className, give it one. IMO ExtensionPoint should be as un-opinionated as possible.

          Josh McDonald added a comment - This doesn't seem like a good idea to me. If your specific extensionpoint needs a className, give it one. IMO ExtensionPoint should be as un-opinionated as possible.

          Tom FENNELLY added a comment - - edited

          I was referring to the <div> that ExtensionPoint.jsx adds (see its render function) to wrap the content being rendered from those specific extension point impls. The render functions adds those <div> elements and then the __renderAllExtensions converts them into the react leaf nodes and the specific extension point impl content gets dropped inside that div (or at least that is how I interpret it).

          So if there's a way of getting rid of that wrapping div then that'd do the trick. As is, every extension point is a block displayed element.

          Tom FENNELLY added a comment - - edited I was referring to the <div> that ExtensionPoint.jsx adds (see its render function) to wrap the content being rendered from those specific extension point impls. The render functions adds those <div> elements and then the __renderAllExtensions converts them into the react leaf nodes and the specific extension point impl content gets dropped inside that div (or at least that is how I interpret it). So if there's a way of getting rid of that wrapping div then that'd do the trick. As is, every extension point is a block displayed element.

          Josh McDonald added a comment -

          Right, I got you now, that's definitely a good idea. I think we might want to look at parameterising the TagName as well.

          Josh McDonald added a comment - Right, I got you now, that's definitely a good idea. I think we might want to look at parameterising the TagName as well.

            Unassigned Unassigned
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: