• Resolved akhilser

    (@akhilser)


    https://ibb.co/3Fjf3XJ
    Hello, I have created a accordion section like above image(link). Using ultimate blocks so i have to style the blocks like collapsed blocks should have red underline and rest have black underline is there is anyway can i give a style to them i tried hope anyone helps me

    • This topic was modified 2 years, 5 months ago by akhilser.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Alexis Pandaan

    (@alexius08)

    Hi @akhilser! Here’s a custom CSS snippet you can add to your custom CSS to produce the effect you’re looking for:

    .wp-block-ub-content-toggle-accordion-title-wrap[aria-expanded='true']{
    	border-bottom: 3px solid red;
    }
    
    .wp-block-ub-content-toggle-accordion-title-wrap[aria-expanded='false']{
    	border-bottom: 3px solid black;
    }

    The two parts of the code might look similar, but one part is for opened content toggle panels, and the other is for closed content toggle panels. You can adjust the colors and the border widths according to your use case.

    Please let us know how it goes.

Viewing 1 replies (of 1 total)
  • The topic ‘Ultimate block Accordion’ is closed to new replies.