-
Notifications
You must be signed in to change notification settings - Fork 192
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 stylesheets for course theme variations #7256
Conversation
WordPress Dependencies ReportThe
This comment was automatically generated by the |
Codecov Report
@@ Coverage Diff @@
## trunk #7256 +/- ##
============================================
+ Coverage 50.83% 50.86% +0.02%
+ Complexity 11033 11022 -11
============================================
Files 611 610 -1
Lines 46589 46552 -37
Branches 402 402
============================================
- Hits 23683 23678 -5
+ Misses 22579 22547 -32
Partials 327 327 see 8 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
I'm not sure we should do this until we actually have some variation CSS. Otherwise, we're just loading an empty CSS file. I let this slide for the Course theme, but I'm calling it out now that we want to do it again. 🙂 But, I think we also need to discuss when we should start using these files. Do we think we can start now given that we just released the Course theme with the change to add the variation to the body class? The next release is currently scheduled for November 15th (for the final frontend improvements changes). Is that too soon do you think? |
Hi Donna 👋 Thanks for taking a look into this
Makes sense. I wanted to add these in an early PR because we may need it in the upcoming issues which will likely involve styling in Course theme and its variations (#7241, #7242, #7243 etc), so that we don't need to redo these in them and can use this PR as the base.
I think we're ready to use these already for the next release and can start writing the sensei-block-specific styles that we currently write in the 'css' propert in the theme.json or <>.json files in these scss files instead. Because I'm not sure if there is any additional benefit of adding those css in the json files now anymore. |
OK, maybe for now we can keep this PR open, and merge it once we have some variation CSS we want to add?
An FYI that it seems likely we'll have a patch release next week to address those WP 6.4 compatibility issues. |
Sounds good! 👍 I've used a variation CSS file in this PR #7263 .
Cool, thanks for letting me know! |
Hi Imran 👋
I checked the PR and didn't find any usages of these variation CSS-files. Is this comments outdated? Or maybe it was supposed to be a link to a different PR? |
Hi @merkushin 👋 Thanks for taking a look.
Yap right, it got outdated. Now variation files are being used in a couple of other open PRs |
So, as I can see, currently we have usage for the dark and for the default variations.
|
I don't have a strong preference for this, but I think if it's not too much of a problem, we can keep the variation CSS files for future use. We already have CSS styles in their respective .json files, but just didn't get the time to shift them here. If we decide to remove the yet unused ones, we'd need to update the code here to check for the existence of the files before enqueueing. Also, then it'll fall upon future individual PRs to include those files when needed, and also remove the existence check once we have files for all variations because it won't be necessary then. LMKWYT :) |
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.
As we discussed in the meeting, it's fine to merge it with empty styles. Works well.
Resolves the issue of having to write css styles in variation json files.
Proposed Changes
Testing Instructions
* { color: red !important; }
)Pre-Merge Checklist