Totara Learn Open Discussions

Trying to change button-color.

 
? ?
Trying to change button-color.
بواسطة Monday, 20 January 2020, 12:31 AM - ? ?
 

Hi all, 

I have run in to an issue - I am trying to change Totara buttoncolor across the site. 

Doing it in apperance - changes all the buttons except the "go to course" under my Find learning wich stays the same color. 

I have tried to add custom CSS: 

"tw-catalogDetailsLink__option_btn {

    background: #84faff; } "


This does not work either - anyone have any idea why this particular button does not change color? 


Regards

Andreas 

? ?
Re: Trying to change button-color.
بواسطة Monday, 20 January 2020, 9:39 AM - ? ?
 

Hello Andreas,

It could be because of the CSS hierarchy and the element is not taking precedence. Have you attempted to the !Important

"tw-catalogDetailsLink__option_btn {

    background: #84faff !important; } "

As this will override everything. 


Peter 


? ?
Re: Trying to change button-color.
بواسطة Tuesday, 21 January 2020, 4:53 AM - ? ?
 
Hi Peter, 


Seems to work - cannot find any buttons with the wrong color now. 

Thanks alot.