Repository navigation
Conversation
Adds CSS custom properties for shared LMS styles, buttons, forms, headings and ProblemBlock display styles so themes can override these variables at runtime as well. Existing SASS values are retained as fallbacks, so the UX is unchanged if no properties are set.
|
Thanks for the pull request, @xitij2000! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
@xitij2000 This is working for me, but I noticed that the background color of the submit button doesn't seem to be changing even when other things are. Hovering over the button does change it, though. That one seems pretty critical since it's prominent. Other than that this is looking good to me-- all the lines swapping to variables are sensible and most of it is indeed changing as needed. |
|
@Kelketek I think this is because we're using extracted problem blocks, and these changes are to the local xblock which needs an option to set. I've updated the testing instructions in the gist. I've also created the PR to xblocks-core for this so you can optionally install that. I've focused on getting it working with the local block for now since that's quicker to iterate and I think it'll be easy to transfer the changes over. |
|
@xitij2000 Thanks-- I also saw your instructions on our internal ticket about using the internal block verses the extracted block here. I've been able to verify that this works great with the internal block, so this is 👍 from me. 👍
|
Description
Adds CSS custom properties for shared LMS styles, buttons, forms, headings and ProblemBlock display styles so themes can override these variables at runtime as well.
Existing SASS values are retained as fallbacks, so the UX is unchanged if no properties are set.
Supporting information
Our main aim is to support styling the problem block using CSS vars. When combined with #39191 this will allow varying the theme on a per-course basis.
Testing instructions
https://gist.github.com/xitij2000/e11b8ae623e1a9bb02ba20f61a52c040
Deadline
None
Other information
Claude was used to assist in the discovery of vars and in testing and reviewing this PR.
private-ref: https://tasks.opencraft.com/browse/BB-11428