Skip to content

Block Typography Dimensions Custom size behaviour is not working as expected. #68734

@viralsampat-multidots

Description

@viralsampat-multidots

Description

Hello Team,

I have worked on gutenberg blocks and found that block setting typography dimensions custom size is not working as expected. I have checked its with "Paragraph", "Pullquote", "Quote" blocks.

The issue is, when we change typography dimensions type from "Use size preset" to "Set Custom Size" for padding/margin both, And change it's type from "px" to any others, then it reset to "px" again. We have to select other option twicely to change its type based on requirement.

For better understanding, I have prepared its video.

Issue Video:

Screen.Recording.2025-01-17.at.12.29.23.PM.mp4

Step-by-step reproduction instructions

  • Select any block paragraph, pullquote, quote, etc.
  • Add dummy text
  • Go to block settings and change "Typography Dimensions" from "Use size preset" to "Set Custom Size"
  • Now, change its type from "px" to any other based on requirement
  • Now, change size using range control.

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress version: WordPress 6.7.1 running
  • Browser: Google Chrome, Version 131.0.6778.140 (Official Build) (arm64)
  • Device:** MacBook Air M1
  • OS: macOS 15.2 (24C101)
  • Gutenberg plugin: Version Version Version 20.0.0

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions