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

[WordPress 6.4.RC1][Site Editor] When specifying padding for top and bottom, the unit is changed from rem to px the moment dot is typed in the numeric field #55559

Closed
stein2nd opened this issue Oct 24, 2023 · 2 comments
Labels
[Feature] Layout Layout block support, its UI controls, and style output. Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended

Comments

@stein2nd
Copy link

Description

When specifying padding for top and bottom, the unit is changed from rem to px the moment dot is typed in the numeric field, even though rem is specified as the unit.
When using a slider to specify padding, it is possible to specify something like "0.25 rem" (It takes a lot of time and effort).

For example, immediately after entering "0.25", the numeric value is forced to change to "0" at the moment the unit is changed from px to rem.
It is possible to avoid this problem by changing the unit to "rem" first, then entering "14" in the number field, and finally adding "dot" to make it "1.4", but the operation seems physiologically strange.

The same problem does not occur when specifying left and right padding.

Step-by-step reproduction instructions

  1. Enter the "Header" template edit mode in the "Site Editor".
  2. Try to change the top and bottom padding of the appropriate group.

Screenshots, screen recording, code snippet

image

Environment info

  • WordPress: 6.4 RC1
  • Theme: Twenty Twenty-Four v.1.0
  • Plugins: "Create Block Theme v.1.13.2", "WordPress Beta Tester v.3.5.5"

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

Yes

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

No

@hanneslsm
Copy link

Related (/same?): #51616

@jordesign jordesign added [Type] Bug An existing feature does not function as intended Needs Testing Needs further testing to be confirmed. [Feature] Layout Layout block support, its UI controls, and style output. labels Oct 24, 2023
@mikachan
Copy link
Member

mikachan commented Nov 6, 2023

Related (/same?): #51616

Yes, I believe this is the same as the issue in #51616. I'm going to close this, but please re-open if this is a different issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Layout Layout block support, its UI controls, and style output. Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants