Codeinwp / Codeinwp/otter-blocks
Not load CSS for Blocks hidden with Visibility Conditions
Open
Nobody has claimed this yet.
block conditions
bug
extension:css
- Dominant language
- JavaScript
- Stars
- 198
- Forks
- 36
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 30
Description
Description:
I noticed that if you add Custom CSS to some block that is hidden with Visibility Conditions, the CSS is still loaded. It's not a priority, but we should try not to load the Custom CSS as, in my particular case, it was causing some design issues on the page.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named in the issue. Start by reproducing the case with a block using Custom CSS and Visibility Conditions, then trace where its CSS is generated or enqueued; done means CSS for a hidden block is not loaded while visible blocks retain their styles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100