Dark and light toggle removed

I had customize the learner-dashboard but after my customization when i rebuild the MFE the dark and light toggle is escape, Can anyone same face issue or idea about it how i get back to the theme mode toggle switch with forked repository.


Hi @usama
I’ve re-categorised your post into Site Operators for better visibility on your request.

Are you able to provide examples of the customisations you’ve applied and/or a link to your fork?

Are you using the tutor-indigo theme?

Can you confirm if MFE_CONFIG['INDIGO_ENABLE_DARK_TOGGLE'] = True ?
This config determines if that toggle button is displayed here:

Hi @joel.edwards

yes it is True

MFE_CONFIG[‘INDIGO_ENABLE_DARK_TOGGLE’] = True

And I am using tutor-indigo theme.

Hi @usama, could you please share the customizations you’ve made? For example, did you modify your header or footer, or make any other changes? It would be great if you could provide those details so I can better assist you with the issue you’re facing where the dark/light mode toggle is not appearing.

Hi @Abdul_Muqadim, thanks for your message.

I have forked the learner dashboard repo: https://github.com/openedx/frontend-app-learner-dashboard.git, and made some customizations — such as adding a custom font and modifying the primary colors. After that, I rebuilt the MFE, but the toggle disappeared.

I did not modify the header or footer; they are still the default ones.

Hi @usama Is it possible for you to link us to your customised fork so we can review the changes made and any impact those changes might have had?

When you rebuilt your MFE did you also try rebuild the openedx image as well? Might be worth trying that if you haven’t, sometimes the no-cache switch helps when rebuilding too…
tutor images build openedx mfe --no-cache

One thing I forgot to mention: after I ran the collectstatic command, the toggle disappeared from MFEs and stopped working on non-MFEs.