Closed vaurdan closed 1 month ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Base branches to auto review (4)
* develop * add/.* * fix/.* * update/.*Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Congrats on that work, this seems to be more complicated that I expected. Looking into it soon.
@acicovic thank you, good catch :)
Fixed the wrong version in the @since
docblocks, and also added an additional documentation block to the useEffect.
Description
As reported in #2627, some editor styles were leaking outside the block preview context in the Review modal. Although we were replacing all the
body
selectors with the specific.wp-parsely-preview-editor
class, this was not enough to isolate some selectors, such as headings.This PR changes that logic, and instead of simply replacing the body with the block preview class, it prefixes all the existing selectors with the
.wp-parsely-preview-editor
class, while also still replacing thebody
selector.Motivation and context
How has this been tested?
Tested locally with four different themes. Each theme changed the resulting block preview, and both the Modal title and sidebar headers still retain their original styling.
Screenshots (if appropriate)