Directory

Fix default unit issue for tag cloud block by akasunil · Pull Request #59122 · WordPress/gutenberg · GitHub
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

Fix default unit issue for tag cloud block #59122

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

akasunil
Copy link
Contributor

Fixed #58885

What?

Tag cloud block default size is set in PT unit, but when PT unit is not available, it vanish on unit change.

Why?

Converting default value into first available unit.

also modified parseQuantityAndUnitFromRawValue() to return default unit value when match not found. Before it was returning undefined even when match isn't found.

Testing Instructions

  • Add a Tag cloud block.
  • In the settings panel, in the options "smallest size" and "largest size", change the unit.

Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: sunil25393 <sunil25393@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@carolinan carolinan added [Type] Bug An existing feature does not function as intended [Block] Tag Cloud Affects the Tag Cloud Block labels Feb 16, 2024
@akasunil akasunil marked this pull request as draft February 27, 2024 07:18
@akasunil akasunil marked this pull request as ready for review February 29, 2024 08:18
@akasunil
Copy link
Contributor Author

@Mamaduka can you please review this PR ?

@Mamaduka Mamaduka requested a review from carolinan March 17, 2024 17:14
@carolinan
Copy link
Contributor

@sunil25393 Hi. Did you explore if it was possible to make the pt unit available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Tag Cloud Affects the Tag Cloud Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tag cloud: if you change size unit you can't reselect PT
2 participants