gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Fix default unit issue for tag cloud block

Open akasunil opened this issue 1 year ago • 6 comments

Fixed https://github.com/WordPress/gutenberg/issues/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.

akasunil avatar Feb 16 '24 11:02 akasunil