styles
› blocks
› core/query
› css
in theme.json
not rendered when enhancedPagination
is false
#68580
Open
3 of 6 tasks
Labels
[Block] Query Loop
Affects the Query Loop Block
[Feature] Interactivity API
API to add frontend interactivity to blocks.
[Type] Bug
An existing feature does not function as intended
Description
The value of
styles.blocks.core/query.css
intheme.json
is not added to the webpage when:core/query
blockcore/query
block hasenhancedPagination
set totrue
In PHP render code for the
core/query
block, it removes thewp-block-query
style if no blocks are using interactive pagination. However, this prevents any CSS defined intheme.json
'sstyles.blocks.core/query.css
from being included. This is because this CSS is added as inline CSS based on if the samewp-block-query
style asset has been enqueued.Step-by-step reproduction instructions
theme.json
to add instyles.blocks
:Screenshots, screen recording, code snippet
Missing in the global styles inline CSS.
Present in the global styles inline CSS.
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: