ndiego / block-visibility

Conditional visibility controls for all WordPress blocks.
https://www.blockvisibilitywp.com
GNU General Public License v2.0
130 stars 10 forks source link

Markup inside of Paragraph/Heading blocks gets opacity applied when Conditional Opacity is enabled. #54

Closed ndiego closed 1 year ago

ndiego commented 1 year ago

Description

The Conditional Opacity setting allows you to optionally make blocks transparent when visibility conditions are applied. Due to how blocks in the Editor are structured, this functionality does not work for Paragraph and Heading blocks.

However, if markup exists within a Paragraph or Heading block, for example, <mark>, the opacity will get applied to that element. Paragraph and Heading blocks should be excluded entirely from the Conditional Opacity styles to avoid this issue.

Expected behavior

image

Actual behavior

image

System information