Home Forums Particles Support Setting top margins on jlaccordion content: mission impossible!

Viewing 4 posts - 1 through 4 (of 4 total)
  • Avatar
    pepe lopex
    Subscriber

    The code of jlaccordion.html.twig includes in line 240 the class jl-margin-remove-first-child:

    <div class="jl-accordion-content jl-margin-remove-first-child">

    In my experience, this overrides any margin settings that can be made from the particle (e.g. in Style tab > Content Settings > Margin Top ).

    Considering that the contents within each accordion are unique, I don’t understand the reason for this setting – unless there is another function I’m not aware of.

    I propose to remove this code. Thanks!

    Tony
    Tony
    Moderator

    Dear Pepe,
    I replied your ticket.
    Thank you

    Avatar
    pepe lopex
    Subscriber

    Sorry, I didn’t open a ticket.

    Tony
    Tony
    Moderator

    Hi Pepe,
    My mistake, I got the same question about Accordion via ticket system 🙂
    The css class jl-margin-remove-first-child added to remove the spacing for the first element (from Accordion title and content body). Imagine that you have assigned the image to the top and content from the bottom, then you can use margin top to add the spacing between content and image elements.

    Sure, you can remove the css class if not needed.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Gantry5 particles 2.1.4 released, new features, bug fixes and more Changelog
HAPPY NEW YEAR - Save 40% Off Everything! Discount code: NEWYEAR2021 Shop Now