Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Block Library - Query Pagination Next/Previous]: Remove text and link color support #36954

Conversation

ntsekouras
Copy link
Contributor

Related to https://github.com/WordPress/gutenberg/pull/36562/files#r758225518

For Query Pagination Next and Previous blocks we had enabled color support for text and link. However these two blocks are always a link and it doesn't make much sense IMO to introduce another wrapper in dom. Now it doesn't work because when we add a link color the selector produced searches children a elements to apply the style.

This PR proposes to remove the text/link color support from these individual blocks and keep this support in the parent block Query Pagination block.

@ntsekouras ntsekouras added [Type] Bug An existing feature does not function as intended [Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block labels Nov 29, 2021
@ntsekouras ntsekouras self-assigned this Nov 29, 2021
@ntsekouras ntsekouras added the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Nov 29, 2021
@ntsekouras ntsekouras added the [Package] Block library /packages/block-library label Nov 29, 2021
Copy link
Contributor

@cbravobernal cbravobernal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 😊
This leaves background color as an option per each one, should we remove those ones?

@ntsekouras
Copy link
Contributor Author

This leaves background color as an option per each one, should we remove those ones?

I guess it's okay to have separate background colors if we want, because pagination is displayed differently if we apply a background in the parent Query Pagination block from applying to two separate blocks. It might be worth considering adding a background color support to Query Pagination Numbers though. @kjellr could chime in about that and we can make a quick follow up if needed.

@ntsekouras ntsekouras merged commit baaa22d into trunk Nov 29, 2021
@ntsekouras ntsekouras deleted the remove/text-link-color-support-from-query-pagination-next-previous branch November 29, 2021 13:50
@github-actions github-actions bot added this to the Gutenberg 12.1 milestone Nov 29, 2021
noisysocks pushed a commit that referenced this pull request Nov 30, 2021
…k color support (#36954)

* [Block Library - Query Pagination Next/Previous]: Remove text and link color support

* remove extraneous link setting
@noisysocks noisysocks removed the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block [Package] Block library /packages/block-library [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants