Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.3.10 : Add to themes the role in the body class #2231

Closed
rosa2 opened this issue Feb 20, 2025 · 1 comment
Closed

4.3.10 : Add to themes the role in the body class #2231

rosa2 opened this issue Feb 20, 2025 · 1 comment

Comments

@rosa2
Copy link

rosa2 commented Feb 20, 2025

Hello and thanks for IOMAD,

For frontend programers it would be great to have in the body the class with the role to be able to modify the theme depending the role.
I can make a subtheme, but it would be very helpful if it was incorporated in the IOMAD themes.

Here are how to make that
https://stackoverflow.com/questions/64079136/create-css-classes-based-on-user-role#69648156
https://moodle.org/mod/forum/discuss.php?d=411341

I hope is interesting to you.

@turf212
Copy link
Collaborator

turf212 commented Feb 20, 2025

The IOMAD themes are basically clones of the core Moodle themes with (small) changes to make the per tenant CSS/Logos/etc work. I wouldn't want to migrate away too much from the Moodle ones as it will cause issues in keeping up with their new versions.

Sub theme would be my suggestion to you till Moodle implements it in core.

@turf212 turf212 closed this as completed Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants