46
Views
13
Comments
Solved
hide top highlight color of accordion
Question
Application Type
Reactive
Service Studio Version
11.54.59 (Build 63275)
Platform Version
11.28.0 (Build 43201)

i think this is one of features of accordion is when  you click the accordion a color on the top of accordion highlights like the picture below, is there a way where i can hide or disable it? Thanks!

UserImage.jpg
Leandro Ribeiro
Solution

Hi @budang haba 
You can use this class to remove or change the border-top property when the accordion is open. Just past this css in the application theme. 

.osui-accordion-item--is-open::after{

  border-top: none;

}

You can change the class to customize as your requirements.

UserImage.jpg
budang haba

thank you sir! it finally worked

UserImage.jpg
Puja Rani
Solution

Hi, You can try to override using below CSS. Hope this helps

UserImage.jpg
budang haba

thnak you so muchhh!!!!! really worked dude

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello,

Removing the border variable define may cause other issue, if it is being used somewhere else as well,

Instead of that you can just remove the border from the accordion that you want,

Also if you use apply directly to the page replacing the existing css it will override for all accordion on the page,

If you want it specifically for accordions the just wrap your accordion into a container and give a class to it and apply it like this 

.accordion-wrapper .osui-accordion-item--is-open::after {
border-color:transparent;
}

https://personal-ejuytnht.outsystemscloud.com/TestApp/Screen1?_ts=638513007189569220

Thanks
Tousif Khan

TestApp_Accordion.oml
UserImage.jpg
budang haba

geez dude good day! it finally worked thank you so much!

2025-06-01 02-51-51
YASH PAL
Solution

Hi budnag

I have solved the same problem using this css.

.osui-accordion-item {

    --accordion-active-border-size: 0px !important;    

}


just paste this css on the screen where you have used the accordion. and this will resolve the issue.

UserImage.jpg
budang haba

duddee what a life saver, thank you so much dude it finally worked!

2024-05-22 06-12-56
Vignesh Prakash

Hi @budang haba

Update the below Class in your application to change the color or hide the top border as per your requirement.

.section-expandable.is--open 

Thanks,
Vignesh Prakash.

UserImage.jpg
budang haba

good day! where can i change it in css?

UserImage.jpg
budang haba


tried this sir but doest not work

2024-05-22 06-12-56
Vignesh Prakash

can you please try using this CSS

.section-expandable.is--open 
{
border-top:  var (-- Border-size-none) solid var (-- color primary) !important ;
}

UserImage.jpg
budang haba
UserImage.jpg
Leandro Ribeiro
Solution

Hi @budang haba 
You can use this class to remove or change the border-top property when the accordion is open. Just past this css in the application theme. 

.osui-accordion-item--is-open::after{

  border-top: none;

}

You can change the class to customize as your requirements.

UserImage.jpg
budang haba

thank you sir! it finally worked

UserImage.jpg
Puja Rani
Solution

Hi, You can try to override using below CSS. Hope this helps

UserImage.jpg
budang haba

thnak you so muchhh!!!!! really worked dude

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello,

Removing the border variable define may cause other issue, if it is being used somewhere else as well,

Instead of that you can just remove the border from the accordion that you want,

Also if you use apply directly to the page replacing the existing css it will override for all accordion on the page,

If you want it specifically for accordions the just wrap your accordion into a container and give a class to it and apply it like this 

.accordion-wrapper .osui-accordion-item--is-open::after {
border-color:transparent;
}

https://personal-ejuytnht.outsystemscloud.com/TestApp/Screen1?_ts=638513007189569220

Thanks
Tousif Khan

TestApp_Accordion.oml
UserImage.jpg
budang haba

geez dude good day! it finally worked thank you so much!

2025-06-01 02-51-51
YASH PAL
Solution

Hi budnag

I have solved the same problem using this css.

.osui-accordion-item {

    --accordion-active-border-size: 0px !important;    

}


just paste this css on the screen where you have used the accordion. and this will resolve the issue.

UserImage.jpg
budang haba

duddee what a life saver, thank you so much dude it finally worked!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.