tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
194 stars 19 forks source link

Disable Remove block if link is empty option for query loop pagination buttons (previous/next) looses style on front end #1062

Open leohsiang opened 1 year ago

leohsiang commented 1 year ago

Description

Disable [Remove block if link is empty] option for query loop pagination buttons (previous/next) causes buttons loses style on the front end

Steps to reproduce

  1. Add pagination to a query loop block.
  2. Select the previous/next button, and disable the [Remove block if link is empty] option.

Expected behavior

The previous/next buttons keeps their style

Actual behavior

Without a link, the button tag changes from to , while the CSS is targeting the .

References:

https://wordpress.org/support/topic/styling-changes-in-pagination-button-in-block-query-loop/#post-16848343