Codeinwp / Codeinwp/otter-blocks

Not load CSS for Blocks hidden with Visibility Conditions

Open
#1,196 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.