It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Formatting for the Expand macro

Looking to add some formatting to an expand section for my team to make an expand selection more visible. Instead of a white background with blue font, I was hoping to have a gray background when it is collapsed, similar appearance to the heading row of a table.


Is this possible? Please include a step by step how to if so, thanks!

2 answers

1 accepted

1 vote
Answer accepted
Diego Atlassian Team Feb 26, 2020

Hello @Maicen_Young !

Currently, there are no formatting options that allow you to achieve the objective that you need. Here is our documentation on the macro:

What you could do to achieve a similar result is to insert the expand inside a table header cell:

In Edit mode:

Anotação 2020-02-26 184417.jpg

In view mode

Anotação 2020-02-26 184531.jpg

Doing this will render a gray background while the Expand is collapsed. Hope this helps! Looking forward to your reply.

Thank you @Diego this works great!

Diego Atlassian Team Feb 28, 2020

Glad to know that this helped you out!

You might also consider UI Expand Macro, part of the Refined Theme for Confluence.  It includes a suite of enhance macros that provide a bit more flexibility.  Interestingly the default for their expand macro happens to be with a gray background as you described.

Where is the UI Expand Macro found? I am running Confluence Data Center 7.4.1

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

7,070 views 6 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you