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

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

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

    Dear Pepe,
    I replied your ticket.
    Thank you


    pepe lopex
    Subscriber

    Sorry, I didn’t open a ticket.


    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.

80+ Joomla templates updated for Joomla 5.2.2 and JoomLead particles 2.3.1 Download
Flash Sale. Get Up to 25% Off - Coupon: FLASH25 Shop Now