-
Notifications
You must be signed in to change notification settings - Fork 361
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
Add body class for theme variations #7432
Add body class for theme variations #7432
Conversation
Hi @donnapep 👋 As per our discussion here Automattic/sensei#7225, I've moved the functionality here. It gives us the added advantage of not having to check which theme is in use. Also, I've added a hook which can be used from sensei or any other place to enqueue variation specific stylesheets. I've also added stylesheets for each variation. Once we have this PR approved, we can close the associated PR in Sensei because we won't need that anymore. Also, we can share our approach in the theme team's issue. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a wee comment about not using $$next-version$$
in this repo.
* Update styles of question feedback (#7373) * Specify the grade style to be applied only in the question header * Update background color for gold variation * Update background color for default variation * Update border color for gold variation * Tweak CSS formatting * Tweak color for border of ordering question --------- Co-authored-by: Donna Peplinskie <[email protected]> * Update version and description * Add new changelog * Remove legacy Learning Mode CSS as it's part of Sensei now (#7431) * Course: Add body class for theme variations (#7432) * Add custom property with variation name * Add function to add body class and enqueue proper stylesheets * Add stylesheets for all variations * Add version number * Style the "Awaiting Grade" notice (#7401) * Style "Awaiting Grade" notice * Move custom CSS to other areas of theme.json * Remove typography setting as it needs to be done via CSS * Do the same for the variations * Fix notice style getting broken for css parsing issue --------- Co-authored-by: Imran Hossain <[email protected]> * Bump versions and update change log --------- Co-authored-by: Imran Hossain <[email protected]>
Changes proposed in this Pull Request:
course_theme_variation_loaded
, description is added below.Added hook
course_theme_variation_loaded
- Fires after the variation is determined, can be used for different use cases, including loading variation specific stylesheetsDetails in this PR Automattic/sensei#7225